Deodexing Explained + How To

This is a discussion on Deodexing Explained + How To within the Hacking Help forums, part of the Droid X Development category; ..:: Deodexing Explained + How To ::.. So you want to theme... but you keep hearing about all this deodexing stuff... so whats that all ...


Page 1 of 6 123 ... LastLast
Results 1 to 10 of 54
Like Tree15Likes

Thread: Deodexing Explained + How To

  1. #1
    Advocate X
    Supporting Member
    Points: 24,548, Level: 95
    Level completed: 20%, Points required for next Level: 802
    Overall activity: 31.6%
    Achievements:
    Three Friends500 Experience Points250 Experience Points100 Experience Points7 days registered
    WugFresh's Avatar
    Member #
    19823
    Join Date
    Nov 2010
    Location
    Earth
    Posts
    5,135
    Liked
    455 times

    Deodexing Explained + How To

    ..:: Deodexing Explained + How To ::..

    So you want to theme... but you keep hearing about all this deodexing stuff... so whats that all about?
    Stock android implements an odex file structure; for every (well...most) system app(s) (.apk file) and framework files (.jar) there is a corresponding .odex file, so for example you have;

    /system/app/Phone.apk
    /system/app/Phone.odex

    /system/framework/com.motorola.android.mediasync.jar
    /system/framework/com.motorola.android.mediasync.odex
    What do the .odex files do?
    • All of your apps on your device are packaged as .apk files; these files are compiled from google source code and can interchangeably be viewed/thought of as a compressed folder (like a .zip or a .rar);
    • All of your framework components (well most...) are packaged as .jar files which literally stands for Java Archive (so again this can be compared to a .zip or a .rar).

    When the android OS want's to run your apps or utilize its framework components, it has to parse (read/interpret) the compressed data held within your .apk and/or.jar files. What the odex file structure aims to do, is to expedited this process by utilizing another file (.odex file) to compliment every.apk file (and .jar file); the odex file, includes the most critical data in an uncompressed format so the android os can quickly interpret that important information before parsing through the rest of the data held within the compressed .apk files (and .jar files). So subsequently, in an .odex file structure the .apk & .jar files don't include all of the applications/framework-components data; Essentially, two files are acting as one; for your apps there are .apk files + their corresponding .odex file and for your framework components there are .jar files + their corresponding .odex file. This works nicely as an optimized file structure, except in the circumstance when the user want's to theme; theming requires a modification to your .apks; the image files (.pngs) held within the pngs are replaced with different ones. However it is impossible to theme an application if it exists as two files. So that is why it is said you need to be DeOdexed in order to theme; DeOdexing is the process of re-bundling that uncompressed critical data (.odex files) back into your compressed .apk (& .jar) files, so that now all of the data is included in the .apk files necessary to run your applications without the presence of .odex files; in addition all the data is now included within the .jar files necessary to utilize your framework components without .odex files. In a DeOdexed file structure, there are no odex files present.
    What is the benefit of DeOdexing?

    • Simple. To be able to theme a stock ROM.
    • Deodexing doesn't speed your phone up or do anything of the sort.
    • It is simply something that is necessary to be able to theme a stock ROM.

    How do you DeOdex?
    One way you can deodex is to use the application xUltimate which actually rebundles that information for you. Another way, is to use a pre-made DeOdexer Update.zip; this zip already has all the repackaged fully compressed .apk files and utilizes code in the update script to delete all of the odex files present. So essentially all it's doing is overwriting all your old semi data inclusive .apk files with fully inclusive ones and then deleting the (now) superfluous .odex files. This is the easiest way to do it, since all the work is already done for you. Just flash it in clockwork as you would for any theme:



    1. Download it
    2. Place it on your sdcard
    3. Open Droid X Bootstrap
    4. Hit Bootstrap Recover > Ok > Reboot Recovery
    5. Navigate to 'Install zip from sdcard' with volume keys and select with camera button
    6. Navigate to 'Choose zip from sdcard' and select
    7. Navigate to the directory containing the above deodexer zip
    8. Select it > Yes
    9. Wait for it to do its thing > reboot system
    10. You are now deodexed.
    How can you check to see if you DeOdexed successfully?

    1. Open a file explorer (like Root Explorer or Astro)
    2. Navigate to the directory /system/app
    3. Check for the presence of .odex files
    4. Navigate to the directory /system/framework
    5. Check for the presence of .odex files
    6. If there are no odex files present then you are deodexed!
    7. Now you can theme!
    Will DeOdexing slow you down?
    Technically it should, but in actuality its really quite negligible to notice, however... In my opinion, it's rather silly to DeOdex and stay on stock ROM; you should just make the switch to a custom ROM. Why? Because custom ROMs are already deodexed and they zipalign your apps on boot; zipaliging is the process of reorganizing the manner in which the .apk is packaged to optimized it for being parsed faster by the android OS, it is comparable if not better than the odex file structure, so you get the best of both worlds; a themed ROM and the speed of an optimized file structure. That is why Stock is lame and custom ROMS pwn (IMO of course...)

    Hope this helps.
    {{ WugFresh }}
    Last edited by WugFresh; 05-01-2011 at 02:13 AM. Reason: updated the gb deodexed to the latest version

  2. Droid X Forums
    Ads


  3. #2
    X Pursuant
    Points: 5,976, Level: 50
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%
    Achievements:
    500 Experience Points250 Experience Points31 days registered100 Experience Points7 days registered
    tycoon177's Avatar
    Member #
    20902
    Join Date
    Dec 2010
    Location
    Iowa
    Posts
    787
    Liked
    12 times
    Good right up!

    sent from my rooted droid x running apex 1.4.1

  4. #3
    Advocate X
    Supporting Member
    Points: 24,548, Level: 95
    Level completed: 20%, Points required for next Level: 802
    Overall activity: 31.6%
    Achievements:
    Three Friends500 Experience Points250 Experience Points100 Experience Points7 days registered
    WugFresh's Avatar
    Member #
    19823
    Join Date
    Nov 2010
    Location
    Earth
    Posts
    5,135
    Liked
    455 times
    Thank you! I actually had this posted as a single response to a question in the success ports repository thread... I have since linked people to it, and I realised it was silly for me not to just start a thread. So I did some copy paste action and walla.

    {{ WugFresh }}
    Last edited by WugFresh; 03-24-2011 at 07:33 AM.
    Easy method for SBF'ing your phone back to stock
    + SBFboot - the easy way to sbf
    Best ways to improve your phones overall performance:
    + How To Optimize Battery Life & Speed
    Wireless tethering on GB simplified
    + WugPacked GB Tether Patch [All-In-One Zips]
    Other helpful resources:
    + Deodexing Explained + How To
    + [One Stop] Rom Goodies, Extras, Mods & More

    ..:: Follow me on Twitter and Google+::..

  5. #4
    X Pursuant
    Points: 5,976, Level: 50
    Level completed: 13%, Points required for next Level: 174
    Overall activity: 0%
    Achievements:
    500 Experience Points250 Experience Points31 days registered100 Experience Points7 days registered
    tycoon177's Avatar
    Member #
    20902
    Join Date
    Dec 2010
    Location
    Iowa
    Posts
    787
    Liked
    12 times
    Well it will really help those who want to theme, theme

    sent from my rooted droid x running apex 1.4.1

  6. #5
    X Informant
    Points: 1,919, Level: 26
    Level completed: 19%, Points required for next Level: 81
    Overall activity: 0%
    Achievements:
    31 days registered100 Experience Points7 days registeredThree FriendsCreated Album pictures
    tracirt's Avatar
    Member #
    31796
    Join Date
    Mar 2011
    Posts
    52
    Liked
    0 times
    thanks Wug :-)

    Sent from my DROIDX using Droid X Forum App
    lovin my newly rooted X :-)

  7. #6
    X Pursuant
    Points: 4,487, Level: 42
    Level completed: 69%, Points required for next Level: 63
    Overall activity: 1.2%
    Achievements:
    31 days registered500 Experience Points250 Experience Points7 days registered100 Experience Points
    rudyy's Avatar
    Member #
    30693
    Join Date
    Mar 2011
    Location
    california
    Posts
    738
    Liked
    11 times
    DeOdexer update zips are specific to the ROM, because they include all the apps and framework files; for example, to accommodate people who wanted to theme the new Blurr 3.4.2 TBH leak, I had to make a new DeoDexer.zip with the new fully bundled apks and script to delete all the odex files specific to that ROM release.
    question. you say the deodexer update zips are specific to the rom.
    so do I understand correctly then that the link for the zip in your post is for a specific rom?
    thanks.

    rooted, on liberty 1.5
    running gingerbread 602 SBF

  8. #7
    X Pursuant
    Points: 3,480, Level: 36
    Level completed: 87%, Points required for next Level: 20
    Overall activity: 0%
    Achievements:
    31 days registered500 Experience Points250 Experience Points100 Experience Points7 days registered
    Getsome122's Avatar
    Member #
    23496
    Join Date
    Dec 2010
    Location
    Bristol, TN
    Posts
    912
    Liked
    23 times
    good writeup Wug as always...

  9. #8
    Advocate X
    Supporting Member
    Points: 24,548, Level: 95
    Level completed: 20%, Points required for next Level: 802
    Overall activity: 31.6%
    Achievements:
    Three Friends500 Experience Points250 Experience Points100 Experience Points7 days registered
    WugFresh's Avatar
    Member #
    19823
    Join Date
    Nov 2010
    Location
    Earth
    Posts
    5,135
    Liked
    455 times
    Quote Originally Posted by rudyy View Post
    question. you say the deodexer update zips are specific to the rom.
    so do I understand correctly then that the link for the zip in your post is for a specific rom?
    thanks.

    rooted, on liberty 1.5
    Sorry, that was unclear. I should change that. The new TBH leak was a special circumstance. The deodexer update.zip I posted in this thread is for Stock ROM. All the custom ROM's are already deodexed, so you would never have to do this.

    {{ WugFresh }}

  10. #9
    *Rescue Squad*
    Supporting Member
    Points: 49,198, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 3.0%
    Achievements:
    500 Experience Points250 Experience Points7 days registered100 Experience PointsTagger Second Class
    macpro88's Avatar
    Member #
    20491
    Join Date
    Dec 2010
    Posts
    6,938
    Liked
    320 times
    Nice, very nice Wug, I have always wanted a deeper explanation of this, you nailed it! Great write up!

    And always remember to read, read, read, and read some more!

  11. #10
    X Pursuant
    Points: 3,480, Level: 36
    Level completed: 87%, Points required for next Level: 20
    Overall activity: 0%
    Achievements:
    31 days registered500 Experience Points250 Experience Points100 Experience Points7 days registered
    Getsome122's Avatar
    Member #
    23496
    Join Date
    Dec 2010
    Location
    Bristol, TN
    Posts
    912
    Liked
    23 times
    I always give a much simplified explanation to people when they ask. Will just refer to this thread from now on lol

    DX- rooted, deodexed, strapped, OC'd, and themed how I like it.

Page 1 of 6 123 ... LastLast

Remove Ads

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Need Data throttling explained
    By pharmnatr in forum Droid X Hacks
    Replies: 17
    Last Post: 03-26-2011, 01:07 AM
  2. Deodexing 2.3.340
    By Sphinx8751 in forum Droid X General Discussion
    Replies: 0
    Last Post: 01-25-2011, 09:24 PM
  3. Deodexing the New .340
    By maddog0331 in forum Droid X Themes
    Replies: 30
    Last Post: 12-24-2010, 02:17 PM
  4. Deodexing using bootstrap?
    By Mudig in forum Droid X Hacks
    Replies: 3
    Last Post: 12-23-2010, 04:24 AM
  5. Need 'Lil Help With Deodexing
    By Balticzar in forum Droid X Help
    Replies: 1
    Last Post: 10-08-2010, 11:06 PM

Search tags for this page

DeOdexing

,
deodexed apk
,

deodexing a rom

,
deodexing an app
,
deodexing android
,
deodexing apk
,
deodexing app
,
deodexing rom
,
deodexing tutorial
,
what is deodexing
Click on a term to search our sites for related topics.