简体   繁体   English

Android如何防止我的应用程序卸载?

[英]Android How to prevent my app to uninstall?

I am working on a locker application and for this I want to disable the uninstall option from app manager so any other user can not delete my app. 我正在处理一个更衣室应用程序,为此,我想从应用程序管理器中禁用卸载选项,以便任何其他用户无法删除我的应用程序。 But for uninstalling I want to give the option with in the application, Please suggest me how can I achieve this in Android? 但是对于卸载,我想在应用程序中提供该选项,请建议我如何在Android中实现此目的?

You will need to enable deviceAdmin to disable Force Stop and Uninstall features. 您将需要启用deviceAdmin来禁用“强制停止”和“卸载”功能。 This is handled by the Device Admin API which handles enterprise/app policy management. 这由处理企业/应用程序策略管理的Device Admin API处理。

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

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