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

Commit b39679d4 authored by Christopher Tate's avatar Christopher Tate Committed by android-build-merger
Browse files

Merge "Mark uid as non-idle/FG-entitled when launching for fg service" into oc-mr1-dev

am: 93243bf8

Change-Id: Ibb5a539d306c58a21844ff97e0ac2678dd55c8e3
parents c9117ddb 93243bf8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2162,6 +2162,15 @@ public final class ActiveServices {
            }
        }

        if (r.fgRequired) {
            if (DEBUG_FOREGROUND_SERVICE) {
                Slog.v(TAG, "Whitelisting " + UserHandle.formatUid(r.appInfo.uid)
                        + " for fg-service launch");
            }
            mAm.tempWhitelistUidLocked(r.appInfo.uid,
                    SERVICE_START_FOREGROUND_TIMEOUT, "fg-service-launch");
        }

        if (!mPendingServices.contains(r)) {
            mPendingServices.add(r);
        }