禁止从已安装的Andr​​oid应用程序采取apk文件 [英] Disable taking apk file from an installed android application

查看:222
本文介绍了禁止从已安装的Andr​​oid应用程序采取apk文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常可以把它安装在一个设备即使在一个Android应用程序的.apk文件。但我能找到一些应用程序,这是保护,采取他们的apk文件。

Usually it is possible to take .apk file of an android application even after it is installed in a device. But I could find some applications, which are protected from taking their .apk files.

因为它也可能从.apk文件提取code,我觉得开发商code是不是安全的。谁能告诉我怎样才能prevent第三方采取我的Andr​​oid应用程序的.apk文件?

As it is also possible to extract code from the .apk file, I think the developers code is not safe. Can anybody tell me how can I prevent a third party from taking .apk file of my android application?

在此先感谢..:)

推荐答案

我研究这个问题,我想我会在这里更新。它建议您将此你的Andr​​oid清单文件安全方面的原因:

I was investigating this issue and thought I will update here. It is recommended for security reasons that you set this in your android manifest file:

的android:allowBackup =FALSE

所以,如果有人试图做一个全面的adb系统备份或使用它来备份你的应用程序,特别是它不会来备份,从而$ ​​P $ pventing他们从那里提取的apk。我测试了这一点,它的工作原理,即亚行备份并没有让我的示例应用程序的备份。

So, if somebody tries to do a full adb system backup or uses it to backup your app in particular, it won't come in the backup, thus preventing them to extract the apk from there. I tested this and it works, i.e. the adb backup didn't allow backup of my sample app.

然后我安装一个应用程序采取的应用程序备份(ES文件浏览器),不幸的是,它允许采取我的示例应用程序的.apk文件备份备份的地方被禁用。这是一个无根的设备。这似乎表明,在设置清单,该酒店不prevent其他应用程序进行备份。

Then I installed an app for taking app backups (ES File explorer), and unfortunately, it allowed the .apk backup to be taken for my sample app where backup was disabled. And this was an unrooted device. This seems to indicate that setting this property in manifest doesn't prevent other apps to take backups.

因此​​,有几个选项左:

So there are few options left:


  1. 使用ProGuard的和其他最佳实践,使其难以扭转工程师您的应用程序。

  2. 由谷歌作为一种服务提供的应用程序使用许可键播放,以避免您的应用程序的盗版行为。

这篇关于禁止从已安装的Andr​​oid应用程序采取apk文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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