Decompiling Android .apk

Decompiling Android .apk

Scenario 1: get the string & gfx
1. Use some app e.g. ES File Explorer to extract the apk to the computer.
2. Use apktool. Download from http://code.google.com/p/android-apktool/. apktool and apktool-install-macosx.
3. do apktool d your_apk.apk

Scenario 2: get the source code
1. Same as step 1 above.
2. dex2jar : http://code.google.com/p/dex2jar/downloads/list. JD Decompiler http://java.decompiler.free.fr/?q=jdgui
3. unzip the apk to get to the classes.dex
4. dex2jar.sh classes.dex
5. drag the classes_dex2jar.jar to JD Decompiler.

Done.

發表留言