在Android上擦除数据:设备管理员与配置文件所有者 [英] Wiping data on Android: Device Admin versus Profile Owner
问题描述
Android 5.0引入了配置文件所有者的新概念.
Android 5.0 introduces a new concept of Profile Owner.
据我所知,Profile Owner是Device Admin的高级版本(自2.2开始在Android中存在).
In my understanding Profile Owner is an advanced version of Device Admin (exists in Android since 2.2).
设备管理员和配置文件所有者均可通过DevicePolicyManager.wipeData(0)
擦除数据.
Both Device Admin and Profile Owner can wipe data via DevicePolicyManager.wipeData(0)
.
我想知道对Device Admin和Profile Owner的这种呼叫行为是否有所不同.我猜对于一个纯设备管理员来说,它应该擦除整个设备(恢复出厂设置),对于一个配置文件所有者,它应该仅擦除当前配置文件的数据(这样就不会破坏共存的个人数据).但这从API尚不清楚.有人在这方面有真正的经验吗?
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.
推荐答案
是的,当设备管理员应用调用API时,它将擦除整个设备,而在配置文件中使用同一api时,它将擦除当前数据个人资料
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
这篇关于在Android上擦除数据:设备管理员与配置文件所有者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!