如何防止应用程序被卸载? [英] How to prevent an application from being uninstalled?

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

问题描述

我正在开发一个应用程序,供父母照顾孩子.所以这个应用程序不能被孩子删除.我需要知道如何使其可卸载,或者用户需要密码才能删除该应用程序.

I'm developing an application for parents to watch out for their children. So this application cannot be removed by the child. I need to know how to make it uninstallable or the user need password to remove that application.

推荐答案

Ankur,

我认为最接近您寻找的是设备管理功能2.2 中引入.

I think the closest thing to what your looking for is the Device Administration feature introduced in 2.2.

应用程序注册为设备管理员后,除非未注册,否则无法卸载.这将阻止应用程序被卸载.

Once the application is registered as a Device Administrator, it can't be uninstalled unless its unregistered. This will prevent the app from being uninstalled.

虽然设备管理 API 不允许此特定功能的密码保护,但您可以使用密码保护您的应用程序,以防止有人篡改应用程序中的设备管理功能.

While the Device Admin API doesn't allow for password protection of this particular feature, you can password protect your application to prevent someone from tampering with the Device Admin features in the app.

我使用了一个名为 SeekDroid 的应用,它具有类似的功能.

I use an app called SeekDroid that has a similar functionality.

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

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