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
- 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.
- 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...