Anti-compilation tools and steps

Source: Internet
Author: User

APK Anti-compilation tool:http://download.csdn.net/detail/pihaishen/8488935


Android anti-compile Java code


The first thing to download is two tools: Dex2jar and Jd-gui convert the Classes.dex in the apk into a jar file, and Jd-gui is an anti-compilation tool that can view the source code of the jar package directly.
First, the apk file, the suffix to zip, unzip, get the Classes.dex, it is the Java file compiled and then packaged with the DX tool;
Unzip the downloaded Dex2jar and copy the Classes.dex to the directory where Dex2jar.bat is located
Run Dex2jar.bat Classes.dex
Generate Classes.dex.dex2jar.jar
Run Jd-gui (jd-gui.exe), open the jar package generated above, you can see the source code

Android anti-compile layout file

Prepare the tool Aapt.exe Apktool.bat Apktool.jar and put it under the same level directory
Under command line, navigate to the Apktool.bat folder, and enter the following command: Apktool d xxx.apk c:\* folder
Command line explanation: Apktool d [apk file] [output folder]
Special Note: The files you want to decompile must be placed in the root directory of the C drive.


Re-packaging the anti-compiled files into an apk, very simple, enter Apktool B c:\*** folder (you compiled the folder) can
After packaging the apk file under directory C:\HelloAndroid, two folders were generated:
Build Dist

wherein, the package generated helloandroid.apk, in the above Dist folder, Ok


Anti-compilation tools and steps

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.