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; Originally Posted by rqballjh Yes, it does, but I'm still curious about restoring to a CW backup, won't I lose all data, settings, etc., that ...


Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 54
Like Tree15Likes

Thread: Deodexing Explained + How To

  1. #31
    Agent X
    Points: 5,992, Level: 50
    Level completed: 21%, Points required for next Level: 158
    Overall activity: 0.4%
    Achievements:
    500 Experience Points31 days registered250 Experience Points100 Experience Points7 days registered
    JNEHAMA's Avatar
    Member #
    28370
    Join Date
    Feb 2011
    Location
    Long Island New York
    Posts
    1,205
    Liked
    65 times
    Quote Originally Posted by rqballjh View Post
    Yes, it does, but I'm still curious about restoring to a CW backup, won't I lose all data, settings, etc., that have changed since I made the back up?

    What are the pitfalls to installing a theme written for the previous GB leak from a week or so ago?
    Yes you will loose any interim data. Before going back, make a TiBU backup. When you are back on your original stock nandroid you can update data using TiBU! It seems complicated but it doesn't take much time once you get used to it. It's the price you pay if you want customizations.

    Sent from my DROIDX using Droid X Forums

  2. Droid X Forums
    Ads


  3. #32
    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 rqballjh View Post
    Yes, it does, but I'm still curious about restoring to a CW backup, won't I lose all data, settings, etc., that have changed since I made the back up?

    What are the pitfalls to installing a theme written for the previous GB leak from a week or so ago?
    You could just flash this first every time you want to switch themes on GB:
    GingerbreadDefaultTheme

    Its packaged by Kirbnite, he beat me to it. Lol.

    A theme is composed of system apps and framework components, so:
    /system/app/*.apk
    /system/framework/*.apk

    If those system apps and framework components from the leak are identical to the ones on the latest build then there would be no disadvantage. If any of those apps were updated on the new build and you flashed a theme from the leak, you would effectively be overwritting a new version app with an old themed version.

    There is no changelogs with these leaks.. so who knows.

    I would guess it's probably the same, and this version was mainly just an update to the baseband. IDK though.

    The framework-res.apk could be different

    I know that the SystemUI.apk has a different 3G icon, so that indicates that they tinkered around with the system apps a little. If all they did was swap some icons, then it wouldn't matter (that's essentially what applying a theme is), but if they changed some code it would.

    Like I said.. no changelogs, so there really is no way to know for sure.

    {{ WugFresh }}
    Last edited by WugFresh; 04-15-2011 at 11:21 AM.
    rqballjh likes this.
    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+::..

  4. #33
    X Pursuant
    Points: 2,167, Level: 28
    Level completed: 12%, Points required for next Level: 133
    Overall activity: 2.0%
    Achievements:
    250 Experience Points3 months registered100 Experience Points31 days registered7 days registered
    rqballjh's Avatar
    Member #
    18993
    Join Date
    Nov 2010
    Posts
    566
    Liked
    0 times
    Ok, thanks, makes things somewhat clearer. The link you have above, it's just the GB theme for the deox version? It's not the "whole" deodexed version is it? If just the theme, are yousaying I could put a theme on, then later want a different theme to flash this one first, then the new theme and I wouldn't ahve to do any restores, etc.? (That would be awesome)

  5. #34
    X Conveyor
    Points: 1,190, Level: 18
    Level completed: 90%, Points required for next Level: 10
    Overall activity: 0.1%
    Achievements:
    500 Experience Points250 Experience Points100 Experience Points31 days registered7 days registered
    kmudd3's Avatar
    Member #
    26645
    Join Date
    Jan 2011
    Location
    San Diego
    Posts
    307
    Liked
    4 times
    Nice work Wug! This answered all kinds of questions I had.

    Quote Originally Posted by WugFresh View Post
    ..:: 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 appsthere 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 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 }}

  6. #35
    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 rqballjh View Post
    Ok, thanks, makes things somewhat clearer. The link you have above, it's just the GB theme for the deox version? It's not the "whole" deodexed version is it? If just the theme, are yousaying I could put a theme on, then later want a different theme to flash this one first, then the new theme and I wouldn't ahve to do any restores, etc.? (That would be awesome)
    Yeah. To the same degree, this could be flashed over an odexed gingerbread and it would deodex it. The "whole" deodexed version isn't needed to deodex, just this. The "whole" version is just these deodexed system apps and framework components PLUS all the other GB rom components, but if you are already on GB then all you need is this zip, that's why kirbnite had that posted before P3 posted his official full deodexed version.

    But to be clear, you are correct. You can flash that, and then a new theme, to avoid having to do any restores. Since it includes all the stock GB system apps and framework components that are themeable, there will be no chance that anything will be left over from your last theme.

    If you do that though. You probably should flash that zip then let it boot up, then reboot back into clockwork and flash the theme you want. If you flash them right after each other in clockwork you run the risk of causing a bootloop.

    {{ WugFresh }}
    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+::..

  7. #36
    X Conveyor
    Points: 6,788, Level: 54
    Level completed: 19%, Points required for next Level: 162
    Overall activity: 0.6%
    Achievements:
    Created Album pictures31 days registered100 Experience Points7 days registeredTagger Second Class
    greevedogg's Avatar
    Member #
    16608
    Join Date
    Oct 2010
    Location
    CFL
    Posts
    477
    Liked
    33 times
    Quote Originally Posted by rqballjh View Post
    Yes, it does, but I'm still curious about restoring to a CW backup, won't I lose all data, settings, etc., that have changed since I made the back up?

    What are the pitfalls to installing a theme written for the previous GB leak from a week or so ago?
    If you restore to a CW backup, the way to save new USER DATA is with Titanium Backup, so in essence, you can have your cake and eat it too...

    As for the second part of your question, I am not 100% certain that a theme written for the LEAK GB will play nicely with the 4.5.588 GB....the framework files and stuff might be the same and everything works great, or maybe some of the files/framework was modified and you could potentially get FC's and stuff....but you could definitely make a CW backup, try it out, and see if everything works....if not, restore back!

    Edit: So sorry...I was a numbskull and didn't refresh and see all the responses, so yeah, I basically just said what everybody had already posted...
    Last edited by greevedogg; 04-15-2011 at 12:21 PM. Reason: Me so stoopid

  8. #37
    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 kmudd3 View Post
    Nice work Wug! This answered all kinds of questions I had.
    Thanks! Glad you found it helpful.

    sidenote: if you could unquote the op, that would be better... because if I update it, and someone reads your quoted version, they won't get the latest info. thanks

    {{ WugFresh }}
    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+::..

  9. #38
    X Conveyor
    Points: 6,788, Level: 54
    Level completed: 19%, Points required for next Level: 162
    Overall activity: 0.6%
    Achievements:
    Created Album pictures31 days registered100 Experience Points7 days registeredTagger Second Class
    greevedogg's Avatar
    Member #
    16608
    Join Date
    Oct 2010
    Location
    CFL
    Posts
    477
    Liked
    33 times
    Hey Wug....
    Is there a clock removal yet for GB?
    And a data throttle hack for GB?
    Last edited by greevedogg; 04-15-2011 at 12:25 PM.

  10. #39
    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 greevedogg View Post
    Hey Wug....
    Is there a clock removal yet for GB?
    And a data throttle hack for GB?
    IDK, I haven't done it yet. You should get at snow, he's usually the first one on that task. I think you might be able to do it with xUltimate.

    {{ WugFresh }}
    greevedogg likes this.
    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+::..

  11. #40
    X Conveyor
    Points: 6,788, Level: 54
    Level completed: 19%, Points required for next Level: 162
    Overall activity: 0.6%
    Achievements:
    Created Album pictures31 days registered100 Experience Points7 days registeredTagger Second Class
    greevedogg's Avatar
    Member #
    16608
    Join Date
    Oct 2010
    Location
    CFL
    Posts
    477
    Liked
    33 times
    I have some patience, so I can wait, if I HAVE to....LOL!

    Just curious, that's all....

Page 4 of 6 FirstFirst ... 23456 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.