Post Reply

What's Deodex and Odex?

OP arozer

24th June 2010, 01:57 PM   |  #1  
OP Senior Member
Atlanta
Thanks Meter: 278
 
700 posts
Join Date:Joined: Jun 2010
I've been seeing those words a LOT in recent threads.
Any detailed explanation on them please?
The Following 2 Users Say Thank You to arozer For This Useful Post: [ View ]
24th June 2010, 04:14 PM   |  #2  
danknee's Avatar
Senior Member
Flag Las Vegas
Thanks Meter: 18
 
894 posts
Join Date:Joined: Oct 2009
More
[search] deodex [/search]
Quote:
Originally Posted by Berzerker

De-odex: Apk files have respective odexes that devs use to supposedly save space. Deodexing means you convert it back to a .dex file and put it back inside the apk. This allows you to easily replace files (not having to worry about odexes), but the main point was to deodex services.jar so that you can change all text to different colors (such as the clock color to white) and to deodex services.jar, you need to deodex everything.

The Following 2 Users Say Thank You to danknee For This Useful Post: [ View ]
31st July 2010, 06:00 PM   |  #3  
donniezazen's Avatar
Senior Member
Flag Salt Lake City
Thanks Meter: 44
 
903 posts
Join Date:Joined: Jun 2010
Donate to Me
More
Quote:
Originally Posted by danknee

[search] deodex [/search]
[/I]

How does it matter to regular user?
The Following User Says Thank You to donniezazen For This Useful Post: [ View ]
31st July 2010, 06:20 PM   |  #4  
Senior Member
Flag Chicago
Thanks Meter: 43
 
434 posts
Join Date:Joined: Mar 2010
More
Quote:
Originally Posted by donniezazen

How does it matter to regular user?

Themes mostly.
The Following User Says Thank You to sk63 For This Useful Post: [ View ]
31st July 2010, 07:33 PM   |  #5  
donniezazen's Avatar
Senior Member
Flag Salt Lake City
Thanks Meter: 44
 
903 posts
Join Date:Joined: Jun 2010
Donate to Me
More
Quote:
Originally Posted by sk63

Themes mostly.

Thanks. Are themes available in Deodex or Odex? Sorry for noob questions.
The Following User Says Thank You to donniezazen For This Useful Post: [ View ]
31st July 2010, 07:49 PM   |  #6  
Senior Member
Thanks Meter: 4
 
354 posts
Join Date:Joined: Nov 2009
More
Related question also....

- Which can live with which? (Deodexed ROM + Odexed Theme? or Odexed ROM + Deodexed Theme?)

You know, like type O is universal donor and type AB is universal recipient...do these work similar or only deodexed with deodexed...?

(where is that darn wiki??)
The Following User Says Thank You to sablesurfer For This Useful Post: [ View ]
31st July 2010, 08:11 PM   |  #7  
donniezazen's Avatar
Senior Member
Flag Salt Lake City
Thanks Meter: 44
 
903 posts
Join Date:Joined: Jun 2010
Donate to Me
More
Smile
Quote:
Originally Posted by sablesurfer

Related question also....

- Which can live with which? (Deodexed ROM + Odexed Theme? or Odexed ROM + Deodexed Theme?)

You know, like type O is universal donor and type AB is universal recipient...do these work similar or only deodexed with deodexed...?

(where is that darn wiki??)

Dear GOD,

Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?

Thank you,
A non-believer.
The Following 3 Users Say Thank You to donniezazen For This Useful Post: [ View ]
31st July 2010, 09:03 PM   |  #8  
SilverZero's Avatar
Senior Member
Thanks Meter: 242
 
1,208 posts
Join Date:Joined: May 2010
Quote:
Originally Posted by donniezazen

Dear GOD,

Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?

Thank you,
A non-believer.

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.

I think that's the general idea, anyway.
Last edited by SilverZero; 31st July 2010 at 09:08 PM.
The Following 29 Users Say Thank You to SilverZero For This Useful Post: [ View ]
31st July 2010, 09:16 PM   |  #9  
Senior Member
Seattle
Thanks Meter: 16
 
138 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by sablesurfer

Related question also....

- Which can live with which? (Deodexed ROM + Odexed Theme? or Odexed ROM + Deodexed Theme?)

You know, like type O is universal donor and type AB is universal recipient...do these work similar or only deodexed with deodexed...?

(where is that darn wiki??)

You will never find an odexed theme since the odex file would contain things that needed to be changed, thus themes are deodexed. Themes basically just replace the .apk or .jar with their version, which wouldn't work on an odexed rom.

Quote:
Originally Posted by donniezazen

Dear GOD,

Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?

Thank you,
A non-believer.

Basically, Android uses a a java based virtual machine as the bases for running programs. This virtual machine is called Dalvik. A .dex file contains the cache used by the Dalvik VM (called Dalvik-cache) for a program and is stored inside the .apk. A .odex file is an optimized version of the .dex file which gets stored next to the .apk as opposed to inside the .apk. This process is done by default to system apps. Deodexing is the process of converting the .odex files back into .dex to be stored inside the .apk so that things can be more easily modified. So a deodexed rom is one that has been through the deodexing process. Deodex can just as easily be called Unodex or any other pre-fix you wish to use.

Hopefully that cleared that up.

EDIT: Darn, beaten.
The Following 14 Users Say Thank You to faster3200 For This Useful Post: [ View ]
31st July 2010, 09:44 PM   |  #10  
Senior Member
Thanks Meter: 4
 
354 posts
Join Date:Joined: Nov 2009
More
Thank you all. So...themes are deodexed. And only run on deodexed rom...got it. Meaning...I need a deodexed version of the new Froyo to keep my white Rosie. Cool.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes