ルート化されたシステムで、/ data / system / users /フラグのユーザーのxmlファイルの16から24への変更例:
user id = "11" serialNumber = "13" flags = "24" created = "1373565328127" lastLoggedIn = "1376779161829" icon = "/ data / system / users / 11 / photo.png"
ここに定数がありますhttps://android.googlesource.com/platform/frameworks/base.git/+/android-4.2.2_r1/core/java/android/content/pm/UserInfo.java
/**
* Primary user. Only one user can have this flag set. Meaning of this
* flag TBD.
*/
public static final int FLAG_PRIMARY = 0x00000001;
/**
* User with administrative privileges. Such a user can create and
* delete users.
*/
public static final int FLAG_ADMIN = 0x00000002;
/**
* Indicates a guest user that may be transient.
*/
public static final int FLAG_GUEST = 0x00000004;
/**
* Indicates the user has restrictions in privileges, in addition to those for normal users.
* Exact meaning TBD. For instance, maybe they can't install apps or administer WiFi access pts.
*/
public static final int FLAG_RESTRICTED = 0x00000008;
/**
* Indicates that this user has gone through its first-time initialization.
*/
public static final int FLAG_INITIALIZED = 0x00000010;
EngyCZ