Skip to content
Commit 3589e891 authored by Rubin Xu's avatar Rubin Xu
Browse files

Restore password metrics after a credential-less unlock

Password metrics for the curent lockscreen credential needs to be
available after unlock but it's not possible to recalculate them
if unlock is performed with a token. To fix this we store an
encrypted metrics alongside the current password-based SP and
decrypt it during token-based unlock.

Bug: 145601001
Test: atest com.android.server.locksettings
Test: atest
com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken
Change-Id: I01bf310b2e265986be92b09a753f0ecfa69d83f2

Change-Id: Icfc7bd3a3db710e9606cb2df305683b421c785a7
parent 0ccefbe9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment