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

Commit 57ce2983 authored by Rubin Xu's avatar Rubin Xu
Browse files

Generate auth token when unlocking from reboot escrow

Mint a fresh gatekeeper auth token when device is unlocked
by reboot escrow after taking OTA.

Bug: 168816765
Test: atest com.android.server.locksettings
Change-Id: I56bb1ce7c356062edefcc36f295dcf6178354d10
parent 5ee55428
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3501,6 +3501,9 @@ public class LockSettingsService extends ILockSettings.Stub {
            SyntheticPasswordManager.AuthenticationToken
                    authToken = new SyntheticPasswordManager.AuthenticationToken(spVersion);
            authToken.recreateDirectly(syntheticPassword);
            synchronized (mSpManager) {
                mSpManager.verifyChallenge(getGateKeeperService(), authToken, 0L, userId);
            }
            onCredentialVerified(authToken, loadPasswordMetrics(authToken, userId), userId);
        }
    }