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.