Encryption is required if your application is to be installed on googleplay. The android SDK has integrated proguard. Therefore, the entire process is much easier.
Add a line of proguard. Config = proguard. cfg to the project. properties file under
Reference: http://developer.51cto.com/art/200906/129816.htm
This article describes the first six of the 12 best methods for xml configuration files in spring, including the use of concise forms and naming conventions.
Id =
This is a Java project. Put the server code first.
The first is sei, that is, helloservice. Java, the server interface class.
Package COM. jadyer. service; import Java. util. list; import javax. JWS. webparam; import javax. JWS. webresult; import
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
-Keep class com. badlogic. gdx. backends. android. ** {*;} is like this, but it is not obfuscated: the class under this package (excluding the sub-Package) will use the class in the third article to store the package of this class, like the above
Configuration of Shiro 1.2.3 In Spring mvc, mvcshiro
Spring versions: 3.2.x, 4.0.x
[Problem description]
First, we will introduce the configuration error:
(1) In the project, the applicationContext. xml aop configuration of Spring3 and Spring4 is as
From the front we know that spring is actually a large factory, and the bean in the spring container is the product of that factory. For spring containers to produce those products, it depends on the configuration file.For us, what we do with the
Android code obfuscation prevents Decompilation
To prevent code decompilation, you need to add obfuscation. Obfuscation can also be performed by a third party or by using proguard in android.
Obfuscation steps:
1. The configuration obfuscation file
In programming languages, we are exposed to enum types, and we usually have poor enumerations to implement some limitations. Java is no exception. The enumeration type in Java is enum, and this article provides some more in-depth analysis of
1.
Org. hibernate. Id. identifiergenerationexception: IDs for this class must be manually assigned before calling save ():
Cause: the element is incorrectly configured, And the element lacks its child element.
. Solution: The element maps the
For example, Struts has the following actions, and manageruseraction has the corresponding method.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Action
Name
= "Adduser"
Class
=
First, check the file "project. properties:
"Ant. properties" file, rewrite some values to adapt to your project structure. (Translation is very watery. Do not take it seriously)
This file is a code obfuscation configuration file written by
Android Proguard syntax, androidproguard
-Include {filename}: Read the configuration parameters from the specified file.-Basedirectory {directoryname}: Specify the base directory as the file name.-Injars {class_path} specifies the application jar,
The day before yesterday, my boss asked me to add my previously written inference engine to the so-called knowledge management software left by my lab Senior brother and sister to facilitate this demonstration on Friday. How can this problem be
(In my recent project, I had a hard time reporting errors, so I went online and shared my mistakes with you)
1.Org. hibernate. Id. identifiergenerationexception: IDs for this class must be manually assigned before calling save ():Cause: the element
Injecting attributes into a map in the spring frameworkobject creation for 1MAP mapping Packagecom;/*** Map collection Usage test in spring*/ Public classUser {Private intID; PrivateString name; PrivateString pwd; Public intgetId () {returnID; }
Questions about resin:
1. First download resin.
2. Check the configuration file in resin. (/CONF/resin. conf)
Configure the following items:
1. Port problems. For existing Internet counterparts, or Tomcat port is not occupied, I use 90.
2. Disable
[ADB shell am instrument]Note: The-e option must be placed before the-W option.-W / ( and search for them in androidmanifest. xml of the test project)Purpose: Keep the ADB shell open until the test is complete.Example:-W com. Android. Phone.
Details about code obfuscation examples in android apps
Details about code obfuscation examples in android apps
Receives a new task to confuse the code of the existing project. I have had some knowledge about obfuscation before, but it is not
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.