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

Commit 7f2d1a73 authored by Michal Karpinski's avatar Michal Karpinski Committed by Android (Google) Code Review
Browse files

Merge "Add explicit SYSTEM_UID check to ActivityStarter#isUidPersistentSystemProcess()"

parents 2444f5a5 95722b51
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -982,7 +982,8 @@ class ActivityStarter {

    /** Returns true if uid is in a persistent state. */
    private boolean isUidPersistentSystemProcess(int uid) {
        return (mService.getUidStateLocked(uid) <= ActivityManager.PROCESS_STATE_PERSISTENT_UI);
        return (uid == Process.SYSTEM_UID)
                || (mService.getUidStateLocked(uid) <= ActivityManager.PROCESS_STATE_PERSISTENT_UI);
    }

    private void maybeLogActivityStart(int callingUid, String callingPackage, int realCallingUid,