1

My application needs to detect if the user has setup multiple users on their phone. My application will be running from the primary user account. Does anyone know how this can be done?

Here are some options that I have ruled out:

The method UserManager.getUserCount(), is only available to system apps and requires the android.permission.MANAGE_USERS permission.

The method UserManager.getUserProfiles() returns a list of UserHandles, but I am not able to identify if the UserHandle belongs to a profile within the user or a separate User?

Thanks in advance!

null_override
  • 467
  • 3
  • 10
  • 30
TMS
  • 1,201
  • 1
  • 13
  • 20
  • Does this answer your question? [How to know multiple users configured in device?](https://stackoverflow.com/questions/31018677/how-to-know-multiple-users-configured-in-device) – Manohar Sep 16 '20 at 01:33

0 Answers0