How to prevent Jd-gui, jd-eclipse view their own code?

Source: Internet
Author: User
In their own Android learning process found a kind of Jd-gui anti-compilation tool. There is that developer Daniel has to prevent Jd-gui view own code Method!

Reply content:

In their own Android learning process found a kind of Jd-gui anti-compilation tool. There is that developer Daniel has to prevent Jd-gui view own code Method!

Java code obfuscation

Use Proguard to confuse the code to achieve your purpose.

AndroidStuidoThe configuration files that are created automatically when the project is built Proguard , you just need to customize it.

Http://developer.android.com/guide/developing/tools/proguard.html

When using Jd-gui to view class files, it is often found that there are methods or classes that do not display properly.

Please enter a picture description

We can use this bug to prevent Jd-gui from recompiling our class file.
http://blog.segmentfault.com/aijiami/1190000000635798
App Security detection Platform (http://safe.ijiami.cn).

  • 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.