-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
Packaging 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.
-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
-keepclasseswithmembernames class * {
Native <methods>;
}
-keepclasseswithmembernames class * {
Public <init> (Android.content.Context, Android.util.AttributeSet);
}
-keepclasseswithmembernames class * {
Public <init> (Android.content.Context, Android.util.AttributeSet, int.);
}
-keepclassmembers enum * {
public static **[] values ();
public static * * VALUEOF (java.lang.String);
}
-keep class * Implements Android.os.Parcelable {
public static final Android.os.parcelable$creator *;
}
Simple code obfuscation