Apktool
Purpose: Get resource files such as Mainifest.xml res
Download: http://ibotpeaches.github.io/Apktool/install/
Use: Apktool d test.apk
Dex2jar
Purpose: Get the project source jar package
Download: Https://github.com/pxb1988/dex2jar
Usage:
1. Unzip apk to get Classes.dex file
2, through the command./dex2jar-2.0/d2j-dex2jar.sh classes.dex to generate a Class.jar package that can be viewed with the Jd-gui tool
Note: After extracting the Dex2jar.zip file, you need to modify the executable file properties
chmod +x d2j-dex2jar.sh d2j_invoke.sh
Jd-gui
Purpose: View. Jar package Source Code tool
Download: http://jd.benow.ca/
Attached: Anti-compilation apk batch File
Directory structure:
[OBJC]View PlainCopy
- Apktool Src_dex2jar-2.0.zip
- Apktool.jar Test
- Decode-apk.sh Test-dex2jar.jar
- Dex2jar test.apk
- Jd-gui-0.3.5.osx.i686.dmg
decode-apk.sh file, using the./decode-apk.sh test.apk
[JavaScript]View PlainCopy
- Echo starts to decompile [email protected]
- [Email protected]
- filepath=${fullpath% '. apk '}
- Echo begins extracting resource files ...
- Apktool d [email protected]
- #java-xmx512m-djava.awt.headless=true-jar apktools/apktool.jar-f d-o "${filepath}" [Email protected]
- Echo begins to decompress classes.dex ...
- Unzip-od "${filepath}" [Email protected] Classes.dex
- Echo starts to decompile Classes.dex for Classes_dex2jar.jar ...
- Dex2jar/d2j-dex2jar.sh "${filepath}/classes.dex"-f-o "${filepath}/classes.jar"
- Echo Congratulations, anti-compilation complete, please go to ${filepath} directory to view
Reference:
Http://www.bkjia.com/Androidjc/938414.html
http://blog.csdn.net/ttdevs/article/details/42297905
Mac Build APK anti-compilation environment [GO]