java Android ProGuard - 仅混淆
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6633411/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android ProGuard - only obfuscation
提问by Vinoth
Is it possible to use ProGuard for only obfuscation. I don't want ProGuard to remove any classes from my projects. My intention to use ProGuard is only for obfuscation so as to prevent reverse engineering.
是否可以仅将 ProGuard 用于混淆。我不希望 ProGuard 从我的项目中删除任何类。我使用 ProGuard 的目的只是为了混淆,以防止逆向工程。
回答by Eric Lafortune
Yes, by specifying
是的,通过指定
-dontshrink
-dontoptimize
You can find details on all configuration options in the ProGuard manual.
您可以在ProGuard 手册中找到有关所有配置选项的详细信息。
Note that shrinking and optimization may help preventing reverse engineering a bit.
请注意,缩小和优化可能有助于防止逆向工程。