混淆文件夹结构-Android [英] Obfuscate the folder structure - Android
问题描述
我正在开发一个android应用程序.我使用progaurd混淆了项目的代码.我也想混淆文件夹结构.反正这样做吗?
I am developing a android application. I obfuscates the code of the project using progaurd. I want to obfuscate the folder structure as well. anyway to do that ?
感谢您的帮助
推荐答案
ProGuard包含各种指令(对于您的ProGuard规则文件),可以混淆包名称,例如 -repackageclasses
.只需确保从AndroidManifest.xml
引用或通过反射访问的所有内容保持完整.
ProGuard contains various directives, for your ProGuard rules file, that can obfuscate package names, such as -flattenpackagehierarchy
and -repackageclasses
. Just make sure that anything referenced from AndroidManifest.xml
or otherwise accessed via reflection is kept intact.
可以想象,商业化的,经过Android调整的 DexGuard 工具甚至可以让您将其中的内容重新打包清单(通过在混淆过程中修改清单条目),但是我不知道它是否这样做.
It is conceivable that the commercial, Android-tuned DexGuard tool can even let you repackage stuff in the manifest (by modifying the manifest entries as part of the obfuscation process), but I do not know if it does or not.
这篇关于混淆文件夹结构-Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!