Questions tagged [profile-owner]

6 questions
14
votes
2 answers

Android - Get list of users and profile name

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…
ZouBi
  • 283
  • 1
  • 2
  • 6
5
votes
1 answer

Android Device Administrator / Profile owner

I'm trying to know how Device Administrator and Profile Owner works. I followed some examples from google website, but I still do not quite know how profile owner works. To test this, I've built a sample app which will ask the user to accept the…
Luis Pereira
  • 1,481
  • 3
  • 19
  • 46
2
votes
0 answers

setCrossProfileCallerIdDisabled not working

Did someone used the setCrossProfileCallerIdDisabled method of a managed profile? Is it working or not? When I disable the cross profile caller id, I can still see who is calling me in my unmanaged profile even if the contact is registered only in…
Vick Tim
  • 97
  • 7
2
votes
0 answers

Android Lollipop - Check if a work profile is set up for the user

I would like to find a way to know, from the user profile, if a work profile (profile owner) has been set up for the user. I'm currently using this method: public boolean isWorkProfileEnabled() { UserManager um = (UserManager)…
ZouBi
  • 283
  • 1
  • 2
  • 6
2
votes
1 answer

Wiping data on Android: Device Admin versus Profile Owner

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…
Vit Khudenko
  • 28,288
  • 10
  • 63
  • 91
1
vote
1 answer

App already set as profile owner, but can't remove it anymore

I have a class AdminReceiver extending DeviceAdminReceiver in my app. Previously I made it profile owner via ADB shell adb shell dpm set-active-admin com.example.myApp/com.example.myApp.AdminReceiver adb shell dpm set-profile-owner…
Rino
  • 11
  • 1
  • 2