1

I'm using the cmd user list command and this is the output I'm getting from the shell.

UserInfo{0:Owner:13}

UserInfo{23:shalevM:20}

what does the last variable means? the first one is clearly the user's id and the second is the user's name, but the last one is changing from time to time and I don't know what does it mean.

0

The structure of the output is as follows:

UserInfo{id:name:flags}

Flags are basically bits of information describing the data model's level of access and/or permissions.

You can read some of the code comments on the flags defined in the UserInfo class here:

https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/content/pm/UserInfo.java

  • Why would it be changing... could that be a sign of changing permissions on the account ? – Gadget Guru May 29 at 3:06
  • They most likely change as the user accepts/rejects permissions or other functional app settings because the value itself is a bitmask representing multiple data points in one integer value. – CzarMatt May 29 at 20:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.