[Info] Difference in Odex and Deodex Files - Galaxy Y GT-S5360 General

Some people don't know about an Odex or a Deodex Files. I'm gonna explain it to you in the most understandable way :highfive:
Almost all of the Rom here are deodex because it is easier to theme or modify the .apk file because odex files are hard to modify.
These .odex files are also in the same directory as the .jar or .apk file which is located at /system
What is an Odex File?​
In system applications come in packages with the extension .apk. These application packages, or APKs contain certain .odex files whose supposed function is to save space. The odexed file structure works well as an optimization tool. Since these .odex files contain preliminary load information about each system app, the OS knows what to expect when it’s booting up, and consequently, it loads apps faster.
On the other hand, it makes the applications difficult to modify/theme 'coz a part of the coding has already been extracted to another location before execution.
For example, in a system app there is:
Phone.apk ===> next to it will be ===> Phone.odex
the Phone.odex has some part of the codes.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What is a Deodex File?​
It’s the process to take all the packages out from .odex file and reassemble them all together in classes.dex file which is kept inside the APK file in other word it will combine the .odex file to the .apk file and will become a classes.dex. By doing this, it can eliminate/remove the worry to modify the APK conflicting with some separate odexed parts.
In summary, Deodexed ROMs (or APKs) have all their application packages put back together in one place, allowing for easy modification such as theming. Since no pieces of code are coming from any external location, custom ROMs or APKs are always deodexed to ensure integrity.
Example on the same system app:
Phone.apk ===> will no longer have a Phone.odex instead it will be bought inside the Phone.apk as ===> classes.dex
Advantages and Disadvantages​
Odex files can build Dalvik Caches faster on the first boot and execution of an app will be faster..
but harder to theme unlike
Deodex files can be modified easier than odex files but building Dalviks and executions will have a slight difference in .odex
Credits
to this Thread
and Google Images :laugh:

i got 81 views but no replies..XD

zenxus31 said:
i got 81 views but no replies..XD
Click to expand...
Click to collapse
very helpful sir :fingers-crossed:

Related

Need help editing a clock widgit: Can anyone help?

I don't mind donating to someone who can help either, but, basically, here's my theme/setup:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What I want to do, is change the color of the inside of the boxes behind the numbers to red, and leave the rims around them black/gray.
Is there anyway to edit the apk to do this? If so, could anoyne guide me through it? I would love help, because I think that that would just put my setup towards perfect for me.
well, usually what I do in this situation is first copy the apk to a working directory. Then extract the apk in the working directory, and look in one of the drawable folders for the image. Edit the image to your liking. Then when you are done, replace the original image inside the untouched apk you kept in your working directory. You should then be able to either push that apk back onto the phone, install it, or package it in the rom and reflash.
elegantai said:
well, usually what I do in this situation is first copy the apk to a working directory. Then extract the apk in the working directory, and look in one of the drawable folders for the image. Edit the image to your liking. Then when you are done, replace the original image inside the untouched apk you kept in your working directory. You should then be able to either push that apk back onto the phone, install it, or package it in the rom and reflash.
Click to expand...
Click to collapse
Ya know, I've been looking for the Apk file in my phone, and I have no idea where it's at (using sdk tools to search through my phone), because I was thinking just with common sense, that what you said would be the way to go about it.
here's the dev. site:
http://www.davidgoemans.com/mainsite/node/13
It looks like there's no apk to dload to the computer first... is there anyway you can help me with where to look on my phone for the file?
It is probably in /system/framework
Either com.htc.resources.apk
or
framework-res.apk
Well, I went ahead and found it, but, now it's not letting me install the apk for some reason. It's saiying that it's replacing the old digiclock even though I removed that one.
Here's the apk file I created. All I did was rename it to a zip, replace the files, and rename it back to apk.
Can anyone help?
Ok, I got it. I ended up getting the apk manager 4.8 from here, and it took seconds to run through that.
Here's the updated clock.
Looks very good
elegantai said:
Looks very good
Click to expand...
Click to collapse
Hey, thanks!

How to change smileys

Hi guys can you help me change my smileys, the default android smileys looked like shrek for me and it's kinda annoying hehehe thanks in advaced
j3yps said:
Hi guys can you help me change my smileys, the default android smileys looked like shrek for me and it's kinda annoying hehehe thanks in advaced
Click to expand...
Click to collapse
there in the framework-res.apk and easy to replace, if you find some emoticons you like i can replace them for you
can u tell the method in PLAIN ENGLISH please?
Same as the guy above..oh and if it's not too much to ask, can you pls give us a step by step guide on how to do this.
1. Extract your framework-res.apk. you will find it in /system/framework/.
2. download and install 7zip, on your pc.. its a free program.
3. on your pc, right click on your extracted framework-res.apk, find the 7zip contex menu, and click on open archive (DONT EXTRACT IT)
4. A box will open, now navigate to the \res\drawable-hdpi-v4\ folder, inside there you will find the emoticons, they have names like "emo_im_cool.png" and "emo_im_crying.png". find some suitable replacement emoticons, and rename them to the match the file names in the folder.
5. just drag and drop your new emoticons in the folder, and replace the existing ones.
6. close 7zip. now download the update.zip template i've attached at the bottom, unzip it and copy your modified framework to the framework folder inside the zip, go back to the root of the zip and zip it back up.
7. copy the update.zip to the root of your sd card and flash it from recovery
I found an easier solution, will post it IF succesful
But what if you just want to replace the text instead of the image?
I'm using the gingerbread keyboard and it has this smiley button, but how can i change them?
I created a guide here
http://forum.xda-developers.com/showthread.php?p=11094721#post11094721
uot kitchen only has 2 diff smiley sets and there crap
Do you know any other sources with more choice of smileys?
I tried AndroHero's method and it works ti only have a few questions
1. why did the image showed up like this? is there a specific setup that i should do?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. can i put an image size that i want or i should use a 30x30 image only?
Anybody?....

[REQ] Enable 'Navigation bar' for CM9 Quarx build

Guys, I ask this because i have tried 1000 ways and I could not recompile the frameworks after making changes to bools and arrays.
Please, someone would do for me?
Its for the latest build of Quarx.
I followed this tutorial but the problem is that i can't never rebuild. Damn!!
http://forum.xda-developers.com/showthread.php?t=1364757
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks in advance!:highfive:
_______________________________
Edit.
Framework here.
framework-res.apk
posst the framework...
Sent from my MB525 using xda premium
looking forward to it , it means we can disable our capacitive buttons and use this on screen buttons ....... at the moment it seems to be awesome ......
lets see if it can be integrated and works flawless......
yes, please post your framework-res.apk here. I dont have quarx build downloaded yet. It shud be done without a problem and will upload u a update.zip for it.
I'd be interested to see this in action too.. can you please modify this file? It's the framework from http://quarx2k.ru/cm9-nightly-defy+/CM9-NIGHTLY-120710-Defy+.zip ... thank you
https://dl.dropbox.com/u/18827417/framework-res.apk
Type in command line "java -jar apktool.jar -if framework.res", then decompile it. Edit the files and before compile it, extract the archive "resources.arsc" that is inside the original "framework-res.apk" and copy it to "framework-res" folder. Then try to compile it. This should help. I´ve not tested the new "framework-res.apk" file, but at least I can compile it.
jassi32 said:
looking forward to it , it means we can disable our capacitive buttons and use this on screen buttons ....... at the moment it seems to be awesome ......
lets see if it can be integrated and works flawless......
Click to expand...
Click to collapse
It works perfect!, There was a guy who changes the frame for this, but stopped ..
Favaron said:
Type in command line "java -jar apktool.jar -if framework.res", then decompile it. Edit the files and before compile it, extract the archive "resources.arsc" that is inside the original "framework-res.apk" and copy it to "framework-res" folder. Then try to compile it. This should help. I´ve not tested the new "framework-res.apk" file, but at least I can compile it.
Click to expand...
Click to collapse
I tried that way too and it works, but apparently not successfully recompiled .. all are in folders without compiling. for example values and the files .xml either.
@pabloltg : I left for office today, will reach home @ 4 pm and will upload you the framework. (Obviously if somebody has not done it already )
brajesh.sharma87 said:
@pabloltg : I left for office today, will reach home @ 4 pm and will upload you the framework. (Obviously if somebody has not done it already )
Click to expand...
Click to collapse
Many thanks mate!
I trying today too, but not lucky.
May be i should wipe my laptop.xD
Navigation Bar: http://forum.xda-developers.com/showthread.php?t=1495002

need expert help plzzzzzzzz

guyz tell me how did you push apps in system/app . application which contain lib folder in it.....i have tried to put this folder in system/lib folder but get a message force to close.........i have test it on ics keyboard, ttpod,stock music player etc getting same message force to close??????????????and also tell me how to add ics lock in creed rom 2.0 replace that old slid one.......its urgent
Have u set the permission ??? libs...
Sent from my GT-S5360 using xda premium
rep
yah i have done that too but same result
copy apk to /system/app
extract lib files from the apk and put it in /data/data/package name/lib
run the app
Ics keyboard works fine .... and others live wallpapers are FC.... ex: My Beach HD , Celtic Garden HD
Sent from my GT-S5360 using xda premium
rep
ok . as you are saying to put lib files in data/data/ name associate with apps...fine but did you notice that any custom rom does not have such directory then what will happen in such case...are you getting what am trying to say. then how we will get related lib files in such directory
so can you please tell me where custom rom put /data/data
I think you are talking about sd-ext, there is also no problem find package name in the sd-ext folder and place the lib files in lib folder
rep
sir you didnt get what i am saying....actuly i want to make a custom rom. and in custom rom doesnt have data/data directory.
so in that package where i have to put that lib files....as i have many custom rom which have ics keypad pre installed.
and this ics keypad also have lib files then how did this work and when i am trying to add my apps.its show me froce to close error message
why ?????????????????????????
rom zips never contains /data/data folder they must be created by the builder
and /data folder also need different command in the updater script to make them extract
in your custom rom you must create folder and then you should put that lib file in the folder then in updater-script write the command to extract data to /data
without lib that ics keyboard will not work
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
shailu1990 said:
guyz tell me how did you push apps in system/app . application which contain lib folder in it.....i have tried to put this folder in system/lib folder but get a message force to close.........i have test it on ics keyboard, ttpod,stock music player etc getting same message force to close??????????????and also tell me how to add ics lock in creed rom 2.0 replace that old slid one.......its urgent
Click to expand...
Click to collapse
Ics Keyboard , Ttpod works fine after pushed it into system/app and the libs file
Screenies :
Sent from my GT-S5360 using xda premium

[Q] [REQUEST] How to apply a different navbar to a CM11 theme engine?

You see, I am now using an android L theme on the new theme engine on PA BETA 1 but these navbar playstation icons bother me quite a bit. I much prefer the ones I use with softkeyz (no it doesn't work changing with it), the so called alternate android L's navbar.
Can it be themed manually or something? These ones to be more precise:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Anyone has a clue? Someone with experience on themes or knows how to do it.
I was exactly searching for this !
I got it! Had to edit the theme by decompiling and recompiling it back with the navbar icons I wanted. It is not that hard though.
rogeriorp said:
I got it! Had to edit the theme by decompiling and recompiling it back with the navbar icons I wanted. It is not that hard though.
Click to expand...
Click to collapse
so easy...change your theme apk file to zip format by renaming it.open with win rar and unzip it.you have some extracted folders and follow this:
assets<overlays<com.android.systemui<res<drawable-xxhdpi.in this folder looking for these PNG files like ic_sysbar_home,ic_sysbar_menu and etc. these are the themed ones for soft keyz.change them as you wish and remember your modification should respect the orginal png file size.anfter that surf back to the root of themed folders and rezip and sign it with some thing like signer app. done!:good:
ali.sbi said:
so easy...change your theme apk file to zip format by renaming it.open with win rar and unzip it.you have some extracted folders and follow this:
assets<overlays<com.android.systemui<res<drawable-xxhdpi.in this folder looking for these PNG files like ic_sysbar_home,ic_sysbar_menu and etc. these are the themed ones for soft keyz.change them as you wish and remember your modification should respect the orginal png file size.anfter that surf back to the root of themed folders and rezip and sign it with some thing like signer app. done!:good:
Click to expand...
Click to collapse
Exactly.

Categories

Resources