APK tools, Apktool,dex2jar,jd-gui, etc.

Source: Internet
Author: User

Tools Download: http://pan.baidu.com/share/link?shareid=2338878455&uk=2147770900 One, use Apktool decompile and compile the method Evaluation: It only smali the Dex file into the source code, the XML file can generate the plaintext format, and better.
At the command line, navigate to the Apktool.bat folder, which is used to decompile the command.
Command format: apktool.bat d-f [apk file] [output folder]
For example: Apktool.bat d-f serialport.apk SerialPort
It is also easy to repackage the precompiled files into apk.
Command format: apktool.bat b [folder for decompile output]
For example: Apktool.bat b SerialPort

Android-apktool's official website:
Https://code.google.com/p/android-apktool/downloads/list Two, the method of using Dex2jar,jd-gui,axmlprinter to decompile Evaluation: It can decompile the Dex file into Java source code, AXMLPrinter2 processing XML, often error.
View Source:
1, first the apk file suffix to zip and decompression, get Classes.dex and Androidmanifest.xml.
2, copy the Classes.dex to the directory where Dex2jar.bat is located, and navigate to the directory below the command line.
3, run the command: Dex2jar.bat Classes.dex, will generate Classes_dex2jar.jar.
4, with the Jd-gui tool to open it, you can see the source code, and may be all exported.
View xml:
5, will extract the Androidmanifest.xml file into the Axmlprinter2.jar directory,
Double-click the Xmldecode.bat in the directory to generate a txt corresponding to the XML, which is the decoded XML.

Dex2jar's official website: https://sourceforge.net/projects/dex2jar/
Jd-gui's official website: http://jd.benow.ca/
third, the method of using Smali2java to decompile

Very simple, directly in the image interface, open the APK file, you can view the Java source code.
The disadvantage is that you cannot export the Java file as a whole, you can save only a single file, and the resources are all IDs.

Smali2java Official Address: Http://www.hensence.com/cn/smali2java
Iv. The method of APK (apkide) in reverse compiling

APK (Apkide) is a tool that integrates Apktool,dex2jar,jd-gui.
Use it directly to view the Smali source code, and then use Jd-gui to view Java source and export.

Apkide Official Address: http://www.popotu.com/apkide.html


Reference: http://blog.csdn.net/sunboy_2050/article/details/6727581

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.