在Android应用程序prevent卸载 [英] prevent uninstall of applications in android

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

问题描述

我们正在开发跟踪设备被盗情况下的应用程序,该应用程序甚至应该被偷走,使得我们从设备的定期后的消息在设备中。有没有办法阻止的人,谁偷了手机,无法卸载应用程序?以及如何$通过管理应用程序应用程序的对$ pvent力停止选项>对myApp>强行停止。

we are developing an app that tracks the device in case it is stolen, the application should be in the device even after being stolen so that the we get periodic messages from the device. Is there a way to stop the person, who stole the mobile, from uninstalling the app? and also how to prevent force stop option of the app through the manage application > myApp > force stop.

推荐答案

我认为最接近你想找的是什么的设备管理功能在2.2中引入。

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

一旦申请注册为设备管理器,它不能被除非它的未注册卸载。这将prevent被卸载的应用程序。

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不允许这种特殊功能的密码保护,您可以使用密码保护您的应用程序,以prevent有人在该应用的设备管理功能被篡改。

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.

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

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