Android APK decompilation and androidapk Decompilation

Source: Internet
Author: User

Android APK decompilation and androidapk Decompilation

1. decompile Apk to get the Java source code

Reprinted from: http://hi.baidu.com/%CB%BF%D4%B5%CC%EC%CF%C2/blog/item/2284e2debafc541e495403ec.html

 

Download Tool: Requires the dex2jar and JD-GUI tools

Dex2jar: http://code.google.com/p/dex2jar/downloads/list
JD-GUI:
Windows edition JD-GUI: http://java.decompiler.free.fr /? Q = jdgui
Linux JD-GUI: http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gz

Steps:

1. First find classes. dex in the Android installation package
Change the. APK file name to .zip and decompress it to obtain the classes. dex file, which is compiled by a java file and then packaged by the dx tool. Now we use the two tools mentioned above to export the java source file in reverse direction.

2. Copy classes. dex to the directory where dex2jar. bat is located.
In command line mode, locate the directory where dex2jar. bat is located and run dex2jar. bat classes. dex to generate classes. dex. dex2jar. jar.

3. Run the JD-GUI tool (it is green without installation)
Open the jar File above and you will see the source code

---------------------------------------------------------------------------------

---------------------------------------------------------------------------------

2. decompile the source code and images, XML configuration, language resources, and other files of the apk Generation Program.

Reprinted from: http://blog.sina.com.cn/s/blog_5752764e0100kv34.html

Download tool:

Download the following packages at http://code.google.com/p/android-apktool/: apktool-1.0.0.tar.bz2and apktool-install-windows-2.20.r01-1.zip.

Steps:

1. decompress the two downloaded files. aapt.exe and apktool.bat.(copy A. jar file after extracting apktool-install-windows-2.20.r01-1.zipthe package)

2. Open the command window (Start> Run, Enter cmd, and press Enter .) Go to the apktool. bat folder.

Input:

Apktool d C: \ ***. apk C: \ *** folder

(Command line explanation: the output folder of the file to be decompiled by apktool d)

Note: files to be decompiled must be placed in the root directory of drive C,

3. Open the C: \ *** folder to get various resources of our school.

 

3. Repackage decompiled files into apk

It's easy to enter:

Apktood B c: *** folder (you compiled the folder)

Related Article

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.