Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbc3ccec authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Root (uid=0) should be core. Fix UserHandle.isCore().

Bug: 77240427
Change-Id: I057e8f50370fb1cd74ff2ebdab41990a682cec6f
Fix: 77240427
Test: build & boot
Test: "am set-standby-bucket com.google.android.apps.docs 40" will override ACTIVE
parent e845d664
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -158,7 +158,7 @@ public final class UserHandle implements Parcelable {
     * @hide
     * @hide
     */
     */
    public static boolean isCore(int uid) {
    public static boolean isCore(int uid) {
        if (uid > 0) {
        if (uid >= 0) {
            final int appId = getAppId(uid);
            final int appId = getAppId(uid);
            return appId < Process.FIRST_APPLICATION_UID;
            return appId < Process.FIRST_APPLICATION_UID;
        } else {
        } else {