conflict between code obfuscation and reflectionanti -compiling Android code, most people know that the anti-compiler method is also largely known (although it may not always be valid, but at least like my level of people, no way to see the confused Java code, the most hateful is no comment = =).Only recently discovere
**[] values (), public static * * VALUEOF (java.lang.String), #}-keepclassmembers class * {public void * ButtonClicked (Android.view.View);} #不混淆资源类-keepclassmembers class * *. r$* {public static Fields>;} #避免混淆泛型 If the confusion of the error is recommended to switch off #–keepattributes signature# Remove the log test is not used or recommend that you define a switch to control whether the output log-assumenosideeffects class Android.util.Log {public static Boolean isloggable (java.lang.Str
Code obfuscation encryption-although it is an encryption method of the artifact, it is quite time-consuming to solve it manually, especially when there are a lot of encryption programs.I am very happy today. I wrote a php decryption program. The decryption effect is perfect. Batch decryption is also a pleasure!
Note: The program will generate and delete tmp. php in the same directory.
/** By 267014855* 201
message -libraryjars. /klowerbase/libs/mail-activation.jar -libraryjars. /klowerbase/libs/mail-additionnal.jar -libraryjars. /klowerbase/libs/mail.jar2. Resolve the mail to send the Times with an exception -keep class javax.mail.**{*;} -keep class com.sun.mail.**{*;} -keep class javax.activation.**{*;} -keep class org.apache.harmony.**{*;} -keep class java.security.**{*;}#解决: Can ' t find referenced class Java.beans.beans-dontwarn Org.apache.commons.collections.beanmap-dontwarn Jav
documents ....First download a apktool .... The latest version is here to findThen put the Apktool.jar with the APK to be anti-compilation in a directory .... Execute Apktool22.jar d fuckcode.apkWhere Apktool22.jar is my custom name, you see the next jar file what to write ....Then we will get a Fuckcode folder .... Open the inside ... Find pictures Ah, configuration files ah ... Everything has .... An apk that does not confuse encryption is stripped of the light ...And then the third step ...
-dontpreverify-verbose-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*-keep public class * extends android.app.Activity-keep public class * extends android.app.Application-keep public class * extends android.app.Service-keep public class * extends android.content.BroadcastReceiver-keep public class * extends android.content.ContentProvider-keep public class com.android.vending.licensing.ILicensingService-keepclasseswithmemberna
New Features of Oracle 10 GB-code obfuscation
Author: Fuyuncat
Source: Www.hellodba.com
Before Oracle 9i, a command 'warp' was provided to encrypt the code. However, it is based on scripts in the command line mode. In 10 Gb, the Oracle package dbms_ddl provides a new function create_wrapped to confuse the
Android code obfuscation1. proguard. cfg. This is the proguard script required for obfuscation.The Code is as follows:View plain-Optimizationpasses 5-Dontusemixedcaseclassnames-Dontskipnonpubliclibraryclasses-Dontpreverify-Verbose-Optimizations! Code/simplification/arithmetic ,! Field /*,! Class/merging /*-Keep public class * extends android. app. Activity-Keep p
of messages sent
-libraryjars. /klowerbase/libs/mail-activation.jar
-libraryjars. /klowerbase/libs/mail-additionnal.jar
-libraryjars. /klowerbase/libs/mail.jar
2. Resolve the mail to send the Times with an exception
-keep class javax.mail.**{*;}
-keep class com.sun.mail.**{*;}
-keep class javax.activation.**{*;}
-keep class org.apache.harmony.**{*;}
-keep class java.security.**{*;}
#解决: Can ' t find referenced class Java.beans.Beans
Android Obfuscation Code details and examples
To prevent the results of their work from being stolen, confusing code can effectively prevent being decompile, the following is a summary of the following confusing code steps:
1. You may have noticed that a new project would see a file like this on the bottom of the pro
Rules for code obfuscation1. If you use a tool such as Gson to make the JavaBean class the entity class not to be confused. 2. If you are using custom controls then make sure they are not involved in the confusion. 3. If an enumeration is used, the enumeration is guaranteed not to be confused.-keepclassmembers enum * {--enum class cannot be confusedpublic static **[] values ();public static * * VALUEOF (java.lang.String);}4. Do not confuse classes in
-optimizationpasses 5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclassesPackaging apk will face a problem is anti-compilation, look at the Proguard.cfg file, here is Google by default not confuse Activity, Service ... The subclass of the class, as seen in the above, is reserved for all activity's subclass names. This is just a simple encryption, how exactly confused is still in the study ....If you want to customize the details of the confusion, think about the configuration file.-dontpr
Android Application (apk) code obfuscation notes
Project. properties
# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must be checked in Version Control Systems.## To customize properties used by the Ant build system edit# "ant.properties", and override values to adapt the script to your# project structure.## To enable ProGuard to
com.google.gson.examples.android.model.** {*;} -keep class com.uuhelper.application.** {*;} -keep class net.sourceforge.zbar.** {*;} -keep class com.google.android.gms.** {*;}-keep class com.bank.pingan.model.** {*;} -keep public class * extends Com.j256.ormlite.android.apptools.ormlitesqliteopenhelper-keep public class * extends Com.j256.ormlite.android.apptools.openhelpermanager-keep class Com.android.vending.licensing.ilicensingservice-keep class android.support.v4.** {*;} -keep class org.
confused-keep public class * extends Android.content.ContentProvider # Keep What classes are notConfuse-keep public class * extends Android.app.backup.BackupAgentHelper # Keep What classes are not confused-keep public class * extends Android.preference.Preference # Keep What classes are not confused-keep public class Com.android.vending.licensing.ILicensingS Ervice # Keep What classes are not confused-libraryjars Libs/gson-2.0.jar # Keep A third-party jar Not to be confused-keepclasseswithmembe
confused-keep public class * extends Android.content.ContentProvider # Keep What classes are notConfuse-keep public class * extends Android.app.backup.BackupAgentHelper # Keep What classes are not confused-keep public class * extends Android.preference.Preference # Keep What classes are not confused-keep public class Com.android.vending.licensing.ILicensingS Ervice # Keep What classes are not confused-libraryjars Libs/gson-2.0.jar # Keep A third-party jar Not to be confused-keepclasseswithmembe
Or the one-card program, these days to do a little update.Because it involves the link to the database, including the IP address and account password, once the anti-compilation steal, then the source code leaks do not say, also to the server to bring a certain risk!Download the Ilspy program and decompile the. NET program that you developed, which results in less than a few seconds, all of the source code i
:#-keepclassmembersclassFqcn.of.javascript.Interface. for. WebView {# Public*#}############################################## The main program cannot confuse the code ################################################ ####-dontwarn xxx.model.**######-keepclassxxx.model.** {*; } ################################################ non-optimized generics and reflection ###############################################-keepattributes Signature-keepclass*extendsj
confused-keep public class * extends Android.content.ContentProvider # Keep What classes are notConfuse-keep public class * extends Android.app.backup.BackupAgentHelper # Keep What classes are not confused-keep public class * extends Android.preference.Preference # Keep What classes are not confused-keep public class Com.android.vending.licensing.ILicensingS Ervice # Keep What classes are not confused-libraryjars Libs/gson-2.0.jar # Keep A third-party jar Not to be confused-keepclasseswithmembe
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.