Download and use Android APK decompilation tools
Overview
Android APK decompilation is an interesting thing. We can perform Chinese-based cracking on APK decompilation.
Android APK decompilation mainly involves the use of three tools:
Apktool
Dex2jar
Jd-gui (jad)
Tool for sorting and downloading this article
Android-ApkTool: It can be decompiled into smali intermediate code files and human-friendly XML resource files, such as AndroidManifest. xml.
Instructions for use:
The latest version of the project is 2.0, which is different from that of 1.x:
Examples of new usage in 2.0 vs 1.5.xOld (Apktool 1.5.x)New (Apktool 2.0.x)apktool if framework-res.apk tagapktool if framework-res.apk -t tagapktool d framework-res.apk outputapktool d framework.res.apk -o outputapktool b output new.apkapktool b output -o new.apk
The specific usage is as follows:
Basic: apktool d testapp.apk Decoding: $ apktool d foo. jar // decodes foo. jar to foo. jar. out folder $ apktool decode foo. jar // decodes foo. jar to foo. jar. out folder $ apktool d bar.apk // export bar.apk to bar folder $ apktool decode bar.apk // decodes bar.apk to bar folder $ apktool d bar.apk-o baz // decodes bar.apk to baz folder Building $ apktool d foo. jar // decodes foo. jar to foo. jar. out folder $ apktool decode foo. jar // decodes foo. jar to foo. jar. out folder $ apktool d bar.apk // decodes bar.apk to bar folder $ apktool decode bar.apk // decodes bar.apk to bar folder $ apktool d bar.apk-o baz // decodes bar.apk to baz folder
Dex2jar Introduction: Convert dex file to jar File Project address: original address: Usage: Documentation address: http://sourceforge.net/p/dex2jar/wiki/UserGuide/; http://sourceforge.net/p/dex2jar/wiki/Faq/ version: original address version is 0.0.9.5, new address version is 2.0 requirements Environment: JDK7
// For Linux, Mac OSX, Cygwinsh /home/panxiaobo/dex2jar-version/d2j-dex2jar.sh /home/panxiaobo/someApk.apk// For WindowsC:dex2jar-versiond2j-dex2jar.bat someApk.apk
Then you can use jd-gui to view the generated jar file.