I.DecompilationAPKGetJavaSource code
Reprinted from:
Http://hi.baidu.com/%CB%BF%D4%B5%CC%EC%CF%C2/blog/item/2284e2debafc541e495403ec.html
download tool: dex2jar and JD-GUI This 2 tools
Dex2jar:Http://laichao.googlecode.com/files/dex2jar-0.0.7-SNAPSHOT.zip
JD-GUI:
WindowsVersionJD-GUI:Http://laichao.googlecode.com/files/jdgui.zip
LinuxVersionJD-GUI:Http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gz
Steps:
1. first, find Android classes in the software installation package. dex
put . APK file renamed . zip , decompress , obtain the classes. dex file, it is JAVA file compilation and then use DX tool packaged into , so now we use the 2 Tools for reverse export JAVA source file
2.SetClasses. DexCopyDex2jar. batDirectory.
Locate in Command Line ModeDex2jar. batDirectory, runDex2jar. Bat classes. Dex, GenerateClasses. Dex. dex2jar. Jar
Enter
Or CMD Enter Dex2jar. bat Path, and then enter "Dex2jar. Bat XXX" , Xxx Indicates that you want to decompile APK In Classes. Dex File path and name, for example, my Dex2jar. batIn D: \ Android \ apk_decode \ dex2jar-0.0.7-SNAPSHOT Path , Classes. Dex In D: \ android So: You enter Dex2jar. bat Enter Dex2jar. Bat D: \ Android \ Classes. Dex To generate Jar File.
3.RunJD-GUITool (it is green without installation)
Open the aboveJarFile to see the sourceCode
Classes.dex.dex2jar.src.zip
You can get the source code.
Bytes ----------------------------------------------------------------------------------------------------------------------
II.DecompilationAPKGenerateProgramOfImages,XMLConfiguration, language resources, and other files.
Reprinted from:Http://blog.sina.com.cn/s/blog_5752764e0100kv34.html
Download tool:
InHttp://code.google.com/p/android-apktool/Lower Carrier,Apktool-1.0.0.tar.bz2AndApktool-install-windows-2.1_r01-1.zipBoth packages are required.
Steps:
1.Decompress the two downloaded packages,Apktool-install-windows-2.1_r01-1.zipThe decompressed package containsAapt.exeAndApktool. bat.(Note thatApktool-1.0.0.tar.bz2ExtractApktool. JarToC: \ WINDOWS)
2.Open command window (Start>Run, enterCMD, Press Enter .) GoApktool. bat.
Input:
Apktool d c: \ ***. APK c :\***Folder
(Command line explanation:Apktool dFiles to be decompiled Output Folder)
Note: files to be decompiled must be placed inCIn the root directory of the disk,
3.OpenC :\***Folder We can get all kinds of resources from our school.
3..Repackage decompiled filesAPK
It's easy to enter:
Apktood B C :***Folder (the folder you compiled)