Merge "Apply app switching protection on AppTask.moveToFront()" into qt-dev
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user