简体   繁体   English

android应用程序卸载保护

[英]android application uninstall protection

Just wanted to know is there a way to protect an application from getting uninstalled. 只想知道有没有一种方法可以保护应用程序免于被卸载。 I know it's possible if i add the application as a device administrator but this is not enough. 我知道是否可以将应用程序添加为设备管理员,但这还不够。

Is there a way I could pop up a message asking for the security code before un-installation starts ? 有没有办法可以在卸载开始前弹出一条消息,要求您提供安全代码? any ideas highly appreciated. 任何想法高度赞赏。

You can create two applications. 您可以创建两个应用程序。 The first will be you application and the second will listen for remove intents and will triger an action if your first applications is removed, but this is only a basic protection since the user can remove the second application first. 第一个将是您的应用程序,第二个将是您的删除意图,如果您的第一个应用程序被删除,则将触发动作,但这只是基本的保护,因为用户可以先删除第二个应用程序。

The only possible solution is to modify the android source. 唯一可能的解决方案是修改android源代码。 As there are applications that can't be removed (gmail, contacts, telefon app, sms app, facebook, twitter) there must be a flag that you can use for your requirement. 由于存在无法删除的应用程序(Gmail,联系人,Telefon应用程序,Sms应用程序,Facebook,Twitter),因此必须有一个标记,您可以根据需要使用它。 But I doubt that there is a way on a non customized android os... 但是我怀疑在非定制的Android OS上是否有办法...

I think it's impossible If application is installed by user. 我认为如果用户安装了应用程序是不可能的。 Application can be uninstall by user too. 用户也可以卸载应用程序。

I think "application protection" on the market do what you want. 我认为市场上的“应用程序保护”可以满足您的需求。 Try to implement an BroadCastReceiver listen ACTION_PACKAGE_REMOVED. 尝试实现BroadCastReceiver侦听ACTION_PACKAGE_REMOVED。

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

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