Decompile Android APK

Source: Internet
Author: User

Find android
Class. Dex in the software installation package:

Change the APK file name to .zip, and decompress the class. Dex file. This is the Java file compiled and then packaged with the DX tool.
 
Tool preparation:
1. decompile the DEX file into a jar file. (Dex2jar)
 
2. decompile jar into a Java tool. JD-GUI)
Jd-gui-0.3.2.windows.zip

Size: 685.83 KB
MD5 checksum: a515eb2a360b62b21ab93b3b0a0adf6bjd-gui-0.3.2.linux.i686.tar.gz

Jd-gui-0.3.2.linux.i686.tar.gz
Size: 967.11 KB
MD5 checksum: fc4765536d2730774ce53e33a2f2aeefjd-gui-0.3.2.osx.i686.dmg

Jd-gui-0.3.2.osx.i686.dmg
Size: 1.58 MB
MD5 checksum: 4c9c06fbb8599ece8a8ff00a48a33735
Changes
 
Decompilation steps:
1. Copy class. Dex to the directory where dex2jar. bat is located. Run dex2jar. Bat class. Dex (use./dex2jar. Sh class. Dex in Linux) to generate classes. Dex. dex2jar. jar.
2, run the JD-GUI tool (it is green without installation), open the jar file above, you can seeSource code.

 

----------------------

Java decompiler

  • JD-core, JD-Eclipse Co., http://java.decompiler.free.fr /? Q = jdeclipse
        Windows usage http://www.blogjava.net/xmatthew/archive/2009/02/05/253444.html
      • for MAC/Linux: 2 steps, decompile into SRC zip, then attach to the jar in the eclipse LIBRARY PATH
        1. http://stackoverflow.com/questions/1384619/
          • jar (or zip) all the classes you want decompiled together.
          • launch JD-GUI and open your jar (ZIP) archive.
          • use
            "file"-"Save all sources" menu option. it will decompile all classes
            from your archive and save their sources into another zip file.
        2. you can add a 'source attachments 'to a jar. You must have the source of your jar in a zip orjar Archive as well.
          • -select the project, in the context menu select Properties-> JAVA build path
          • -go to the library page, select your jar, press 'Attach source...

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.