From 9c189e1f784caad315bc5ee51a7c8e8063902e4a Mon Sep 17 00:00:00 2001 From: Wale Ogunwale Date: Wed, 11 Jul 2018 15:22:01 -0700 Subject: [PATCH] Acquire service lock in AppTaskImpl.moveToFront() Oversight from previous refactor in O release done in ag/2987716 Change-Id: I2e2d6e55251eb319ddee0db97eedc1c574736ead Fixes: 111336376 Test: builds --- services/core/java/com/android/server/am/AppTaskImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/am/AppTaskImpl.java b/services/core/java/com/android/server/am/AppTaskImpl.java index c22dedc4073fc..a1f1ff9cc3ec5 100644 --- a/services/core/java/com/android/server/am/AppTaskImpl.java +++ b/services/core/java/com/android/server/am/AppTaskImpl.java @@ -97,7 +97,7 @@ class AppTaskImpl extends IAppTask.Stub { final int callingUid = Binder.getCallingUid(); final long origId = Binder.clearCallingIdentity(); try { - synchronized (this) { + synchronized (mService.mGlobalLock) { mService.mStackSupervisor.startActivityFromRecents(callingPid, callingUid, mTaskId, null); }