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

Commit f9301fd8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Check PendingStartActivityUids in getAppStartModeLocked." into rvc-dev...

Merge "Check PendingStartActivityUids in getAppStartModeLocked." into rvc-dev am: 66929380 am: 235421cc

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12055922

Change-Id: I5909a2a31452322c654e11d5dda551e31e7c3d80
parents d1bc73da 235421cc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6334,6 +6334,9 @@ public class ActivityManagerService extends IActivityManager.Stub
    int getAppStartModeLocked(int uid, String packageName, int packageTargetSdk,
            int callingPid, boolean alwaysRestrict, boolean disabledOnly, boolean forcedStandby) {
        if (mInternal.isPendingTopUid(uid)) {
            return ActivityManager.APP_START_MODE_NORMAL;
        }
        UidRecord uidRec = mProcessList.getUidRecordLocked(uid);
        if (DEBUG_BACKGROUND_CHECK) Slog.d(TAG, "checkAllowBackground: uid=" + uid + " pkg="
                + packageName + " rec=" + uidRec + " always=" + alwaysRestrict + " idle="