Tool Description:
Apktool:: To decompile the APK, generate the program's source code and pictures, XML configuration, language resources and other files. Official address: https://ibotpeaches.github.io/Apktool/
Dex2jar: Decompile The APK to Java source (Classes.dex into a JAR file) official address: Https://github.com/pxb1988/dex2jar
Jd-gui: View apk in Classes.dex converted into a jar file, that is, the source file official address: Http://jd.benow.ca/https://github.com/java-decompiler/jd-gui
First, anti-compilation apk get source code, pictures, XML configuration, language resources and other files
See the Apktool tool and the apk you want to decompile
Content in Apktool.bat:
@echo off
Set path=%cd%;%path%;
Java-jar "%~dp0\apktool.jar"%1%2%3%4%5%6%7%8%9
Place the APK in the same directory as the Apktool and the command line into the directory and execute the following command:
Apktool D zhinanzhen.apk
Output See
Generate file directory see:
Second, anti-compilation apk get Java source code
Change the apk suffix name to be deserialized to. rar or. zip, and extract the Classes.dex file from it, place the obtained classes.dex into the tool dex2jar-2.0 folder, command line into the directory, execute the following command:
D2j-dex2jar.bat Classes.dex
Output Classes-dex2jar.jar, open with Jd-jui to view the source code
Using Apktool to decompile android APK