[android]apk One-button decompile

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.