how to make my application device administrator in

2019-02-04 19:05发布

I am trying to make my application device administrator , i followed some notes provided on the same at Device admin SAMPLE notes or TUTORIAL here but still could not implement it.

Can some one plz point out a working example of the same , i just need to make sure that to uninstall the application , user needs to enter the password which is set in my application.

Any help will be useful , Thanks in advance

3条回答
萌系小妹纸
2楼-- · 2019-02-04 19:35

I found the sample tutorial here. I hope it will help you.

Warning :::: If you click "Reset Device", your device will be factory reset because of

devicePolicyManager.wipeData(ACTIVATION_REQUEST);
查看更多
冷血范
3楼-- · 2019-02-04 19:35

yes It is possible to make such an app that can take password before getting uninstall. Install this app "Findroid" App that has this functionality from google Play. In this app first you need to unlock your app then only u can uninstall it.

查看更多
虎瘦雄心在
4楼-- · 2019-02-04 19:36

i just need to make sure that to uninstall the application , user needs to enter the password which is set in my application.

Fortunately, this is not possible for an SDK application. Even a device admin app cannot prevent the user from uninstalling it.

查看更多
登录 后发表回答