Merge "LockSettingsService: Move down onAuthTokenKnownForUser()" into rvc-qpr-dev

This commit is contained in:
Jing-yan, Jang
2020-09-22 09:43:03 +00:00
committed by Android (Google) Code Review

View File

@@ -2620,7 +2620,6 @@ public class LockSettingsService extends ILockSettings.Stub {
Slog.i(TAG, "Initialize SyntheticPassword for user: " + userId);
final AuthenticationToken auth = mSpManager.newSyntheticPasswordAndSid(
getGateKeeperService(), credentialHash, credential, userId);
onAuthTokenKnownForUser(userId, auth);
if (auth == null) {
Slog.wtf(TAG, "initializeSyntheticPasswordLocked returns null auth token");
return null;
@@ -2643,6 +2642,7 @@ public class LockSettingsService extends ILockSettings.Stub {
}
fixateNewestUserKeyAuth(userId);
setSyntheticPasswordHandleLocked(handle, userId);
onAuthTokenKnownForUser(userId, auth);
return auth;
}