[GUIDE][HOW-TO][WINDOWS] How To Deodex CM7.2 Or Any ROM Manually topic


I know this is an old news, but I feels 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. One day, I find a simple
way on how to deodex ROM manually & it is also works on CM7.2

NOTE: 1 THIS METHOD HAVE ALREADY DONE ONLY BY WINDOWS
2 THIS METHOD IS BASICALLY WORKS ON ANY ROM
3 BEFORE ASK ANYTHING, PLEASE READ THE WHOLE MAIN THREAD FIRST

Requirements:

1 The Manual-Deodexer.zip [in attachments below]
2 A working brain :silly:
3 All framework files [Can find it at system/framework/HERE]
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] on your PC [EXAMPLE: D:/Deodexer]
3 Place all the files include in the Manuall-Deodexer.zip in the "Deodexer" folder
[baksmali.jar, smali.jar, java.awt.jar, busybox, dexopt-wrapper, zipalign.exe]

STEP B: Deodexing All JARs Files [IMPORTANT]

1 Place all of your framework files also in "Deodexer" folder
2 Deodexing framework files [I will 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:a ndroid.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 created 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 in [system/app]

1 Place any APK you want to deodex also in "Deodexer" folder [I will use SystemUI.apk for example]
2 Run CMD in mentioned folder [Shift + Right] & type:

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

THIS WILL ALSO 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 created in the 7ZIP window in the root folder
> Close the 7ZIP windows & you've deodexed SystemUI.apk

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 "anyapk".apk
3 Install it normally or push it to system/app [rw-r-r] method

NOTE: 1 TO DEODEXED Emails.apk & MobilePrint.apk YOU'LL NEEDS 1 MORE java.awt.jar
2 IT IS DEODEX, SO BASICALLY YOU DON'T HAVE TO SIGN THE APK

ALL CREDITS GOES TO @sicopat FOR HIS WONDERFUL THREAD
To me too, why not @Joe Hanson for making it snappy :cool:
HIT the Thanks button if I helped ;)














Attached Files





File Type: zip Manual-Deodexer.zip -
[Click for QR Code]
(5.38 MB)








1 commentaire:

  1. I must thank you for the efforts you have put in writing this website.
    I'm hoping to view the same high-grade blog posts by you later on as well.
    In truth, your creative writing abilities has motivated me to get my very own blog now ;)

    RépondreSupprimer

Remarque : Seul un membre de ce blog est autorisé à enregistrer un commentaire.