APK file cracking visible source code
1. Get the resource image of APK
Open it directly with WinRAR, and drag Res/drawable directly.
2. Get XML file information
Although you can use WinRAR to view the XML file, the XML file is optimized and cannot be viewed directly. You need to use the apktool. Download address: https://code.google.com/p/android-apktool /.
Unzip decompress it to the same directory, copy the APK file to be cracked to the same directory, DOS enters the path of apktool in cmd, and then input apktool D "XXX1" "xxx2 ", XXX1 refers to the APK file to be decompiled, and xxx2 refers to the path for storing the decompiled file,
For example, apktool D "C: \ taobao.apk" "C: \ Taobao"
3. ReverseCompile Dex to obtain the Java source code
The apktool tool can only decompile it into an smali intermediate code file. You need to use another open-source tool: dex2jar, http://code.google.com/p/dex2jar /. This tool cannot be directly translated into a Java file, but you can convert the DEX file to a jar file. Then, you can decompile the JAR file into a Java source file using the Jad tool. JD-Gui:
Http://java.decompiler.free.fr/jd-gui/downloads/jd-gui-0.3.3.windows.zip.
Detailed steps:
Decompress the APK file, drag it directly (RAR decompress the software), and find the classes. Dex file.
Enter the path of dex2jar. bat under cmd,
Enter "dex2jar. Bat XXX". xxx indicates the path and name of the classes. Dex file in the decompiled APK (obtained from classes ),
For example, dex2jar. Bat D: \ Classes. DEX;
In this way, a jar file is generated, and the JAR file is decompiled into a Java file by using JD-GUI tool. If you save all the files, a compressed file is generated, all the source code is in this compressed file. After decompression, you can see the detailed code. Very powerful.