Don't pass HardwareAuthToken to unlockUser() in non-SP verifyCredential
While at first glance it looks like this is still needed, actually the support for HardwareAuthTokens was already removed from vold in Android 12, so this cannot actually be doing anything. Test: atest com.android.server.locksettings Bug: 184723544 Change-Id: I3c176ba282f4c7901dd09fe3d66cfd380794fb48
This commit is contained in:
@@ -2392,9 +2392,8 @@ public class LockSettingsService extends ILockSettings.Stub {
|
||||
setUserPasswordMetrics(credential, userId);
|
||||
unlockKeystore(credential.getCredential(), userId);
|
||||
|
||||
Slog.i(TAG, "Unlocking user " + userId + " with token length "
|
||||
+ response.getGatekeeperHAT().length);
|
||||
unlockUser(userId, response.getGatekeeperHAT(), secretFromCredential(credential));
|
||||
Slog.i(TAG, "Unlocking user " + userId);
|
||||
unlockUser(userId, null, secretFromCredential(credential));
|
||||
|
||||
if (isManagedProfileWithSeparatedLock(userId)) {
|
||||
setDeviceUnlockedForUser(userId);
|
||||
|
||||
Reference in New Issue
Block a user