On Android anti-compilation

Source: Internet
Author: User

Decompile APK get code & Resources

First, the tool

1.apktool: Get resource files, extract picture files, layout files, and some XML resource Files

2.dex2jar: decompile the APK into Java Source code ( classes.dex translates to Jar file )

3.jd-gui: View the converted jar file in 2 , that is, view the Java file

Second, the actual operation

1. Use apktool anti-compilation APK to get pictures and XML resources:

1) after extracting the downloaded apktool , we can see the following documents

2) Double-click cmd.exe, come to command line, enter: apktool.bat D csdn.apk ,Enter Enter.

2. convert classes.dex to jar file using Dex2jar :

1) Unzip the downloaded dex2jar folder, and classes.dex theapk After the extract is copied to Dex2jar.bat

In the directory under which it resides.

2) Open cmdand come to this directory: type:d2j-dex2jar.bat classes.dex

3) generated a jar Package, the conversion is complete!

3. Use Jd-gui to view the Java code in the jar Package:

On Android anti-compilation

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.