OSDN Git Service

Start SecurityLogMonitor after broadcasts are allowed.
authorPavel Grafov <pgrafov@google.com>
Wed, 6 Jun 2018 15:11:09 +0000 (16:11 +0100)
committerPavel Grafov <pgrafov@google.com>
Thu, 7 Jun 2018 10:16:46 +0000 (11:16 +0100)
commit3bca09f3086e82e12f36b1c045054e2dcd1c7b43
tree4998a48ad242d4fc3a9cb6039c52eb672a61e241
parent47d9d9801b7fb0ad0efec82d585782ba9a8fd545
Start SecurityLogMonitor after broadcasts are allowed.

Otherwise if boot takes long enough, DO broadcast will be sent while
ActivityManagerSerivce is not ready, causing IllegalStateException.

Change-Id: I6b55ed45ed7b1f3ed9ad6ec20695907b4fa6f3b1
Fixes: 109746888
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.DeviceOwnerTest#testSecurityLoggingWithSingleUser
Test: provisioned TestDPC as DO in SuW, enabled logging.
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java