如何混淆的APK中的Andr​​oid 2.1 / 2.2 [英] How to obfuscate an APK in Android 2.1/2.2

查看:118
本文介绍了如何混淆的APK中的Andr​​oid 2.1 / 2.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道SDK 2.3,我们可以使用ProGuard混淆APK。

We know in SDK 2.3 we can obfuscate APK with Proguard.

现在的问题是:如何进行模糊处理APK中的Andorid 2.1 / 2.2 SDK

The question is: How to obfuscate APK in Andorid 2.1/2.2 SDK?

推荐答案

编辑文件(项目根目录)的 project.propierties 并添加行

Edit the file (in the project root) project.propierties and add the line

proguard.config=proguard.cfg

和对其做。当您尝试生成您的应用程序的签署APK它会需要更长的时间,它会进行模糊处理。

And its done. When you try to generate the signed apk of your app it will take a little longer and it will be obfuscated.

如果您收到转换为Dalvik的错误生成APK当你需要更新你的SDK的proguard的。对于做它,你需要去的 ProGuard的页面下载部分。下载最新的稳定版本,并把它放在含量

If you receive the "Conversion to dalvik error" when generating the apk you need to update the proguard of your sdk. For doing it you need to go to the ProGuard page to the download section. Download the last stable version and put it content in

SDK_ROOT/tools/proguard

删除现有的内容之前,当然。

Deleting the existing content before of course.

您可以检查他们的网页Proguard的手册(链接上方)和关于ProGuard的更多信息Android的Proguard的页面

You can check the Proguard manual at their page (link is above) and the Android's Proguard page for more info about ProGuard

这篇关于如何混淆的APK中的Andr​​oid 2.1 / 2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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