Decompile APK get code & Resources
First, the tool
1.apktool: Get resource files, extract picture files, layout files, and some XML resource Files
2.dex2jar: decompile the APK into Java Source code ( classes.dex translates to Jar file )
3.jd-gui: View the converted jar file in 2 , that is, view the Java file
Second, the actual operation
1. Use apktool anti-compilation APK to get pictures and XML resources:
1) after extracting the downloaded apktool , we can see the following documents
2) Double-click cmd.exe, come to command line, enter: apktool.bat D csdn.apk ,Enter Enter.
2. convert classes.dex to jar file using Dex2jar :
1) Unzip the downloaded dex2jar folder, and classes.dex theapk After the extract is copied to Dex2jar.bat
In the directory under which it resides.
2) Open cmdand come to this directory: type:d2j-dex2jar.bat classes.dex
3) generated a jar Package, the conversion is complete!
3. Use Jd-gui to view the Java code in the jar Package:
On Android anti-compilation