如何删除与有源设备管理的应用程序在Android上启用? [英] How to remove an app with active device admin enabled on Android?

查看:243
本文介绍了如何删除与有源设备管理的应用程序在Android上启用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写启用(DevicePolicyManager)和已安装的设备管理员的应用程序。 但是,当我想卸载它,它返回失败,此消息

I wrote an app with device admin enabled (DevicePolicyManager) and installed. But when I want to uninstall it, it returns failed with this message

WARN / PackageManager(69):如果不删除包com.mypackage.test:具有有源器件管理员

WARN/PackageManager(69): Not removing package com.mypackage.test: has active device admin

我怎样才能将其卸载,或卸载programmically它? 谢谢你。

How can I uninstall it, or uninstall it programmically? Thanks.

推荐答案

进入设置 - >位置与安全 - >设备管理器,然后取消选择要卸载的管理。

Go to SETTINGS->Location and Security-> Device Administrator and deselect the admin which you want to uninstall.

现在卸载应用程序。如果还是说,你需要禁用卸载应用程序之前,您可能需要在卸载之前强制停止应用程序。

Now uninstall the application. If it still says you need to deactivate the application before uninstalling, you may need to Force Stop the application before uninstalling.

这篇关于如何删除与有源设备管理的应用程序在Android上启用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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