开发者

Android Proguard, removing all Log statements and merging packages

开发者 https://www.devze.com 2023-01-30 05:11 出处:网络
I have about 5 packages in my project, is it possible to merge all the packages into one large package, I want to do this to make hacking more difficult.
  1. I have about 5 packages in my project, is it possible to merge all the packages into one large package, I want to do this to make hacking more difficult.

  2. How do I remove all references to Log.e Log.d etc. in my sou开发者_如何学Crce code using proguard. (I have the eclipse ADT with proguard integrated already).

Update: Looks like part 2 can be done like this

-assumenosideeffects class android.util.Log {
    public static *** d(...);
    public static *** v(...);
}


The option -repackageclasses moves obfuscated classes into a single given package:

http://proguard.sourceforge.net/manual/usage.html#repackageclasses

You can optionally combine it with -allowaccessmodification for better results.

0

精彩评论

暂无评论...
验证码 换一张
取 消