Obfuscation (Proguard)---The obfuscation compresses, optimizes, and confuses code by removing code that has never been used and renaming classes, fields, and methods with obscure names. The result is a smaller. apk file, which is more difficult to
Originally compiled a copy of the Android project to confuse and publish the document, suddenly think of why not write a blog, share it, if it has this article.Android code obfuscation and project release steps recordFirst, clean up the debugging
2-step code obfuscation and 2-step code obfuscation
[Step 1 ]:
Modify build. gradle under moduleBuildTypes {Release {// Whether to confuseMinifyEnabled true// Location of the obfuscated File// Proguard is a free tool for compressing, optimizing, and
Android code obfuscation and project release steps recordOriginally compiled a copy of the Android project to confuse and publish the document, suddenly think of why not write a blog, share it, if it has this article.Android code obfuscation and
First in: Project.Properties file, start code obfuscationProguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt to cancel this line of comments.Modify the Proguard-project.txt code to confuse the file.1) Caution ignoring
Originally put together the Android project was confused with the published file. I suddenly thought, why not write blog, share. There are cases of this article.Android code obfuscation and project announcement step recordFirst, clean up the
Android code obfuscation and project release method recordZookeeper Android code obfuscation and project release procedure record
I have compiled a document for obfuscation and release of the Android project. I suddenly thought about writing a blog
Before that, I read the proguard official website and found the relevant information.
ProGuard IntroductionProGuard is a well-known open-source project on SourceForge. Official Website: http://proguard.sourceforge.net /.Java bytecode is generally
Due to the proliferation of various decompilation tools, Android programmers can only manually add proguard Before Version 2.3 to achieve code obfuscation.
Proguard is a Java code obfuscation tool.
In SDK 2.3, we can see that a proguard folder is
1. BackgroundChase mm example, boy chase mm, need to send gifts gift, have flower,ring inherit from gift;and warmgift warm gifts, wildgift wild gifts;Boy: Public classBoy {PrivateString name; PublicString GetName () {returnname; } Public
Obfuscation Device (Proguard)
Obfuscation compresses, optimizes, and confuses code by removing unused code and renaming classes, fields, and methods with obscure names. The result is a smaller. apk file, which is more difficult to reverse project.
We should have seen the IOC's knowledge.In the IOC FoundationView events are implemented through annotations.Question 1If a property is declared only once, the other code does not refer to it because of the confusion of the property optimization,
In order to prevent the results of their own work stolen by others, confusing code can effectively prevent the anti-compilation1. It may be noted that a new project will see the project under the Proguard-project.txt a file, which is very important
Although the app is not so tall, but the confusion of the code represents the programmer's sense of responsibility for the app, but also a little guarantee of the security of the app. Today I will do the process of Android confusion and share to
In order to prevent the results of their own work stolen by others, confusing code can effectively prevent the anti-compilation, the following to summarize the following steps to confuse the code:1. It may be noted that a new project will see the
Environment Gradle 2.2 (if the version is different. The following script needs to adjust the Com.android.tools.build:gradle version number)
Build.gradle (note the place marked red)
Buildscript {repositories {mavencentral ()} dependencies
Use thinkphp (3.2.3) to manipulate the database, first to connect to the database. We need to write a configuration file for a database, and thinkphp will automatically connect to the database based on the configuration file. The model file is not
Reference Document: http://blog.csdn.net/xueyepiaoling/article/details/8202359 reprinted from: http://glblong.blog.51cto.com/3058613/1263969When creating a project in a new version of ADT, the mixed files are no longer proguard.cfg, but
-injars Androidtest.jar "jar Package Address"-outjars out "Output address"The jar of the library referenced by-libraryjars ' D:\android-sdk-windows\platforms\android-9\android.jar ', used to parse the jar class specified by Injars
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.