在Android应用程序prevent卸载应用程序、Android、prevent

2023-09-07 04:25:19 作者:往复随安

我们正在开发跟踪设备被盗情况下的应用程序,该应用程序甚至应该被偷走,使得我们从设备的定期后的消息在设备中。有没有办法阻止的人,谁偷了手机,无法卸载应用程序?以及如何$通过管理应用程序应用程序的对$ 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.