Briefly summarize a few key steps:
First, tool preparation: Apktool, Dex2jar, Jd-gui
Second, use Dex2jar + Jd-gui to get apk Java source code
1. Remove the Classes.dex file from the APK package using the Unzip tool
Get a jar file with the command (Dex2jar.bat classes.dex)
2. Use the Jd-gui Anti-compilation tool to decompile the. jar file into a. java file
Third, using Apktool to get the apk XML file
1. decompile the xxx.apk package with the command (Apktool D xxx.apk xxx_xml)
2. Get the XML file from the Xxx_xml folder
Four, the second step to get the program source code and the third step to get the XML file combination, you can get the full apk source.
Five, Chinese/GO advertising, add Values-zh-rcn, VALUES-ZH-RTW, Values-de, VALUES-FR
1. Create a folder in the folder in step three: VALUES-ZH-RCN,VALUES-ZH-RTW
2.1 Copy Values\strings.xml to VALUES-ZH-RCN and translate.
2.2 Go to the advertisement see: Http://www.cnblogs.com/wangjianh .../07/05/2098563.html
3. Rebuild apk, with command (Apktool b xxx), Output to abc/dist/out.apk
or command (Apktool b xxx out.apk)
Vi. Signature
1. Copy the unsigned apk to the Sign.bat directory.
2. Open cmd and go to the Sign.bat directory and enter the command:
Sign out.apk out_signed.apk
OUT.APK is an unsigned apk, out_signed.apk is signed
Sign.bat to change the following:
@echo OFF
Java-jar Signapk.jar Testkey.x509.pem testkey.pk8%1%2
---------------------------------below are the sorting/picking---------------------------------
Download Apktools tool on official website
http://code.google.com/p/android-apktool/
APKTOOL1.4.3.TAR.BZ2 and APKTOOL-INSTALL-WINDOWS-R04-BRUT1.TAR.BZ2
Extract respectively get Apktool.jar and Apktool.bat, Aapt.exe.
Copy these 3 files to the system folder, usually C:\Windows
Jd-jui:http://java.decompiler.free.fr/?q=jdgui
Dex2jar:http://code.google.com/p/dex2jar/downloads/list
=================================================
Part of the content is excerpted from: http://www.cnblogs.com/afirefly/archive/2011/10/12/2208461.html
First, tool preparation: Apktool, Dex2jar, Jd-gui
The toolkit can also be downloaded here. http://www.kuaipan.cn/index.php?ac=file&oid=3166172581218989
1, Dex2jar download, Jd-gui download.
2, Apktool, you can go to Google's official download, apktool-1.0.0.tar.bz2 (there are apktool.jar) and apktool-install-windows-2.1_r01-1.zip two bags are to be under. Unzip apktool.tar.bz2, put Apktool.jar under C:\Windows, unzip apktool-install-windows.zip to any folder (such as e-packing directory or C:\Windows).
Second, use Dex2jar + Jd-gui to get apk Java source code
The steps are as follows:
1. Use. rar to open the APK document, extract the Classes.dex file, and then use the tool to decompile the. jar file.
Under CMD, enter the path of the Dex2jar.bat, and then enter the command:
Dex2jar.bat XXX
, XXX refers to the path and name of the Classes.dex file in the apk you want to decompile, such as: My dex2jar.bat under D:\Android \apk_decode\dex2jar-0.0.7-snapshot path, Classes.dex under D:\Android, so: After you enter the Dex2jar.bat path, enter Dex2jar.bat D:\Android\classes.dex, which generates a jar file (typically: Classes.dex.dex2jar.jar).
2. Use the Jd-gui Anti-compilation tool to decompile the. jar file into a. java file
Third, using Apktool to get the apk XML file
1, win+r run cmd, use the CD command to go to the Apktool-install-windows folder, enter the command:
Apktool D xxx.apk ABC
Decompile xxx.apk to Folder ABC
2, in the extracted folder can get the apk XML configuration file
Four, the second step to get the program source code and the third step to get the XML file combination, into an Android project, you can get the full apk source.
=================================================
Part of the content is excerpted from: http://zhangyan1158.blog.51cto.com/2487362/683234
Use of Apktool
1.decode
This command is used to decompile the APK file, and the general usage is
Apktool D <file.apk> <dir>
<file.apk> represents the path to the apk file to decompile, preferably an absolute path, such as C:\MusicPlayer.apk
<dir> represents the storage location of the post-compilation file, such as C:\MusicPlayer
If your given <dir> already exists, then you will be prompted after you have entered the command, and cannot be executed, you need to re-modify the command to join the-F directive
Apktool d–f <file.apk> <dir>
This will forcibly overwrite the existing file
2.build
The command is used to compile the modified file, and the general usage is
Apktool b <dir>
Here <dir> is just when you anti-compile input <dir> (such as C:\MusicPlayer), after entering this line of command, if everything is OK, you will find that the C:\MusicPlayer inside more than 2 folder build and Dist, It stores the files compiled individually and the APK files that are eventually packaged.
3.install-framework
This command is used to install specific framework-res.apk files for Apktool to facilitate the decompile of some apk files that are dependent on the ROM. Please see the FAQ for details
==========================
Jadclipse Decompiler.zip
Jad158e.linux.intel.zip
Jad158g.win.zip (Jad.exe)
Jadclipse.txt
Jadclipse_3.1.0.jar
Jadclipse_3.2.0.jar
Net.sf.jadclipse_3.2.4.jar
Net.sf.jadclipse_3.3.0.jar