Anti-compile APK files during Android development

Source: Internet
Author: User
Tags bz2 file copy rar
Sometimes we want to learn from others ' good works, or we want to study and learn. How to achieve it in the case of only apk. In fact, there is a way, that is, decompile apk.
If the content is also i from other friends there to find, does not belong to my original, but still sent up for your friends for reference, I hope you can learn to bring convenience.
A. decompile apk get Java source code
Tools Download: 2 tools needed to Dex2jar and Jd-gui
Dex2jar Download Address: http://laichao.googlecode.com/files/dex2jar-0.0.7-SNAPSHOT.zip
Http://www.eoe.cn/uploadfile/2012/0323/20120323053952269.zip
Jd-gui Download Address:
Windows version Jd-gui:http://laichao.googlecode.com/files/jdgui.zip
Http://www.eoe.cn/uploadfile/2012/0323/20120323053837178.zip
Linux version jd-gui:http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gz
Steps:
1. First find the Classes.dex in the Android software installation package
Rename the. apk file to. zip, and then unzip and get the Classes.dex file, which is the Java file compilation and then packaged with the DX tool, so now we use the 2 tools mentioned above to export Java source files in reverse direction.
2. Copy the Classes.dex to the directory where the Dex2jar.bat resides.
Navigate to Dex2jar.bat directory in command line mode, run Dex2jar.bat classes.dex, generate Classes.dex.dex2jar.jar
3. Run the Jd-gui tool (it is green without installation)
Open the jar file above to see the source code
Two. Decompile the source code and pictures, XML configuration, language resources and other files of the apk generator.
Tools Download:
Downloaded in http://code.google.com/p/android-apktool/, apktool-1.0.0.tar.bz2 and apktool-install-windows-2.1_ R01-1.zip two bags are to be down.
Http://www.eoe.cn/uploadfile/2012/0323/20120323054505983.rar
Http://www.eoe.cn/uploadfile/2012/0323/20120323054713775.rar
Steps:
1. Unzip the download of the two packages, Apktool-install-windows-2.1_r01-1.zip decompression after the package has Aapt.exe and Apktool.bat. (Note that a. jar file copy comes in after apktool-1.0.0.tar.bz2 is unzipped)
2. Open command Window (Start > Run, input cmd, enter.) into the Apktool.bat folder.
Input:
Apktool d c:\***.apk c:\*** folder
(Command line explanation: Apktool D to decompile the file output folder)
Special Note: The file you want to decompile must be placed in the root directory of C disk,
3. Open the c:\*** folder to get the resources of our college.
Three. Repackage the decompile files into apk
Very simple, just enter:
Apktood B c:*** folder (you compile the folder) sometimes we want to learn from other people's good works, or want to study. How to achieve it in the case of only apk. In fact, there is a way, that is, decompile apk.
If the content is also i from other friends there to find, does not belong to my original, but still sent up for your friends for reference, I hope you can learn to bring convenience.
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.