APK file completely cracked (source code is visible)

Source: Internet
Author: User
APK file cracking visible source code

  1. Get the resource image of APK

Open it directly with WinRAR, and drag Res/drawable directly.

2. Get XML file information

Although you can use WinRAR to view the XML file, the XML file is optimized and cannot be viewed directly. You need to use the apktool. Download address: https://code.google.com/p/android-apktool /.
Unzip decompress it to the same directory, copy the APK file to be cracked to the same directory, DOS enters the path of apktool in cmd, and then input apktool D "XXX1" "xxx2 ", XXX1 refers to the APK file to be decompiled, and xxx2 refers to the path for storing the decompiled file,

For example, apktool D "C: \ taobao.apk" "C: \ Taobao"

 3. ReverseCompile Dex to obtain the Java source code
The apktool tool can only decompile it into an smali intermediate code file. You need to use another open-source tool: dex2jar, http://code.google.com/p/dex2jar /. This tool cannot be directly translated into a Java file, but you can convert the DEX file to a jar file. Then, you can decompile the JAR file into a Java source file using the Jad tool. JD-Gui:
Http://java.decompiler.free.fr/jd-gui/downloads/jd-gui-0.3.3.windows.zip.
Detailed steps:

Decompress the APK file, drag it directly (RAR decompress the software), and find the classes. Dex file.

Enter the path of dex2jar. bat under cmd,

Enter "dex2jar. Bat XXX". xxx indicates the path and name of the classes. Dex file in the decompiled APK (obtained from classes ),

For example, dex2jar. Bat D: \ Classes. DEX;

In this way, a jar file is generated, and the JAR file is decompiled into a Java file by using JD-GUI tool. If you save all the files, a compressed file is generated, all the source code is in this compressed file. After decompression, you can see the detailed code. Very powerful.

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.