首页 > 其他 > 详细

混淆例子

时间:2014-07-19 16:39:35      阅读:396      评论:0      收藏:0      [点我收藏+]

在项目路径下新疆一个 proguard-project.txt文件 ,最后记得要用eclipse工具导出正式包才会用到混淆,调试模式没用

 

-optimizationpasses 5
-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
-keep class com.alipay.** {*;}
-keep class com.umeng.** {*;}
-keep class org.eyu.cslib{*;}

-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 *;
}

混淆例子,布布扣,bubuko.com

混淆例子

原文:http://www.cnblogs.com/tianjian/p/3853916.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!