Android Anti-compilation

Source: Internet
Author: User

Apktool
Function: Resource file gets, can extract picture file and layout file for use view
Dex2jar
Role: Decompile the apk into Java source code (Classes.dex into a jar file)
Jd-gui
Role: View the apk in the Classes.dex converted into a jar file, namely the source file

1, Apktool use, decompile resource file
1), unzip the Apktool file.
2), enter into the Apktool folder, enter the command: Apktool.bat d-f test.apk Test
Note: test.apk is the source apk file, test is the build resource folder.
Format: Apktool.bat d-f apk source File destination folder.

2, Dex2jar use, anti-compile Dex file into Java source file
1), change the test.apk file suffix name to. rar or. zip, and unzip to get the amount of Classes.dex file
2), unzip the Dex2jar file
3), enter into the extracted folder, enter Dex2jar.bat Classes.dex.
A Classes_dex2jar.jar file is generated under the directory.

3, Jd-gui Use, view source files
1), unzip the Jd-gui file
2), open the tool Jd-gui folder in the Jd-gui.exe,
Then use the tool to open the previously generated Classes_dex2jar.jar file, you can see the source code.

Android Anti-compilation

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.