[Samsung Galaxy Mini] Joe Hanson:
I know this is an old news, but I think most of people out there or in here wondering

if they could deodex their CM7.2 or other ROM correctly. After trying every kitchen/apps

etc. to deodex, it's seems worthless. Moreover, as newbie, setting up the kitchen is so

complicated & frequently giving me a hard time. But no worries, these are the steps on

how to deodex ROM manually

NOTE:

1 THIS METHOD HAVE ALREADY DONE ONLY BY WINDOWS

2 THIS METHOD IS BASICALLY WORKS ON ANY ROM

3 BEFORE ASK ANYTHING, PLEASE UNDERSTAND THE WHOLE MAIN THREAD FIRST

Requirements:

1 The Manual-Deodexer.zip [in attachments below]

2 A working brain :silly:

3 All framework files

4 APK/JAR to deodex

5 A working PC of course

STEP A: Setup a working folder

1 Extract the Manual-Deodexer.zip

2 Create a folder named "Deodexer" [any place] in your PC [EXAMPLE: D:/Deodexer]

3 Place all of the files included in Manual-Deodexer.zip to the "Deodexer" folder

[baksmali.jar, smali.jar, java.awt.jar, busybox, dexopt-wrapper, zipalign.exe]

STEP B: Deodexing All JARs First [system/framework]

1 Place all of your framework files also in "Deodexer" folder

2 Deodexing framework files [I'll use android.policy.jar for a start]

3 Run CMD in mentioned folder [Shift + Right Click] & type:

java -Xmx1024m -jar baksmali.jar -c :core.jar:bouncycastle.jar:ext.jar:framework.jar:android.policy.jar:services.jar:core-junit.jar -x android.policy.odex

THIS WILL CREATE "out" FOLDER

4 Make sure the "out" folder is there, then in CMD, type:

java -Xmx1024m -jar smali.jar out -o classes.dex

THIS WILL CREATE "classes.dex"

5 Finally, deodex android.policy.jar:

> After the classes.dex created, directly delete both android.policy.odex & its "out" folder

> Open android.policy.jar with 7ZIP without extracting

> Drag the classes.dex in the 7ZIP window in the root folder

> Close the 7ZIP & you've deodexed android.policy.jar

[REPEAT THE SAME STEP FOR OTHER JARs 1 BY 1] [ON MY CM7.2, I GOT 19 JAR Files]

> So, basically repeat the steps for 19 times :laugh:

STEP B: Deodexing APK [system/app]

1 Place any APK you want to deodex also in "Deodexer" folder [I'll use SystemUI.apk for example]

2 Run CMD in mentioned folder [Shift + Right Click] & type:

java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:com.android.location.provider.jar:com.google.android.maps.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:monkey.jar:pm.jar:services.jar:sqlite-jdbc.jar:svc.jar -x SystemUI.odex

THIS WILL CREATE "out" FOLDER

3 Make sure the "out" is there & in CMD type:

java -Xmx1024m -jar smali.jar out -o classes.dex

THIS WILL CREATE "classes.dex"

4 Finally deodex SystemUI.apk:

> After the classes.dex created, directly delete both SystemUI.odex & its "out" folder

> Open SystemUI.apk with 7ZIP without extracting

> Drag the classes.dex in the 7ZIP window in the root folder

> Close the 7ZIP windows & you've deodexed SystemUI.apk

[REPEAT THE SAME STEPS ON OTHER APK YOU WANT TO DEODEX]

STEP C: Zipaplign Deodexed APK For Performances [OPTIONAL][ONLY APK]

1 In the same CMD prompt windows, type:

zipalign -v 4 "anyapk".apk zip_"anyapk".apk

2 A zip_"anyapk".apk file will be created. Delete your original deodexed "anyapk".apk

& rename zip_"anyapk".apk to the original "anyapk".apk you've deleted

3 Install it normally or push it to system/app [rw-r-r] method

NOTE:

1 TO DEODEXED Emails.apk & MobilePrint.apk YOU'LL NEED ANOTHER COPY OF "java.awt.jar"

2 IT IS DEODEX, SO BASICALLY YOU DON'T HAVE TO SIGN THE APK

ALL CREDITS GOES TO [MENTION=656857]sicopat[/MENTION] FOR HIS WONDERFUL THREAD

To me too, why not, for making it snappy :cool:

Did I say it is a simple & quicker job??? No, it doesn't :silly:

Hit the thanks button if I helped ;)