简体   繁体   English

使用Proguard进行Android调试Apk模糊处理

[英]Android Debug Apk Obfuscation using Proguard

I am using Eclipse integrated ProGuard for obfuscating my application apk. 我正在使用Eclipse集成的ProGuard来混淆我的应用程序apk。

I have tried exporting signed packages for my application. 我尝试为我的应用程序导出签名的程序包。 The APK gets installed but doesn't work properly (with or without Proguard obfuscation) APK已安装,但无法正常运行(带有或不带有Proguard混淆功能)

However, there is a debug signed APK generated by eclipse, which is working absolutely fine. 但是,由eclipse生成了一个调试签名的APK,它工作得非常好。 Is there a way to obfuscate that APK? 有没有办法混淆该APK?

I need to get a properly working signed, obfuscated APK not for release but for internal sharing. 我需要获得一个工作正常的签名,模糊的APK,而不是发布,而是内部共享。

I think you might have opened the project properties and uncommented this line 我认为您可能已经打开了项目属性,并且未对此行添加注释

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

i will suggest you to go through this link, before implementing proguard: 我建议您在实施proguard之前先通过此链接:

http://proguard.sourceforge.net/index.html#manual/limitations.html http://proguard.sourceforge.net/index.html#manual/limitations.html

The Eclipse build process and the Ant build process in the Android SDK never obfuscate debug apks. Android SDK中的Eclipse构建过程和Ant构建过程永远不会混淆调试apk。 You can try fixing your Eclipse export (eg based on error messages in the logcat) or building a release with Ant. 您可以尝试修复Eclipse导出(例如,基于logcat中的错误消息)或使用Ant构建发行版。

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

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