[Q] what is the difference between Odex & deoDexed - Vibrant Q&A, Help & Troubleshooting

I just updated my firmware to STOCK 2.2 (KA6) which I downloaded from CHAINFIRE's thread. Now I rooted my phone and its working fine for me.
Than I see another post for Deodexed KA6 from Whitehawkx. what is that. that also says original stock. am confused now.
can any one please explain me difference between both stock & Odex & deodex things.
Also how to flash this Deodexed KA6 (same as ODIn or any other method).

I was wondering the same thing....so i googled it...
Sent from my SGH-T959 using XDA App

This maybe inaccurate but I have a reasonable idea of what it is... it's just hard to explain.
If you look in the system/app and system/framework you will see the filename.apk along with it's counterpart filename.odex. With a deodexed rom it places the filename.odex and converts it to filename.dex (not odex) and places it within filename.apk. But most importantly the framework MUST support the deodexed files! If the framework is looking for filename.odex files that aren't there you will end up in a bootloop. It just won't work. But the benifits of having deodexed files is that it's easier to theme and replace. In some cases you can take a app.apk and replace it with differentappfromdifferentrom.apk. When you have a odexed rom you just can't do that.
You will notice that many themes and modifcations will not include support for odex roms so having a deodexed rom is definitly the way to go!
Some people have argued that having an odexed rom causes your device to perform better! But I have never noticed any difference personally and frankly I'm skeptical. Tasters choice.

I googled it as well. Here was one of the better hits....
http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/

Binary100100 said:
This maybe inaccurate but I have a reasonable idea of what it is... it's just hard to explain.
If you look in the system/app and system/framework you will see the filename.apk along with it's counterpart filename.odex. With a deodexed rom it places the filename.odex and converts it to filename.dex (not odex) and places it within filename.apk. But most importantly the framework MUST support the deodexed files! If the framework is looking for filename.odex files that aren't there you will end up in a bootloop. It just won't work. But the benifits of having deodexed files is that it's easier to theme and replace. In some cases you can take a app.apk and replace it with differentappfromdifferentrom.apk. When you have a odexed rom you just can't do that.
You will notice that many themes and modifcations will not include support for odex roms so having a deodexed rom is definitly the way to go!
Some people have argued that having an odexed rom causes your device to perform better! But I have never noticed any difference personally and frankly I'm skeptical. Tasters choice.
Click to expand...
Click to collapse
Good explanation, thanks.

shrapnelx said:
I googled it as well. Here was one of the better hits....
http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
Click to expand...
Click to collapse
oooohhhhhhhhhhhh! thx now I know and knowing is half the battle GI JOE... GO COBRA!

Related

[Q] How to re-odex files?

I would like to add some mods to my kitchen, but keep the rom odexed. Is there a way to re-odex some of the mod files so that I can add them? Or is there a way to add deodexed files to odexed rom?
You should be able to mix odex & deodexed apks in /system/app & /data/app just not in /system/framework. Why exactly do you want to use an odex system?
Posted from my HTC Evo 4G on Tapatalk Pro!
TMartin03 said:
You should be able to mix odex & deodexed apks in /system/app & /data/app just not in /system/framework. Why exactly do you want to use an odex system?
Posted from my HTC Evo 4G on Tapatalk Pro!
Click to expand...
Click to collapse
Odex system is a bit faster and more stable.
indagroove said:
Odex system is a bit faster and more stable.
Click to expand...
Click to collapse
Just based off my observations on my own phone, stock odex rom vs. stock deodex'd rom, I feel my deodex'd rom is faster and I don't see too much a difference in stability at all. Just my opinion.
TMartin03 said:
Just based off my observations on my own phone, stock odex rom vs. stock deodex'd rom, I feel my deodex'd rom is faster and I don't see too much a difference in stability at all. Just my opinion.
Click to expand...
Click to collapse
It seems like I get more FC's in the browser with deodex, and odex definately boots faster.

[Q] Differences of deodex vs. odexed ROMs

I was looking in Q&A forum to find the answer to the differences of deodex vs. odexed ROMs, if I missed it in my searches just a simple link to the correct post will help thanks.
If there isn't already the topic, it has peek my curiosity on the differences of deodex vs. odexed. Do each offer there own advantages and disadvantages on the 3D?
And my main question is, what are the differences between the 2 and why are two different types of ROMs needed over one style. Thanks for clarifications.
Odex is faster (mik himself makes his rom odex for the reason) , deodex is better for theming and is slower yo boot just cause of some heavy mods some developers run. Which one is better? That'd up to you, I usually go with odex unless the rom has some great customization that I like
from a post on XDA..
Deodexed ROMs have their .apk's (which are basically the application packages) repackaged in a certain way. An "odex" can be thought of as a collection of parts of applications that have been pulled out and optimized before booting. This speeds up the boot process - in a way, it preloads part of the applications - but it also makes hacking those apps difficult because part of the original code is already extracted somewhere else.
Deodexing is just a process of putting those pieces back into the original applications. It takes a while to extract those parts and build the .dex cache (aka Dalvik cache), but only because the relevant parts aren't in an easy-to-access place for the system. The advantage of this is that an app can be modified effectively and the developer doesn't have to worry about conflicts from the separate odex part of the code.
So, short version: "Deodexed" ROMs have all their apps put back together. If an app can be themed, for example, a deodexed version of that app will not get messed up when the modified .apk tries to mesh with the odex of the original un-modified .apk. Because it's not there.
If you want an aftermarket theme, you need a deodexed ROM. I'm not sure if deodexing can be done to individual apps within a non-deodexed ROM.
Sent from my PG86100 using Tapatalk
Thanks jgalan14 for the response, greatly appreciate it
jgalan14 said:
. I'm not sure if deodexing can be done to individual apps within a non-deodexed ROM.
Click to expand...
Click to collapse
yes, individual apps can be deodex and loaded on the system with other odex apks.
only concern i would have is to make sure to remove the odex file for that specific apk when loading the deodex version.
great explanation on odex/deodex!
joeykrim said:
yes, individual apps can be deodex and loaded on the system with other odex apks.
only concern i would have is to make sure to remove the odex file for that specific apk when loading the deodex version.
great explanation on odex/deodex!
Click to expand...
Click to collapse
Are you developing for 3d? Man I remeber you from the moment days lol
Sent from my PG86100 using Tapatalk
Thanks for this! I have always wondered but couldn't find anything
Sent from my PG86100
jgalan14 said:
Odex is faster (mik himself makes his rom odex for the reason) , deodex is better for theming and is slower yo boot just cause of some heavy mods some developers run. Which one is better? That'd up to you, I usually go with odex unless the rom has some great customization that I like
from a post on XDA..
Deodexed ROMs have their .apk's (which are basically the application packages) repackaged in a certain way. An "odex" can be thought of as a collection of parts of applications that have been pulled out and optimized before booting. This speeds up the boot process - in a way, it preloads part of the applications - but it also makes hacking those apps difficult because part of the original code is already extracted somewhere else.
Deodexing is just a process of putting those pieces back into the original applications. It takes a while to extract those parts and build the .dex cache (aka Dalvik cache), but only because the relevant parts aren't in an easy-to-access place for the system. The advantage of this is that an app can be modified effectively and the developer doesn't have to worry about conflicts from the separate odex part of the code.
So, short version: "Deodexed" ROMs have all their apps put back together. If an app can be themed, for example, a deodexed version of that app will not get messed up when the modified .apk tries to mesh with the odex of the original un-modified .apk. Because it's not there.
If you want an aftermarket theme, you need a deodexed ROM. I'm not sure if deodexing can be done to individual apps within a non-deodexed ROM.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
thanks that helps me out alot
jgalan14 said:
If you want an aftermarket theme, you need a deodexed ROM. I'm not sure if deodexing can be done to individual apps within a non-deodexed ROM.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
That isn't 100% accurate.
Sent from my PG86100 using Tapatalk
EricSS619 said:
That isn't 100% accurate.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
Yup is not I didn't have the time to explain it all
Sent from my PG86100 using Tapatalk

how to odex

I built a rom which is de-odexed, but am trying to figure out how to re-odex the rom. It is running ICS 4.0.3 and Sense 4.0 and I cannot find an odex script compatible for the life of me!!
See HERE and/or HERE and/or search and experiment more...
With ICS - I'm not sure - still waiting for the update myself..
EDIT: Sorry, I know that's not what you want to hear, but from my experience, there are not many themers/modders/devs working with odexed systems, so unless ICS is very similar to GB as far as creating new odex files (btw, I broke apart my buddy's stock RAZR ICS, and there are a lot more deodexed apks than there were in GB).. so, you might be on your own for a while..
alteredlikeness said:
See HERE and/or HERE and/or search and experiment more...
With ICS - I'm not sure - still waiting for the update myself..
EDIT: Sorry, I know that's not what you want to hear, but from my experience, there are not many themers/modders/devs working with odexed systems, so unless ICS is very similar to GB as far as creating new odex files (btw, I broke apart my buddy's stock RAZR ICS, and there are a lot more deodexed apks than there were in GB).. so, you might be on your own for a while..
Click to expand...
Click to collapse
Thanks for the links, and it's all good, I can actually get most of them to odex without problem, just a few giving me issues now. Thanks again! :good:

Deodex on a Touchwiz Rom

I've read into the subject of Deodex vs Odex many times before, so I know general differences as well as supposed advantages/disadvantages to both. So my question is this, besides the general ability to theme every aspect of a ROM, what other major uses are there for Deodexing a touchwiz based ROM? I know that some mods require you to be deodexed, which isn't a big deal to me because all of the mods I flash regularly do not require that. Hopefully someone knowledgeable in this area can clarify for me:good:
There aren't any besides modding.
Sent from my SGH-I717R using xda premium
like agoattamer said only use for a deodex rom is to theme it. if you like the themeing of deodex but want speed and smaller file size of odex you can set up your deodexed rom with all changes you want made to it and then run the script found here( http://forum.xda-developers.com/showthread.php?p=44228706 ) to reodex the rom. you can also odex apks in data/app. just keep in mind that not all downloaded apps like to be odexed but most will not give issue. i think only apps i had to reinstall to get back to deodex was amazon app store and a game downloaded from amazon
Agoattamer said:
There aren't any besides modding.
Sent from my SGH-I717R using xda premium
Click to expand...
Click to collapse
s89281b said:
like agoattamer said only use for a deodex rom is to theme it. if you like the themeing of deodex but want speed and smaller file size of odex you can set up your deodexed rom with all changes you want made to it and then run the script found here( http://forum.xda-developers.com/showthread.php?p=44228706 ) to reodex the rom. you can also odex apks in data/app. just keep in mind that not all downloaded apps like to be odexed but most will not give issue. i think only apps i had to reinstall to get back to deodex was amazon app store and a game downloaded from amazon
Click to expand...
Click to collapse
Thanks to both of you. You confirmed what I thought originally. And thanks s89281b, I actually have that script already and use it on all of my ROMS except the touchwiz ones. So now that my question is confirmed, I'll use this on touchwiz ROMS as well. I have tried digging into theming a little, but I'm putting that on pause so no need for deodex atm
Sent from my SAMSUNG-SGH-I717 using Tapatalk HD

[MOD] 900P NE5 CRT/FADE Animation

I figured I would convert this mod to our device using code in the unified thread. (Props to original author and Rompnit).
It took a bit of tweaking to get it to work on the Sprint variant but it seems to be functioning as intended.
This is for Odexed stock(ish) roms only!
It replaces services.jar and build.prop. If you have tweaks to your build prop that you don't want set to defaults then I recommend you install the jar and odex file manually and edit your build.prop with whatever tool you see fit
A lot of mods affect the services.jar as well, noteably the unlock hotspot mod. That's why it's included FREE with this mod.
What a deal!
The changes I made to the build.prop are simply these additions. The rest is stock
#CRT Mod
persist.sys.screen_on=fade
persist.sys.screen_off=crt
These can be changed to set your on/off animation type. Options are CRT/FADE/NONE
Standard Use at Your Own Risk stuff Blah Blah
Enjoy
It's usually better to provide a deodexed copy as odexed relies on the same exact framework that it was odexed with to be present for the files to function at all
On the other hand, deodexed will function on any rom including odexed roms (when yup delete/move the odex files affected)
CNexus said:
It's usually better to provide a deodexed copy as odexed relies on the same exact framework that it was odexed with to be present for the files to function at all
On the other hand, deodexed will function on any rom including odexed roms (when yup delete/move the odex files affected)
Click to expand...
Click to collapse
I provide Odexed mods mainly because nobody else is doing it. And because odexed versions are usually the first thing people ask for, and because deodexing seems to break too many functions I use like private mode and S-Health issues.
I'll post the edited smali if anyone wants to use it for anything.
townsenk said:
I provide Odexed mods mainly because nobody else is doing it. And because odexed versions are usually the first thing people ask for, and because deodexing seems to break too many functions I use like private mode and S-Health issues.
I'll post the edited smali if anyone wants to use it for anything.
Click to expand...
Click to collapse
I wasn't criticizing, merely commenting
CNexus said:
I wasn't criticizing, merely commenting
Click to expand...
Click to collapse
np, It's all good.
Return to Stock
How can I go back to stock? remove the CRT animation and changes you made to Services
ramik911 said:
How can I go back to stock? remove the CRT animation and changes you made to Services
Click to expand...
Click to collapse
Replace the services.jar and services.odex with a stock version and remove the added entry in build.prop
thnx
Is this only for root devices? Are there any CRT mods for none roots? I did a search and so far this is the only thread with CRT.
dwss said:
Is this only for root devices? Are there any CRT mods for none roots? I did a search and so far this is the only thread with CRT.
Click to expand...
Click to collapse
You would need root access to flash the completed product to your device.
What would it take to port the crt mod to moar 7 rom.i had it on stock rom with xposed. I want to get it back without xposed.

Categories

Resources