Proguard is android
Code Obfuscation tool,
Program It is very useful for staff to protect their own labor results, which are already included in Android SDK 2.3. The error "conversion to Dalvik format failed with error 1" is reported when proguard is configured to use export Android Application. Someone on the Internet introduced the two methods of downgrading
trace information.
(3). Seeds.txt
Lists the classes and members that are not confused.
(4). Usage.txt
Lists the code stripped from the. apk.
Note: These files are overwritten by the latest files each time they are built in release mode. So every time you publish a program, save a copy of these files in order to counter-confuse bug reports generated from the build. These resulting
In SDK 2.3, we can see that a proguard folder is added under android_sdk _ path/tools/. Google places proguard Technology in the android SDK, it can be implemented through normal CompilationCodeConfused.
After Version 2.3, no matter which SDK version is used for development, two files, default. properties and proguard. cfg, will be created in a new project. Htt
Recently, a Android project uses the JNI mechanism. After packaging and using proguard to confuse release, we found thatProgramException.CodeYou cannot debug or see any abnormal logs. If you find proguard obfuscation on the internet, JNI-related classes may also be confused, especially the callback method in JNI. To verify the problem, after decompiling by dex2ja
Proguard Confusion Introduction
28.1ProGuard Introduction
Java source code (. java files) is typically compiled into bytecode (. class files). Typically, the compiled bytecode still contains a lot of debugging information: source file name, line number, field name, method name, parameter name, and variable name, which makes the app easy to decompile and reverse engineer to get complete program code.
Proguard
Java code is easily decompiled. The following uses proguard to protect our code:
Proguard has many options and is easy to confuse. Now I will write down my configuration (in actual use) for your reference.
1. Download proguard to http://proguard.sourceforge.net
(If you cannot download the proguardprogram, go to http://download.csdn.net/detail/odian1/4103373to do
after the development of the app project, when the tester tested, no bugs, in general, the company will have a number of technical personnel responsible for the release, promotion of app products. This is the general formal large companies will have a dedicated marketing department, Technical Maintenance Department, the app encryption obfuscation packaging, such as: the use of ant encryption, and the use of third-party encryption methods (love encrypt
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 Project.Properties and Proguard-project.txt.If you need to make a global mix of items, you only need to do one step:The project.properties in theThe "#" of "# Proguard.config=${sdk.dir}/tools/
Received a new task to confuse existing projects with code. There has been some understanding of confusion before, but it's not detailed and complete, and it's tricky to know something is confusing. But fortunately the current project is not too complex (for the confusion of this piece), completed in advance ~ ~ Now summed up.
First part
Introduction to the operating process (Eclipse):
1. Open obfuscation: Locate the Project.Properties file under t
open source for someone else's code.
To improve the user experience, the advent of Web 2.0 technology, and with AJAX and rich interface technology, JavaScript in the importance of Web applications more and more high, JavaScript code complexity, functionality and technical content is increasing, the JavaScript The need for code protection is also becoming increasingly urgent.
The purpose of the JavaScript online obfuscation is to provide a new compreh
1. Under the input/output option, add input to import the jar package to be confused2. Click Add output to set the name and path of the jar package after obfuscation. For example:3. Click Add on the right side of the editing area below to add a class library to support the jar to be obfuscated.4. If you do not need to confuse a class clickClick Add to add classes that do not need to be confused, such as com. Plug. playerui. myserver.Add field and add
To prevent your work results from being stolen by others, obfuscation code can effectively prevent decompilation. The following describes the steps for obfuscation of code:
1. You may also see a new project with a proguard-project.txt file under the project. This is very important for obfuscation code. If you accidenta
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. Therefore, when your application is sensitive to security (high requirements), such as when you authorize the applic
someone else's code. To improve the user experience, the advent of Web 2.0 technology, and with AJAX and rich interface technology, JavaScript in the importance of Web applications more and more high, JavaScript code complexity, functionality and technical content is increasing, the JavaScript The need for code protection is also becoming increasingly urgent. The purpose of the JavaScript online obfuscation is to provide a new comprehensive solution
Android code obfuscation prevention decompilation Solution Research, android Decompilation
All Android Developers Know How To obfuscation to prevent apk decompilation and cracking, and use proguard to obfuscation Java code. However, can obfuscation of Android Code actually p
confused-keeppublicclass com.android.vending.licensing.ilicensingservice # maintain which classes are not confused-keepclasseswithmembernamesclass*{ # Keep native method not to be confused native Method of code obfuscation Depending on the version of the SDK, there are 2 different ways of confusing code, the information involved in the PROGUARD.CFG parameter details above is a confusing script under the lower version of the SDK , in fact, in the h
Original text: String obfuscation technology application design a string obfuscation program can be confusing. NET assembly strings in theThere are currently two articles on the study of strings. Principle: string obfuscation techniques in. NET program protection and how to decrypt the obfuscated string Practice: String anti-aliasing actual combat Dotfuscator 4.9
You want to confuse code when you package a category in an existing web project. Because Maven is used for management, Google found that similar plug-ins already exist. You only need to go back to the plug-in and add the corresponding configuration file. This article only makes relevant records
1. Modify Pom. XML to add a plug-in
2. Add the proguard. conf file in the Pom. xml level directory.
# Dependencies # execution can be performed through a sp
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 reverse project. Therefore, when your application is sensitive to security (demanding), such as when you authorize an
When using Proguard for code obfuscation, in order to make it easier to release debug later, you want to keep line number information in the stack record, you can add the following two lines to the Proguard file:
-renamesourcefileattribute sourcefile
-keepattributes sourcefile,linenumbertable
The "a" ensures that source file names are hidden ('ll is
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.