How does one decompile the android APK package?

Source: Internet
Author: User

From pc's transfer to shoes, we all know that if we recompile .exe, mobile development is now quite popular, so Android apps are too easy to decompile and can be converted to articles compiled by others. I hope it will be useful to you :)

Dex2jar and JD-GUI these two tools with learning Android is too reliable, so put up to share with you, the advantages of open source is good things to share with you.

Dex2jar: http://laichao.googlecode.com/files/dex2jar-0.0.7-SNAPSHOT.zip
JD-GUI:
Windows JD-GUI: http://laichao.googlecode.com/files/jdgui.zip
Linux JD-GUI: http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gz

1. First find classes. Dex in the android installation package

Change the APK file name to .zip, and decompress the classes file. dex file, which is compiled by a Java file and then packaged by the DX tool. Now we use the two tools mentioned above to export the Java source file in reverse direction.

2. Copy classes. Dex to the directory where dex2jar. bat is located.
In Windows:
In command line mode, locate the directory where dex2jar. bat is located and run dex2jar. Bat classes. Dex to generate classes. Dex. dex2jar. jar.

In ubuntu:

Locate the directory of dex2jar. Sh in the terminal and run
Sh dex2jar. Sh classes. Dex

You can generate classes. Dex. dex2jar. Jar


3. Run the JD-GUI tool (it is green without installation)

Open the JAR File above and you will see the 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.