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

Commit bd382162 authored by Ricky Wai's avatar Ricky Wai Committed by android-build-merger
Browse files

Merge "Apply app switching protection on AppTask.moveToFront()" into qt-dev

am: 89082d70

Change-Id: I59737b422133299b2123c8a63afbd8186aeee5f0
parents 729be9a4 89082d70
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -106,6 +106,10 @@ class AppTaskImpl extends IAppTask.Stub {
        final long origId = Binder.clearCallingIdentity();
        try {
            synchronized (mService.mGlobalLock) {
                if (!mService.checkAppSwitchAllowedLocked(callingPid, callingUid, -1, -1,
                        "Move to front")) {
                    return;
                }
                WindowProcessController callerApp = null;
                if (appThread != null) {
                    callerApp = mService.getProcessController(appThread);