preparatory work
- Download the anti-compilation tool Apktool, Dex2jar
- Jar View tool Jd-gui for Mac
: http://download.csdn.net/detail/linsen618/8668209
1. Decompile The resource file
- Open the terminal CD to the directory that holds the Apktool (you can use LS to view the folders in the current directory, and then keep looking for CDs to APKTOOL)
- Input chmod +x apktool modify Apktool to executable
- Enter ./apktool d xx.apk to perform the anti-compilation operation
2. Decompile the source code
- Change the apk file suffix name directly to. zip and unzip. Get the Classes.dex file, which is the Java source code is compiled and then packaged with the DX tool.
- Copy the Classes.dex file to the same folder as the Dex2jar
- Terminal CD to Dex2jar directory, run sh dex2jar.sh classes.dex
- Generate Classes_dex2jar.jar
- You can see the source code by opening it with JD GUI
- Click JD-GUI-0.3.5.OSX.I686.DMG to open JD GUI
- Drag Classes_dex2jar.jar to JD GUI to view source code
Mac version Anti-compilation apk get resource file and source code