Decompile Apk to get Java source code

Source: Internet
Author: User

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

 

: R and tools required

: Http://laichao.googlecode.com/files/dex2jar-0.0.7-SNAPSHOT.zip

Windows JD-GUI: http://laichao.googlecode.com/files/jdgui.zip
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, decompress it, and obtain the file, which is compiled by the java file and 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

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

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

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

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

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)

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.