The tools you need:
1.apktool apk Packaging Tool
: http://android-apktool.googlecode.com/files/apktool1.5.2.tar.bz2
Installation: Direct decompression can be, is a Apktool.jar file, through
$java-jar Apktool.jar
To execute, depending on the Java execution Environment
2.dex2jar Dex Conversion Jar Tool
: Http://dex2jar.googlecode.com/files/dex2jar-0.0.9.15.zip
Installation: Direct decompression can be, is a directory. There are very many files in it, through
$./dex2jar.sh
To perform
3. If you do not have unzip, install this decompression tool, zip decompression tool, for unpacking jar package (jar package is zip compressed, so can be replaced by other tools)
: Ubuntu $sudo apt-get Install unzip
Installation: $sudo apt-get install unzip
$upzip [Src_path]-D [Dst_path]
To perform
4.jad. class file Anti-compilation tool
: Http://www.varaneckas.com/jad
Http://varaneckas.com/jad/jad158e.linux.static.zip
Installation: Direct decompression is possible. is a executable file that is run through
./jad
To execute. It is necessary to note that this need to download the static version number, if not, in the first link to something else there is a download.
Next, the tool is ready to be completed, and it is best to set the environment variables. We'll be able to decompile the APK.
First, extract the APK resources
Run: $java-jar apktool.jar d [source.apk]
Second, the anti-compilation source code
(1) Unzip apk
$unzip [source.apk]-D [Step_1]
Step_1 refers to the folder you need to unzip.
(2) Enter the Step_1 folder and locate the Classes.dex file. Convert dex files to jar files
$dex 2jar.sh Classes.dex
(3) To obtain a Classes_dex2jar.jar file, we are now going to unzip the file again
$upzip classes_dex2jar.jar-d [Step_3]
Step_3 refers to the folder you extracted.
(4) We obtain a Step_3 folder, and we will then decompile all the. class files under the folder.
$./jad-o-r-s java-d src step_3/**/*.class
For the number of references above. able to run directly./jad view, or Readme.txt view
(5) We get a src folder again. This folder is the anti-compilation of the source code files.
You can also use the Jd-gui tool to view the Classes_dex2jar.jar class file directly.
Assuming the above command does not run. See if the folder is correct.
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Linux in the following APK anti-compilation software and process description