How to get Java source code for Android APK anti-compilation

Source: Internet
Author: User

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. Extracting the RAR file to get the Classes.dex file

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

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

3.2 Open the DOS command line, go to Dex2jar directory, run dex2jar.bat    classes.dex build Classes_dex2jar.jar

4. Finally open the generated classes_dex2jar.jar with Jd-gui.exe, we can open the source code of the application.

5. Tools for

dex2jar :   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

How to get Java source code for Android APK 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.