From fb95a81a8b1ffb3f75e35e14f494361882842731 Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Mon, 20 Jun 2016 14:58:59 -0700 Subject: [PATCH] Allow trust agents to run during provisioning Fixes a bug where trust agents weren't able to run during provisioning, because user presence is only acknowledged after provisioning completed. Change-Id: Ib9ed235e8372555fdc40eefd0fc6b1192613abda Fixes: 29231515 --- .../com/android/systemui/keyguard/KeyguardViewMediator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index cad7f647e031f..6759e6bcf8cd1 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -923,6 +923,11 @@ public class KeyguardViewMediator extends SystemUI { // In this case, send out ACTION_USER_PRESENT here instead of in // handleKeyguardDone() sendUserPresentBroadcast(); + } else if (mSystemReady && shouldWaitForProvisioning()) { + // Skipping the lockscreen because we're not yet provisioned, but we still need to + // notify the StrongAuthTracker that it's now safe to run trust agents, in case the + // user sets a credential later. + getLockPatternUtils().userPresent(KeyguardUpdateMonitor.getCurrentUser()); } }