[ODEX] on Any ROM | Now support AOSP ICS

Search This thread

puppet13th

Senior Member
I have made 2 method to do create odex on any ROM.
1. Using ADB script (need PC/Laptop)
2. Flash zip using CWM Recovery

I have tested this on
- Stock ROM with JiT enabled
- FroyoBread v23b
- GingerDX v13

Benefit of odex :
- Slightly faster boot
- APP startup faster
- Save space on /data/dalvik-cache

This script will only create odex from /system/framework and /system/app
in odex process it will take some space on /system make sure you have minimal 30MB free space on /system

WARNING : MAKE NANDROID BACKUP BEFORE PROCEED

Step by step using ADB script
a. Reboot into recovery
b. mount /system and /data from Recovery menu
c. tick usb debug and plugin usb cable (make sure you have installed ADB driver)
d. double click odex.cmd

CWM Recovery : flash odex-edify-x8.zip

download link :
odex-ADB
odex-edify-x8

Notice :
There is noway to make update.zip for xRecovery,because xRecovery using amend script,and amend script does not support run program in update script.

UPDATE odex for AOSP ICS is here

WARNING : THIS ZIP ONLY FOR AOSP ICS BOOTCLASSPATH AND IT WILL REMOVE ALL LIB FROM SYSTEM APP AND SAVE IT TO /SYSTEM/LIB
This zip tested on my ST17i and should be compatible with any CM9 build that use AOSP BOOTCLASSPATH

Download :
odex-lib2sys-ICS-cwm.zip

Tested with FXP CM9 122 :)

FXP CM9 will create dalvik-cache for system framework and system app on /cache/dalvik-cache

check this out :
Code:
~ # df -h
df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   173.8M     60.0K    173.8M   0% /dev
tmpfs                   173.8M         0    173.8M   0% /mnt/asec
tmpfs                   173.8M         0    173.8M   0% /mnt/obb
/dev/block/mtdblock0    400.0M    196.4M    203.6M  49% /system
/dev/block/mtdblock3    420.0M      9.9M    410.1M   2% /data
/dev/block/mtdblock2    101.5M      2.3M     99.2M   2% /cache
/dev/block/vold/179:1
                         13.8G     11.3G      2.5G  82% /mnt/sdcard
/dev/block/vold/179:1
                         13.8G     11.3G      2.5G  82% /mnt/secure/asec
~ #
 
Last edited:

biscoitu

Senior Member
Apr 26, 2011
678
146
Once more this guy bringing useful stuff to the community :D

One question, will the ROM ODEXed, increase the use of nand Flash memory?
 
  • Like
Reactions: puppet13th

puppet13th

Senior Member
Once more this guy bringing useful stuff to the community :D

One question, will the ROM ODEXed, increase the use of nand Flash memory?

Thank you biscoitu,i just want to share with every one here. ;)
it will increase usage on /system partition but slightly reduce usage on /data partition.look at this comparasion :

Code:
before odex
/system: 210944K total, 154236K used, 56708K available (block size 4096)
/data: 216832K total, 64100K used, 152732K available (block size 4096)

odex system framework
/system: 210944K total, 163544K used, 47400K available (block size 4096)
/data: 216832K total, 48088K used, 168744K available (block size 4096)

/system	: + 9308K
/data	: -16012K
dif	: - 6704K

odex system app
/system: 210944K total, 171360K used, 39584K available (block size 4096)
/data: 216832K total, 34764K used, 182068K available (block size 4096)

/system	: + 7816K
/data	: -13324K
dif	: - 5508K

dif total
/system	: +17124K
/data	: -29336K
dif	: -12212K
 
Last edited:

molimo

Senior Member
Jan 24, 2011
182
20
Tehran
after odex, we can use theme chooser to change our them????
we can do any work as before on our ROM or it prepares a limitations???
 

mastermikeywwt

Senior Member
Sep 15, 2011
62
2
Peterborough
Im gonna try the CWM method. I'll let you know if it bricks my phone or not =P

EDIT: Ok it worked on GingerDX 0.13. It appeared to hang for about 5-10 mins but it did work. I haven't seen any improvement in actual boot time. But once im past the boot loader things seem a fair bit more responsive quicker than usual after a boot
 
Last edited:

chrisbymoningka

Senior Member
May 13, 2011
105
14
Bandung
Im gonna try the CWM method. I'll let you know if it bricks my phone or not =P

EDIT: Ok it worked on GingerDX 0.13. It appeared to hang for about 5-10 mins but it did work. I haven't seen any improvement in actual boot time. But once im past the boot loader things seem a fair bit more responsive quicker than usual after a boot
how about the performance...
have a different or not??
(sorry for my english, i am indonesian)
 

DAXGr

Senior Member
Sep 8, 2010
284
10
Odex speeds up only first few boots in comparison to de-odexed apks. Android generates automatically the equivalent of odex after approx 2 boots after it has profiled apks, Google for odex vs deodex

Sent from my X10mini using XDA App
 

elderduke

Senior Member
May 2, 2011
663
171
great

thank you for a great job, again.
I tried the cwm version, on my 2.1.1. C.0.0.
benefits:
- slightly faster reboot
- more free ram : about 30 Mb - I have lots of apps installed, so my max value is not really relevant, but I have 95 Mb free now. (previously max. 60).
- gaming seems faster. games like ninja panda now can be played with no lag.
- linpack and quadrant not changed

Thank you,
Cheers,
 

DAXGr

Senior Member
Sep 8, 2010
284
10
thank you for a great job, again.
I tried the cwm version, on my 2.1.1. C.0.0.
benefits:
- slightly faster reboot
- more free ram : about 30 Mb - I have lots of apps installed, so my max value is not really relevant, but I have 95 Mb free now. (previously max. 60).
- gaming seems faster. games like ninja panda now can be played with no lag.
- linpack and quadrant not changed

Thank you,
Cheers,

But the op says it odex only /system not /data, so user apps don't benefit. :p

Sent from my X10mini using XDA App
 

shitlord68

Senior Member
Sep 24, 2011
161
25
Cause for me, it hasn't improved anything, it actually made my phone work slower and now I have these tiny lags...
Can anyone tell me how to remove it...?

Sent from my X8 using XDA App
 

Top Liked Posts

  • There are no posts matching your filters.
  • 72
    I have made 2 method to do create odex on any ROM.
    1. Using ADB script (need PC/Laptop)
    2. Flash zip using CWM Recovery

    I have tested this on
    - Stock ROM with JiT enabled
    - FroyoBread v23b
    - GingerDX v13

    Benefit of odex :
    - Slightly faster boot
    - APP startup faster
    - Save space on /data/dalvik-cache

    This script will only create odex from /system/framework and /system/app
    in odex process it will take some space on /system make sure you have minimal 30MB free space on /system

    WARNING : MAKE NANDROID BACKUP BEFORE PROCEED

    Step by step using ADB script
    a. Reboot into recovery
    b. mount /system and /data from Recovery menu
    c. tick usb debug and plugin usb cable (make sure you have installed ADB driver)
    d. double click odex.cmd

    CWM Recovery : flash odex-edify-x8.zip

    download link :
    odex-ADB
    odex-edify-x8

    Notice :
    There is noway to make update.zip for xRecovery,because xRecovery using amend script,and amend script does not support run program in update script.

    UPDATE odex for AOSP ICS is here

    WARNING : THIS ZIP ONLY FOR AOSP ICS BOOTCLASSPATH AND IT WILL REMOVE ALL LIB FROM SYSTEM APP AND SAVE IT TO /SYSTEM/LIB
    This zip tested on my ST17i and should be compatible with any CM9 build that use AOSP BOOTCLASSPATH

    Download :
    odex-lib2sys-ICS-cwm.zip

    Tested with FXP CM9 122 :)

    FXP CM9 will create dalvik-cache for system framework and system app on /cache/dalvik-cache

    check this out :
    Code:
    ~ # df -h
    df -h
    Filesystem                Size      Used Available Use% Mounted on
    tmpfs                   173.8M     60.0K    173.8M   0% /dev
    tmpfs                   173.8M         0    173.8M   0% /mnt/asec
    tmpfs                   173.8M         0    173.8M   0% /mnt/obb
    /dev/block/mtdblock0    400.0M    196.4M    203.6M  49% /system
    /dev/block/mtdblock3    420.0M      9.9M    410.1M   2% /data
    /dev/block/mtdblock2    101.5M      2.3M     99.2M   2% /cache
    /dev/block/vold/179:1
                             13.8G     11.3G      2.5G  82% /mnt/sdcard
    /dev/block/vold/179:1
                             13.8G     11.3G      2.5G  82% /mnt/secure/asec
    ~ #
    7
    Once more this guy bringing useful stuff to the community :D

    One question, will the ROM ODEXed, increase the use of nand Flash memory?

    Thank you biscoitu,i just want to share with every one here. ;)
    it will increase usage on /system partition but slightly reduce usage on /data partition.look at this comparasion :

    Code:
    before odex
    /system: 210944K total, 154236K used, 56708K available (block size 4096)
    /data: 216832K total, 64100K used, 152732K available (block size 4096)
    
    odex system framework
    /system: 210944K total, 163544K used, 47400K available (block size 4096)
    /data: 216832K total, 48088K used, 168744K available (block size 4096)
    
    /system	: + 9308K
    /data	: -16012K
    dif	: - 6704K
    
    odex system app
    /system: 210944K total, 171360K used, 39584K available (block size 4096)
    /data: 216832K total, 34764K used, 182068K available (block size 4096)
    
    /system	: + 7816K
    /data	: -13324K
    dif	: - 5508K
    
    dif total
    /system	: +17124K
    /data	: -29336K
    dif	: -12212K
    3
    @Everyone who is posting does it work on "..." ROM ( dots are name of ROM :p )

    Is it too hard to create backup of your ROM, flash this script and then:

    1. If it works and you are satisfied with it, leave it

    2.And if doesnt work, simple restore the backup you have made


    :D
    3
    I,ve tried this stuff and whoah I got a 90mb free ram on gingerdx v22 thats my first time since using gingerdx rom...and I just wanna ask if there s a need to use this often coz I observed that after a few a days my free ram is down to 60 to 70 mb? any advise...

    you just need to run it once.
    2
    can i odex cm10 rom??
    if can't,,there is other way to odex cm10 rom??

    Currently only support upto AOSP ICS ROM.i am planing to create new script to support all ROM.stay tuned. :D

    Sent from my ST17i using Tapatalk 2