Android obfuscation code and android Obfuscation

Source: Internet
Author: User

Android obfuscation code and android Obfuscation

Android code obfuscation is required. If java-Layer Code is not obfuscated, the source code is sent to another user. So how to confuse it?

Hosts file. How should we use it?

There is a project. properties under the project root directory, which contains the following content:

# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk. dir, user. home ):
# Proguard. config =$ {sdk. dir}/tools/proguard/proguard-android.txt: proguard-project.txt

Clear the meaning. just remove the comment.

As a result, the problem persists after I cancel it. The decompiled code is not obfuscated, and it still fails after n attempts.

Finally, because we have no experience, we only need to click to run it to generate the apk. However, this apk is in the debug version and will not be changed based on these configurations.

Therefore, you need to manually export an apk file. The specific method is as follows:

Right-click the project and choose Android Tools> Export Unsigned Application package.... If there is a signature, select Export Signed Application Package...

Finished.

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.