summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Robin Lee <rgl@google.com> 2017-01-03 18:43:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-01-03 18:43:52 +0000
commitf8ced7790a6815ec6a57ba53ece409df26573439 (patch)
tree0299c7a422eee308c66afec8f6726402b81aca6b
parentdc143e01ccdf76f780c8331659ca27484733907a (diff)
parenta04a29ae02f100d61012c4834ab255ec76dc7d16 (diff)
Merge "Don't check for monitoring CA certs in cryptkeeper"
-rw-r--r--services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
index 9737b36b168e..10a19d72db5b 100644
--- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
+++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
@@ -544,8 +544,10 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
if (Intent.ACTION_USER_UNLOCKED.equals(action)
|| Intent.ACTION_USER_STARTED.equals(action)
|| KeyChain.ACTION_TRUST_STORE_CHANGED.equals(action)) {
- int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_ALL);
- new MonitoringCertNotificationTask().execute(userId);
+ if (!StorageManager.inCryptKeeperBounce()) {
+ new MonitoringCertNotificationTask().execute(
+ intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_ALL));
+ }
}
if (Intent.ACTION_USER_ADDED.equals(action)) {
sendUserAddedOrRemovedCommand(DeviceAdminReceiver.ACTION_USER_ADDED, userHandle);