Android applications are packed inside a APK file, which is just a ZIP file containing among other things a compactDalvik Executable (.dex) file.
First step is to extract the “classes.dex” file from the APK:
Now, we use the tool dex2jar to convert the classes.dex file to Java .class files:
From here we obtain the file “classes.dex.dex2jar.jar”, now we can use the java decompilerJD-GUI to extract the source code:
Now just go to “File -> Save all sources” and it will generate the zip file “classes.dex.dex2jar.src.zip” containing all the decompiled Java source code
我的执行步骤:
1、将apk文件复制到我要工作的目录-software,并执下以下命令:
2、从网站下载dex2jar-0.0.9.7.zip ,存放在我的工作目录,并解压,再执行以下命令:
3、从网站下载jd-gui-0.3.3.linux.i686.tar.gz,存放在我的工作目录,并解压,再执行以下命令:
之后出现一个新的对话框:
结束。。。。