FORUMS

[HOWTO] Odex /system/app

2,180 posts
Thanks Meter: 1,955
 
Post Reply Email Thread
A quick guide for how to odex any rooted Desire Rom's /system/app/
The attached scripts should ignore any existing odex'd apk's

Depending on your base Rom you should gain ~20-50MB free internal space


***** DO A NANDROID BACKUP BEFORE DOING ANY OF THIS *****

Requirements:
Rooted de-odexd Rom (Partial or Full)
Working ADB on Win/Lin/Mac
SD Card in Desire with ~200MB Free space.

Guide:
Extract the attached zip to your desktop
Open CMD Window/Terminal and CD to Desktop
While your phone is booted normally
Push the odex folder to /data
Code:
adb push odex /data/odex
Run odex.sh
Code:
adb shell chmod 755 /data/odex/odex.sh
adb shell /data/odex/odex.sh
This will copy all none odexd apk's to /sdcard/app and odex them, your phone will reboot to recovery once done.

In your custom recovery select
Code:
partitions menu
> mount /system
> mount /data
> mount /sdcard
Once all partitions are mounted, in your CMD Window/Terminal
Code:
adb shell /data/odex/appupdate.sh
adb shell rm -r /data/odex
This will clear out all none odex's APK's and move the odexd ones from SD back to /system/app/

For good measure clear you dalvik-cache and reboot.

Thanks to Paul OBrien for the base script's.
Attached Files
File Type: zip Desire_sys_app_odex.zip - [Click for QR Code] (132.1 KB, 1981 views)
The Following 5 Users Say Thank You to Vorbeth For This Useful Post: [ View ] Gift Vorbeth Ad-Free
24th July 2010, 05:48 PM |#2  
d.cortez's Avatar
Senior Member
Flag north texas
Thanks Meter: 596
 
101010
More
thanks for posting... will try this later this weekend and follow up with my results!
24th July 2010, 09:03 PM |#3  
hensk's Avatar
Senior Member
Flag Skopje
Thanks Meter: 158
 
More
exelent job ,just on time
for free up my memory
24th July 2010, 10:16 PM |#4  
Member
Thanks Meter: 0
 
More
Thanks for this, excellent post. I'll be using this once the ROMs settle down a bit, annoying as f**k changing every day
25th July 2010, 03:39 AM |#5  
robocik's Avatar
Inactive Recognized Developer
Flag Malmö
Thanks Meter: 4,188
 
Donate to Me
More
This is great ! Thanks Just used it on my Hero
Can you add a framework odexer too ?
25th July 2010, 04:09 AM |#6  
MasDroid's Avatar
Senior Member
Thanks Meter: 70
 
Donate to Me
More
Thank you for this.

Sent from my HTC Desire using XDA App
25th July 2010, 12:04 PM |#7  
Beppemi's Avatar
Senior Member
Flag Larino [east coast Italy]
Thanks Meter: 25
 
More
Nice guide, i'll try this afternoon...thanks soo much
25th July 2010, 12:15 PM |#8  
mr.r9's Avatar
Senior Member
Thanks Meter: 50
 
More
Man I've asked 2-3 developers & I PM'd a few people, but none replied regarding odexing.
You work is highly appreciated, thank you.
25th July 2010, 12:15 PM |#9  
Vorbeth's Avatar
OP Senior Member
Thanks Meter: 1,955
 
Donate to Me
More
Quote:
Originally Posted by robocik

This is great ! Thanks Just used it on my Hero
Can you add a framework odexer too ?

Odexing the framework after it's been flashed has caused a few FC's for me, so I have left it out.
25th July 2010, 12:20 PM |#10  
Senior Member
Flag London
Thanks Meter: 138
 
More
what does actually do for the phone/app?
25th July 2010, 12:27 PM |#11  
Senior Member
Flag Gummersbach
Thanks Meter: 110
 
More
it saves space on data partition.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes