Introduction to ProGuard

Source: Internet
Author: User

Go to the official website and decompress the package. The lib package contains three jar package files, one of which is a graphical interface program.

Running Method: in the same directory, create a batch file (bat file) with the following content: java-jar proguardgui. jar, save the file, double-click to run the file, and the graphic interface will appear.

In the graphic interface, you can complete obfuscation tasks with simple settings.

1. on the "Input/Output" tab, set the jar package to be obfuscated, set the name of the obfuscation result package, and specify the jar package required for compiling the package. Note, the jar package does not agree to include the interface jar package and the implementation jar package of the interface. Proguard will have a duplicate definition error.

2. on the "Shriking" tab, select a Keep type. For a WEB project, select Library and Application.

3. Select the default option in the "Obfuscation" and "Optimization" tabs. If you have special requirements, you can take a closer look at the document. If the program function is not normal for mixed results, you can disable the Optimize option. We are most concerned about obfuscation, and optimization doesn't matter.

4. The "Information" tab contains an Ignore warnings about possibly erw.us input. If the message cannot be sent due to a warning, you can check this option. You can select other options by default.

5. On the "Process" tab, click "Process! "Button for obfuscation. You can also click "Save configuration..." to Save the configuration file.

The obfuscation results are good. You can use the decompilation tools such as jd to check the results.

Recommended reading:

How to confuse Android project code (ProGuard) to prevent Decompilation

Notes for using ProGuard

ProGuard details: click here
ProGuard: click here

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.