简体   繁体   English

如何使用Proguard在Android中创建混淆的APK

[英]How to create an obfuscated apk in android by using proguard

I'm new to using proguard. 我是使用proguard的新手。
I want to create an obfuscated apk by using proguard. 我想通过使用proguard创建混淆的apk。
I created a signed apk after uncommenting 取消评论后,我创建了一个签名的apk

proguard.config = ${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

The apk I'm getting is not obfuscated. 我得到的apk不会被混淆。
If I reverse engineer the APK by using dex2jar , I'm getting the class files and they're not obfuscated. 如果我通过使用dex2jar对APK进行反向工程,我会得到类文件,并且不会混淆它们。

Am I missing something? 我想念什么吗?

Thanks in advance 提前致谢

ProGuard only obfuscates and optimizes bytecode. ProGuard仅混淆和优化字节码。 You should see renamed classes, fields, and methods. 您应该看到重命名的类,字段和方法。 ProGuard's commercial, Android-specific sibling DexGuard provides additional application protection techniques, such as string encryption and asset encryption, although not encryption of strings in resource XML files, at this time. ProGuard的商业专用于Android的同级DexGuard提供了其他应用程序保护技术,例如字符串加密和资产加密,尽管目前还没有加密资源XML文件中的字符串。

(I am the developer of ProGuard and DexGuard) (我是ProGuard和DexGuard的开发人员)

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

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