Wiping data on Android: Device Admin versus Profile Owner

十年热恋 提交于 2019-12-07 19:21:27

问题


Android 5.0 introduces a new concept of Profile Owner.

In my understanding Profile Owner is an advanced version of Device Admin (exists in Android since 2.2).

Both Device Admin and Profile Owner can wipe data via DevicePolicyManager.wipeData(0).

I would like to know if there is a difference in behaviour of such a call for Device Admin and Profile Owner. I guess for a pure Device Admin it should wipe entire device (factory reset), and for a Profile Owner it should only wipe data for the current profile (so the coexisting personal data is untouched). But this is not clear from the API. Does anyone have a real experience in this?

Obviously I don't want to study the behaviour on my personal device (too risky), just would like to know if anyone already tried it on some test device.


回答1:


Yes , When a device admin app calls the API , it wipes the entire device and when the same api is called with in the profile , it wipes data for current profile



来源:https://stackoverflow.com/questions/28342461/wiping-data-on-android-device-admin-versus-profile-owner

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!