Every time the anti-compilation is a very annoying thing, tired began to lazy. Write scripts directly to save the operation.
Using Apktool,d2j-dex2jar for anti-compilation
Script: reseve-complie-apk.py
1 ImportOS2 ImportSYS3 Importcommands4 5 6Base_dir=""7Apktool_path="%s"%Base_dir8Dex2jar_path=".. /dex2jar-2.0"9 Ten defapktool_d (apk): Onecmd ='Apktool D%s'%apk A Printcmd - os.system (cmd) - Pass the - defApktool_b (apkdir): -cmd ='Apktool B%s'%Apkdir - Printcmd + os.system (cmd) - Pass + A defDex2jar (apk,apkdir): atcmd ="./%s/d2j-dex2jar.sh%s"%(Dex2jar_path, apk) - Printcmd - os.system (cmd) -cmd ="MV%s-dex2jar.jar%s/%s.jar"%(Apkdir,apkdir,apkdir) - Printcmd - os.system (cmd) in Pass - to defMain (): +APK = sys.argv[1] - Printapk theApkdir = apk[:-4] * PrintApkdir $ apktool_d (APK)Panax Notoginseng apktool_b (Apkdir) - Dex2jar (apk, Apkdir) the Pass + AMain ()
My local Directory information:
My operation is: go to the APK
will generate the corresponding APK directory, in the directory with the converted jar package, using Jd_gui to view the source code
Download the above tools:
Apktool:http://ibotpeaches.github.io/apktool/install/Latest Version 2.0.1
Dex2jar:https://github.com/pxb1988/dex2jar Latest Version 2.0
jd-gui:http://jd.benow.ca/Latest Version 1.4.0
[android]apk One-button decompile