Using Apktool to decompile android APK

Source: Internet
Author: User

Tool Description:
Apktool:: To decompile the APK, generate the program's source code and pictures, XML configuration, language resources and other files. Official address: https://ibotpeaches.github.io/Apktool/

Dex2jar: Decompile The APK to Java source (Classes.dex into a JAR file) official address: Https://github.com/pxb1988/dex2jar

Jd-gui: View apk in Classes.dex converted into a jar file, that is, the source file official address: Http://jd.benow.ca/https://github.com/java-decompiler/jd-gui

First, anti-compilation apk get source code, pictures, XML configuration, language resources and other files

See the Apktool tool and the apk you want to decompile

Content in Apktool.bat:

@echo off
Set path=%cd%;%path%;
Java-jar "%~dp0\apktool.jar"%1%2%3%4%5%6%7%8%9

Place the APK in the same directory as the Apktool and the command line into the directory and execute the following command:

Apktool D zhinanzhen.apk

Output See

Generate file directory see:

Second, anti-compilation apk get Java source code

Change the apk suffix name to be deserialized to. rar or. zip, and extract the Classes.dex file from it, place the obtained classes.dex into the tool dex2jar-2.0 folder, command line into the directory, execute the following command:

D2j-dex2jar.bat Classes.dex

Output Classes-dex2jar.jar, open with Jd-jui to view the source code

Using Apktool to decompile android APK

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.