我想混淆AndroidManifest.xml中使用ProGuard [英] i want to obfuscate AndroidManifest.xml with Proguard

查看:1334
本文介绍了我想混淆AndroidManifest.xml中使用ProGuard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以混淆AndroidManifest.xml文件使用ProGuard?

Can i obfuscate AndroidManifest.xml file with Proguard?

我想在我proguard.config文件写入到源$ C ​​$ C。
(-adaptresourcefilenames AndroidManifest.xml中)

i think write to source code in my proguard.config file. (-adaptresourcefilenames AndroidManifest.xml)

但它没有工作。

推荐答案

标准Android发布版本只适用于ProGuard的编译字节code,而不是任何资源文件。因此,它无法适应文件,如AndroidManifest.xml中。

The standard Android release builds only apply ProGuard to the compiled bytecode, not to any resource files. It therefore can't adapt files like AndroidManifest.xml.

此外,这些构建过程首次运行 AAPT 来AndroidManifest.xml中和其他XML文件转换为二进制版本,更有效的包装和使用。 AAPT也写了一些配置ProGuard的。 ProGuard的只能分析和文本格式适应资源文件,因此它不会对二进制版本。

Moreover, these build processes first run aapt to convert AndroidManifest.xml and other XML files to binary versions, for more efficient packaging and use. Aapt also writes out some configuration for ProGuard. ProGuard can only parse and adapt resource files in text format, so it wouldn't work on the binary versions.

DexGuard ,ProGuard的,专门针对Android的商业扩展,简化了构建过程。它还混淆和优化二进制XML文件,尽可能。正如尼古拉提到的,一些类名还是不能混淆;值得注意的是可以从其他应用程序中引用的人。

DexGuard, the commercial extension of ProGuard that specifically targets Android, streamlines the build process. It also obfuscates and optimizes the binary XML files, as far as possible. As Nikolay mentioned, some class names still can't be obfuscated; notably the ones that may be referenced from other apps.

(我的ProGuard和DexGuard的开发者)

(I am the developer of ProGuard and DexGuard)

这篇关于我想混淆AndroidManifest.xml中使用ProGuard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆