Before referring to the online great God introduced the APK for Mac anti-compilation article, which is written in very detailed and practical, but because the APK for Mac anti-compilation details are very cumbersome, the process is relatively complex, against this flaw in the process of its anti-compilation is optimized, Its principle is practical familiar with the SH command, now the specific operation of the steps presented:
1. Download apktools (structure after optimization): http://download.csdn.net/detail/dwbutterfly/9486140
2. Unzip the apktool-jdgui.zip to local, and look inside the structure as shown:
3. The first time, you need to install JD-GUI-0.2.7.OSX.I686.DMG after installation:
4. Copy the above Jd-gui to/users/your computer user name/applications directory,:
5. Go back to the Apktool-jdgui directory you unzipped and open apkparser.sh to start modifying some of the relevant information:,
6. Open apkparsergui.sh to modify the following information:
Note: All file paths about/user/sadshine/need to be modified to your own path
7. Rename the apk you want to decompile to test.apk into the Apks_parser file directory (Apks_parser directory refer to 1 steps)
Then open the Terminal command, drag the apkparser.sh into the command terminal, and then enter to execute as shown:
After executing the above command, open the Apks_parser directory, you will find out a test directory open the test directory to see the anti-compiled resource file as shown:
8. decompile The APK Java source code, drag the apkpasergui.sh into the command terminal after executing the Jd-gui tool and the Dex file directory, drag the Dex file into the Jdgui tool to view, as shown in:
The following generated source code can be viewed!
Very simple APK anti-compilation (MAC version detailed)