Android apk anti-compilation get Java source code

Source: Internet
Author: User
Tags rar

We do Android development, see others application of some good features, is not very want to get the source code, for reference? Since Android is developed in Java, we can easily decompile the source code to the application. Let me briefly explain how it should be done.

Specific steps:

1. First change the apk file suffix to rar and unzip.

2. Unzip the RAR file and get the Classes.dex file

3. We need to use Dex2jar to convert the Dex file to a jar file.

3.1 Put the extracted Classes.dex file into the Dex2jar.bat directory)


3.2 Open the DOS command line, enter the directory where Dex2jar is located, run Dex2jar.bat Classes.dex generate Classes_dex2jar.jar

4. Finally open the generated classes_dex2jar.jar with Jd-gui.exe and we will be able to open the source code of the application.

5. Tools

dex2ja R :   https://code.google.com/p/dex2jar/ downloads/detail?name=dex2jar-0.0.9.15.zip&can=2&q=

Jd-gui:

Http://code.google.com/p/innlab/downloads/list

http://www.ijiami.cn/

Android apk anti-compilation get Java source code

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.