Android APK Reverse Compilation

Source: Internet
Author: User

This period of time to learn about Android application development, since it is a Java development should be very good decompile to get the source code it, Google a bit, indeed very simple, the following is my practice process.

In this solemn statement, the purpose of sticking out is not to crack the other people's software, is completely a learning attitude, but it seems that through this way can also go to Chinese some foreign software.

This article Android anti-compile tutorial, test environment:

Win7 Ultimate x64

Ubuntu 12.04 x86_x64

Decompile Kit Download (2012-10-10 update):

http://download.csdn.net/detail/sunboy_2050/4633436

First, apk back to the Java source code

Download the above Decompile Toolkit, open the dex2jar-0.0.9.9 folder under the Apk2java directory, containing apk decompile into Java source tools, and source view tools.

APK Dex2jar, which converts classes.dex in apk into a jar file

Source View tool Jdgui, is a decompile tool, you can directly view the back-compiled jar package source code

Dex2jar and Jdgui Download the latest version, see Google Code:

Dex2jar (Google code): http://code.google.com/p/dex2jar/downloads/list

Jdgui (Google code): http://code.google.com/p/innlab/downloads/list

Please see the latest version of the official: Http://java.decompiler.free.fr/?q=jdgui

Specific steps:

First, change the apk file suffix to zip and extract, get the Classes.dex, it is the Java file compiled again through the DX tools packaged, will classes.dex copied to Dex2jar.bat directory dex2jar-0.0.9.9 folder.

Locate the Dex2jar.bat directory under the command line and run

Dex2jar.bat Classes.dex

Generated

Classes_dex2jar.jar

Then, into the Jdgui folder double-click Jd-gui.exe, open the jar package generated above Classes_dex2jar.jar, you can see the source code, the following figure:

Helloandroid source code before and after the counter compile the comparison is as follows:

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.