Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb95a81a authored by Adrian Roos's avatar Adrian Roos
Browse files

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
parent beaf3707
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -923,6 +923,11 @@ public class KeyguardViewMediator extends SystemUI {
            // In this case, send out ACTION_USER_PRESENT here instead of in
            // In this case, send out ACTION_USER_PRESENT here instead of in
            // handleKeyguardDone()
            // handleKeyguardDone()
            sendUserPresentBroadcast();
            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());
        }
        }
    }
    }