Loading core/java/android/content/pm/UserInfo.java +5 −2 Original line number Diff line number Diff line Loading @@ -19,10 +19,11 @@ package android.content.pm; import android.annotation.UnsupportedAppUsage; import android.os.Parcel; import android.os.Parcelable; import android.os.SystemProperties; import android.os.UserHandle; import android.os.UserManager; import com.android.internal.os.RoSystemProperties; /** * Per-user information. * @hide Loading Loading @@ -232,7 +233,9 @@ public class UserInfo implements Parcelable { if (isManagedProfile() || isGuest() || isRestricted()) { return false; } if (UserManager.isSplitSystemUser()) { boolean splitOrHeadlessSystemUser = UserManager.isSplitSystemUser() || RoSystemProperties.MULTIUSER_HEADLESS_SYSTEM_USER; if (splitOrHeadlessSystemUser) { return id != UserHandle.USER_SYSTEM; } else { return id == UserHandle.USER_SYSTEM; Loading Loading
core/java/android/content/pm/UserInfo.java +5 −2 Original line number Diff line number Diff line Loading @@ -19,10 +19,11 @@ package android.content.pm; import android.annotation.UnsupportedAppUsage; import android.os.Parcel; import android.os.Parcelable; import android.os.SystemProperties; import android.os.UserHandle; import android.os.UserManager; import com.android.internal.os.RoSystemProperties; /** * Per-user information. * @hide Loading Loading @@ -232,7 +233,9 @@ public class UserInfo implements Parcelable { if (isManagedProfile() || isGuest() || isRestricted()) { return false; } if (UserManager.isSplitSystemUser()) { boolean splitOrHeadlessSystemUser = UserManager.isSplitSystemUser() || RoSystemProperties.MULTIUSER_HEADLESS_SYSTEM_USER; if (splitOrHeadlessSystemUser) { return id != UserHandle.USER_SYSTEM; } else { return id == UserHandle.USER_SYSTEM; Loading