Android decompilation and prevention of Decompilation

Source: Internet
Author: User

Decompilation:

1. Change the suffix of the apk file, for example, lianyunhelper3.0.11.apkto lianyunhelper3.0.11.zip.

2. decompress the lianyunhelper3.0.11.zip file with zipping
3. Extract the classes. dex file from the decompressed folder and put it in the directory where dex2jar. bat is located.
4. Run the cmd command to enter the directory where dex2jar. bat is located. Enter dex2jar. bat classes. dex to generate the classes. dex. dex2jar. jar file.
5. Use the jd-gui tool to open the classes. dex. dex2jar. jar file and you will see the source code.

6. Put the AndroidManifest. xml file in the directory of AXMLPrinter2.jar, run the cmd command, enter the directory of AXMLPrinter2.jar, and enter java-jar AXMLPrinter2.jar AndroidManifest. xml> AndroidManifest.txt.

Prevent decompilation:

After 2.3, add the following phrase "proguard. config = proguard. cfg" to the "default. properties" of the project"


Just copy the proguard. cfg file to the old project before 2.3.

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.