The preface has to say that recent contact with the technology are unfamiliar to me in the field, I myself also in the process of the accumulation of groping side.
The tool uses two anti-compilation tools: Dex2jar and Jd-gui, as follows:
Dex2jar:https://code.google.com/p/dex2jar/downloads/list
jd-gui:http://jd.benow.ca/(download Linux version)
APK anti-compilation gets Java source code 1. Unzip the apk you need to decompile
Unzip test.apk-d/tmp/test/
2. Restore the Dex file to a. jar file
Dex2jar-0.0.9.15/d2j-dex2jar.sh/tmp/test/classes.dex
3. Jd-gui reading. jar files
The main is decompression Jd-gui, because this file decompression does not automatically create folders, so you need to pre-prepare the Decompression folder
Then, you can view the previously generated jar file by Jd-gui
./jd-gui/tmp/issue/classes-dex2jar.jar
Effect
With privacy issues, some package names and class names are covered, but you can see that the APK was successfully deserialized by us.
Apktool Anti-compilation apkDex2jar and Jd-gui can only view the APK source code, but unable to view the resource profile, want to see the APK resource profile need to use the Apktool tool.。
Apktool is as follows, because I am in the Linux environment, so only need to download two Linux-related ZIP files.
Https://code.google.com/p/android-apktool/downloads/list
Unzip apktool1.5.2.tar.bz2 and apktool-install-linux-r05-ibot.tar.bz2 separately, and copy Apktool.jar from the directory apktool1.5.2 to Apktool-install-linux-r0 The 5-ibot directory.
To decompile the execution command:
./apktool d/tmp/test.apk