android proguard

1)继承了android.app.Activity等 的类不混淆

-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 * extends android.app.backup.BackupAgentHelper

-keep public class * extends android.preference.Preference

2)指定某个具体的类不混淆

-keep public class com.firer.RiskStu

3)让一个类下的指定某些方法不混淆(要把返回值和参数的类型写全,如String改为java.lang.String

-keepclassmembers class com.firer.RiskStu {
    public static java.lang.String GetFilePath(android.content.Context);
    public static boolean Load(android.content.Context,java.lang.String);
    public static java.lang.String Send(java.lang.String);
    public static void Log(int,java.lang.String);
}

 

 

参考:

1.http://blog.csdn.net/p106786860/article/details/11974863

2.http://blog.csdn.net/p106786860/article/details/12168703

3.http://www.cnblogs.com/vivid-stanley/archive/2012/02/18/2357182.html

 

posted @ 2015-08-17 22:23  firerdong  阅读(89)  评论(0编辑  收藏  举报