profile-owner

Android - Get list of users and profile name

故事扮演 提交于 2019-12-24 01:54:11
问题 We can create several users and profiles on an Android devices, for example, there is a Main User, and I also set a Work Profile with name "Work Profile". Using the following adb command: adb shell pm list users I'm getting this result: UserInfo{0:My User:13} running UserInfo{10:Work Profile:30} running Good, I can see my User Info with the name Work Profile on it. Now, I want to get this list from my application. I tried to use this code: for(Account account: AccountManager.get(this)

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