Decompile Apk get the Java source code

Reprinted from: http://hi.baidu.com/%CB%BF%D4%B5%CC%EC%CF%C2/blog/item/2284e2debafc541e495403ec.html


Tools download : using the dex2jar and JD-GUI these 2 tools

Dex2jar download.: http://laichao.googlecode.com/files/dex2jar-0.0.7-SNAPSHOT.zip

JD-GUI download.:

  Windows version of the JD-GUI: http://laichao.googlecode.com/files/jdgui.zip

  Linux version of the JD-GUI: http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gz

Step:

1 first find the installation of Android software package classes.dex

The.Apk file name to.Zip, and then extract the classes.dex file, java file, it is compiled by DX tool package, 2 tools so now we will use the above mentioned to reverse direction derived java source file

The 2 copy classes.dex to dex2jar.bat folder.

In the command line mode to navigate to the dex2jar.bat directory, run dex2jar.bat classes.dex , classes.dex.dex2jar.jar generation; 

3, run the JD-GUI tool (it is green without installation)

Open the jar file above, you can see the source code

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

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

Two. Decompile APK program source code and pictures, XML configuration, language resources file.

Reprinted from:

Tools download:

Load obtained in http://code.google.com/p/android-apktool/, apktool-1.0.0.tar.bz2 and apktool-install-windows-2.1_r01-1.zip two package to.

Step:

Two file 1 extract the downloaded packages, aapt.exe and apktool.bat. apktool-install-windows-2.1_r01-1.zip after decompression bag (note apktool-1.0.0.tar.bz2 after decompression of a.Jar file copy in.)

2 open the command window (> operation, enter the CMD, enter.) Access to the apktool.bat folder.

Input:

apktool d C:\***.apk  The C:\*** folder 

(command line interpreter: apktool d to output file folder decompile)

Note: you should decompile files must be placed in the root directory of C.,

3 open   C:\*** folder, you can get all kinds of resources in our college.


Three. The anti compiled file re packaged into apk

 Very simple, as long as the input:

Apktood B c:*** folder (you compiled folder)

Posted by Craig at November 18, 2013 - 1:55 PM