Must synchronize for ...Locked() code paths

Fixes: 130124446
Test: manual (reboot instrumentation)
Change-Id: I8651fe876f23bc0ea7e3aab57f5a61727985815e
This commit is contained in:
Christopher Tate
2019-05-13 14:26:19 -07:00
parent 065e1521f8
commit eb4f528872

View File

@@ -107,9 +107,11 @@ public abstract class PreBootBroadcaster extends IIntentReceiver.Stub {
EventLogTags.writeAmPreBoot(mUserId, componentName.getPackageName());
mIntent.setComponent(componentName);
mService.broadcastIntentLocked(null, null, mIntent, null, this, 0, null, null, null,
AppOpsManager.OP_NONE, null, true, false, ActivityManagerService.MY_PID,
Process.SYSTEM_UID, Binder.getCallingUid(), Binder.getCallingPid(), mUserId);
synchronized (mService) {
mService.broadcastIntentLocked(null, null, mIntent, null, this, 0, null, null, null,
AppOpsManager.OP_NONE, null, true, false, ActivityManagerService.MY_PID,
Process.SYSTEM_UID, Binder.getCallingUid(), Binder.getCallingPid(), mUserId);
}
}
@Override