Just touch Android, not very familiar. After discovering that items that can be packaged properly before adding confusion and then packaging the signature apk, you are prompted with "Android Proguard failed to export application".Comment out the proguard.config=proguard.cfg in the program (in the Project.Properties file), and then package the discovery without co
Android code obfuscation 1 proguard. cfg. This is the proguard script required for obfuscation. The Code is as follows: [java] view plain-optimizationpasses 5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-dontpreverify-verbose-optimizations! Code/simplification/arithmetic ,! Field /*,! Class/merging/*-keep public class * extends
JNI is used in the android project. When proguard is used, it is found that many variables cannot be found in the native method. It was originally optimized by produard. Therefore, use progurad with caution in JNI applications.
Solution:1. Add a line to Android. mk:Local_proguard_flags: =-include $ (local_path)/proguard
all based on the Eclipse development environment, Android2.3 later versions. Before Android 2.3, it was very inconvenient to confuse Android code by manually adding Proguard for code obfuscation. After 2.3, Google has added this tool to the SDK's toolset. The specific path to the tool: Sdk\tools\proguard. When you cre
JNI is used in the android project. When proguard is used, it is found that many variables cannot be found in the native method. It was originally optimized by produard. Therefore, use progurad with caution in JNI applications.
Solution:1. Add a line to Android. mk:Local_proguard_flags: =-include $ (local_path)/proguard
classes, fields, and methods.
Role of ProGuard:1. Create compact code, fast loading, and smaller memory usage.
2. Increase the difficulty of decompiling libraries used by programs and programs.
3. Delete the code from the source file that is not called.
After learning about the role of ProGuard, let's look back at lostClass. java. This class is mainly called in Settings_heads.xml, but it is not called in o
Due to work needs, these two days and colleagues in the study of the use of Proguard tools under Android, by looking at the Android website on the introduction of the tool and other relevant information on the network, coupled with their own hands-on practice, is a basic understanding. The following will be their own understanding and understanding of a brief not
In the Android project to use the JNI, when the use of Proguard, found that the native method can not find many variables, the original was Produard optimized out. Therefore, it is prudent to use Progurad in JNI applications.Workaround:1. Add a line to the ANDROID.MK:Local_proguard_flags: =-include $ (local_path)/proguard.flags2. Create a Proguard.flag file that writes classes and methods that do not requir
/details/7100841Several exceptions that often occur after adding a third-party jar package:Proguard returned with error code 1.See consoleScenario 1:Proguard returned with error code 1. See consoleError:c:/documents (the system cannot find the specified file)Later found because the entire project was put on the desktop, and the desktop directory is c:/documents and settings/administrator/desktop, in which there are spaces, and
correct or not.Suppose 3:
An exception occurs when the compilation system performs proguard on the code in USR mode.Verification 3:
First, let's take a look at the proguard tool;Proguard introduction:
Proguard is a free Java class File compression, optimization, obfuscator. It detects and deletes unused classes, fiel
/vrix/article/details/7100841Several exceptions that often occur after adding a third-party jar package:Proguard returned with error code 1.See consoleScenario 1:Proguard returned with error code 1. See consoleError:c:/documents (the system cannot find the specified file)Later found because the entire project was put on the desktop, and the desktop directory is c:/documents and settings/administrator/desktop, in which there are spaces, and
Due to work needs, these two days and colleagues in the study of the use of Proguard tools under Android, by looking at the Android website on the introduction of the tool and other relevant information on the network, coupled with their own hands-on practice, is a basic understanding. The following will be their own understanding and understanding of a brief not
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 added under Android-SDK-Wind
Obviously, to use proguard to confuse code, you just need to restore this annotation. # proguard. config =$ {SDK. dir}/tools/proguard/proguard-android.txt: proguard-project.txt.
But it cannot just restore the comments. After I try it, I only need to put this sentence
Android Proguard: androidproguard
Generally, code encryption is required for commercial projects. Android provides a code obfuscation method, which is described as follows:
I. Introduction
1. Introduction
Obfuscators compress, optimize, and confuse code by deleting unused code and renaming classes, fields, and methods with obscure names. The result is a relativel
Recent use of the project for the obfuscation of Android, the project added a number of third-party jar packages, directly using the project.properties in the proguard.config=${sdk.dir}/tools/proguard/ Proguard-android.txt:proguard-project.txt is obfuscated, the APK is packaged with the Proguard returned with error cod
Overview of the Proguard Code obfuscation tool: code can be de-redundant compression, code optimization, code obfuscation and so on. The main application in Android is to confuse the code: the class name, method name, field name into difficult to read and understand names such as a,b,c or three-way, in order to prevent reverse engineering and be anti-compiled reading source.Enable eclipse with
ProGuard IntroductionProGuard is a well-known open-source project on SourceForge. Official Website: http://proguard.sourceforge.net /.
Java bytecode is generally very easy to decompile. To protect the Java source code, we often confuse compiled class files. ProGuard is mainly used for obfuscation. Of course, it can also reduce the size and optimize the bytecode, but those are secondary features for us.
The
Android Developers: ProGuard, androidproguard
By deleting unused code, the ProGuard tool uses a semantic fuzzy name to rename classes, fields, and methods to reduce, optimize, and confuse your code. The result is a smaller. APK file that is more difficult to reverse to the project. Because ProGuard makes your applicati
Use proguard to confuse Android source code
1. APK file obfuscation method
See:
Android: Develop/tools/proguard
Android 2.3 code obfuscation proguard Technology Introduction
2. obfuscation of jar packages
During the project, we wi
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.