OSDN Git Service

Fix #37305009 : Beam crash in secondary users
authorChristopher Tate <ctate@google.com>
Thu, 20 Apr 2017 23:24:31 +0000 (16:24 -0700)
committerChristopher Tate <ctate@google.com>
Thu, 20 Apr 2017 23:26:00 +0000 (16:26 -0700)
commitd347205e631257708e8ad7467b194d581828fb54
tree2150110d36277d92d394fd314821b2d04c231861
parent106527e21e63a6c5b8f4b1dc6dcb608bdff98d27
Fix #37305009 : Beam crash in secondary users

The background-policy check for a-priori app uids needs to be an appId
check rather than nominal uid.

Along the way, even though the code is not invoked after the boot
sequence currently, make the "is this uid on the a-priori list?"
check thread safe.

Bug 37305009
Test: manual

Change-Id: I7c2525f86e73b213057cd4b7f327191ec20c4a6d
services/core/java/com/android/server/am/ActivityManagerService.java