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!