Android应用程序卸载保护 [英] android application uninstall protection

查看:166
本文介绍了Android应用程序卸载保护的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道有没有保护的应用程序从得到卸载的方法。我知道这是可能的,如果我的应用程序添加为设备管理员,但这是不够的。

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.

有没有一种方法,我可以弹出一个消息,要求卸载开始前的安全code?任何想法非常AP preciated。

Is there a way I could pop up a message asking for the security code before un-installation starts ? any ideas highly appreciated.

推荐答案

您可以创建两个应用程序。首先将你的应用程序,第二个会听删除意图和您的第一个应用程序被删除将TRIGER一个动作,但这只是一个基本的保护,因为用户可以先删除第二个应用程序。

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.

这篇关于Android应用程序卸载保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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