简体   繁体   English

ProGuard真的是保护android应用程序的好方法吗?

[英]Is ProGuard really a good way to protect the android application?

Is ProGuard really a good way to protect the android application? ProGuard真的是保护android应用程序的好方法吗? I do not think. 我不这样认为。 Please see the following images: 请查看以下图片:

Compile Code 编译代码

在此处输入图片说明

Decompile_Code 反编译代码

在此处输入图片说明

Also the variable names did not change and the code is readable easily. 同样,变量名称没有改变,并且代码易于阅读。

Activity classes are not completely obfuscated. 活动类未完全混淆。 This is because the activities are listed in the manifest and classes referenced there are automagically kept. 这是因为活动在清单中列出,并且其中引用的类被自动保留。 This is needed because the Android framework accesses these app entry points via reflection. 这是必需的,因为Android框架通过反射访问这些应用程序入口点。

Read more from here : 这里阅读更多:

The build process runs the tool aapt to automatically create the configuration file bin/proguard.txt, based on AndroidManifest.xml and other xml files. 构建过程将运行工具aapt,以基于AndroidManifest.xml和其他xml文件自动创建配置文件bin / proguard.txt。 The build process then passes the configuration file to ProGuard. 然后,构建过程将配置文件传递给ProGuard。 So ProGuard itself indeed doesn't consider AndroidManifest.xml, but aapt+ProGuard do. 因此,ProGuard本身确实不考虑AndroidManifest.xml,但aapt + ProGuard会考虑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM