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

Commit bc1d0ff0 authored by Chris Tate's avatar Chris Tate Committed by Android (Google) Code Review
Browse files

Merge "Check bg persistent-app policy against base uid, not nominal"

parents 3641585f 7408813e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8115,8 +8115,8 @@ public class ActivityManagerService extends IActivityManager.Stub
    // of service-launch policy, allow those callers to proceed unrestricted.
    int appServicesRestrictedInBackgroundLocked(int uid, String packageName, int packageTargetSdk) {
        // Persistent app?  NB: expects that persistent uids are always active.
        final UidRecord uidRec = mActiveUids.get(uid);
        if (uidRec != null && uidRec.persistent) {
        final UidRecord appIdRec = mActiveUids.get(UserHandle.getAppId(uid));
        if (appIdRec != null && appIdRec.persistent) {
            if (DEBUG_BACKGROUND_CHECK) {
                Slog.i(TAG, "App " + uid + "/" + packageName
                        + " is persistent; not restricted in background");