gdpancheng/LoonAndroid

混淆后功能消失?

jinqisong opened this issue · 6 comments

如果我采取了混淆,为了防止别人反编译出代码,有的页面干脆为白色,有些点击功能消失,请问?如果使用了它的话,怎么防止别人反编译代码?怎么进行混淆?

怎么混淆呀

额,就是配置混淆啊,再有,就是使用文件上传后,所有的请求都失败了,都请求不了了

可以混淆 但是有些地方必须避开 比如 注解 比如 R文件 等等
2014年10月20日 下午12:03于 "jinqisong" notifications@github.com写道:

如果我采取了混淆,为了防止别人反编译出代码,有的页面干脆为白色,有些点击功能消失,请问?如果使用了它的话,怎么防止别人反编译代码?怎么进行混淆?


Reply to this email directly or view it on GitHub
#4.

公司如果谁用了框架 需要混淆的 我贴出来: 第一步 你要先引入你得架包 -libraryjars
libs/android-support-v4.jar -libraryjars libs/android_slidingjar.jar
-libraryjars libs/loonandroid.jar 第二步 你要保证注解在代码优化的时候不能被删除掉 -keepattributes
Signature -keepattributes Annotation 第三步 support4 要排除掉 -dontwarn
android.support.v4.* -keep class android.support.v4.* { ; } -keep
interface android.support.v4.app.
* { ; } -keep public class * extends
android.support.v4.
* -keep public class * extends android.app.Fragment 第四步
只要使用了注解的包名 全部排除掉 -dontwarn xxx.* -keep class xxx.* { ; }
其中XXX替换成你使用了注解的包名 第五步 保证R不被混淆 -keep class *
.R$* { ; }
第六步
-dontwarn com.android.pc.ioc.
*
-keep class com.android.pc.ioc.* { ; }
-keep interface com.android.pc.ioc.
* { ; }
-keep public class * extends com.android.pc.ioc.

即OK
2014年10月20日 下午12:03于 "jinqisong" notifications@github.com写道:

如果我采取了混淆,为了防止别人反编译出代码,有的页面干脆为白色,有些点击功能消失,请问?如果使用了它的话,怎么防止别人反编译代码?怎么进行混淆?


Reply to this email directly or view it on GitHub
#4.

你替换这个文件看看 最好先备份下 如果还不行 你看看能不能把上传失败的log日志发给我看看

------------------ 原始邮件 ------------------
发件人: "jinqisong";notifications@github.com;
发送时间: 2014年10月20日(星期一) 中午12:03
收件人: "gdpancheng/LoonAndroid"LoonAndroid@noreply.github.com;

主题: Re: [LoonAndroid] 混淆后功能消失? (#4)

Reopened #4.


Reply to this email directly or view it on GitHub.

刚刚那个文件不对 还是老版的 换这个

------------------ 原始邮件 ------------------
发件人: "jinqisong";notifications@github.com;
发送时间: 2014年10月20日(星期一) 中午12:03
收件人: "gdpancheng/LoonAndroid"LoonAndroid@noreply.github.com;

主题: Re: [LoonAndroid] 混淆后功能消失? (#4)

Reopened #4.


Reply to this email directly or view it on GitHub.