Overview
Android APK Anti-compilation is an interesting thing. We can do the anti-compilation of the APK to Chinese hack work and so on.
Android APK anti-compilation mainly involves the use of three tools, respectively
- Apktool
- Dex2jar
- Jd-gui (ie jad)
This article comes with tools to organize downloads
Android-apktool function: Cananti-compilation intoSmalithe intermediate code files and human-friendly XML resource files such as Androidmanifest.xml
Project Address: Original address: https://code.google.com/p/android-apktool/, But the project has been relocated to http://ibotpeaches.github.io/Apktool/
Instructions for use:
Official Document Address: http://ibotpeaches.github.io/Apktool/documentation/
The latest version of the project is 2.0, with the 1.x version of the usage difference:
Examples of new usage in 2.0 vs 1.5.xOld (Apktool 1.5.x) <span style= "White-space:pre" ></span>new (Apktool 2.0. x) apktool if framework-res.apk tag<span style= "White-space:pre" ></span>apktool if framework-res.apk-t Tagapktool d framework-res.apk output<span style= "White-space:pre" ></span>apktool D framework.res.apk-o Outputapktool b output New.apk<span style= "White-space:pre" ></span>apktool b output-o new.apk
The following is a specific use
Basic: Apktool D testapp.apkdecoding Anti-coding: $ 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 build building$ apktool d foo.jar//decodes fo O.jar to Foo.jar.out folder$ apktool decode foo.jar//decodes Foo.jar to foo.jar.out folder$ apktool D bar.apk//decodes b ar.apk to bar folder$ Apktool decode bar.apk//decodes bar.apk to bar folder$ apktool D bar.apk-o baz//decodes bar.apk t o Baz folder
Dex2jar Introduction:putDexconvert files intoJarfileProject Address: Original address: https://code.google.com/p/dex2jar/, the latest project address: http://sourceforge.net/p/dex2jar/use:document Address: http://sourceforge.net/p/dex2jar/wiki/UserGuide/; http://sourceforge.net/p/dex2jar/wiki/Faq/version: The original address version is 0.0.9.5, the new address version is 2.0requirement Environment: JDK7
For Linux, Mac OSX, cygwinsh/home/panxiaobo/dex2jar-version/d2j-dex2jar.sh/home/panxiaobo/someapk.apk//for Windowsc:\dex2jar-version\d2j-dex2jar.bat someapk.apk
You can then use Jd-gui to view the resulting JAR file
Jd-guiDescription: View the source code directly through the jarProject Address: http://jd.benow.ca/use: Slightly
Android APK anti-compilation related tools download and use