Merge "LockSettingsService: Move down onAuthTokenKnownForUser()" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
29bedbcd95
@@ -2620,7 +2620,6 @@ public class LockSettingsService extends ILockSettings.Stub {
|
|||||||
Slog.i(TAG, "Initialize SyntheticPassword for user: " + userId);
|
Slog.i(TAG, "Initialize SyntheticPassword for user: " + userId);
|
||||||
final AuthenticationToken auth = mSpManager.newSyntheticPasswordAndSid(
|
final AuthenticationToken auth = mSpManager.newSyntheticPasswordAndSid(
|
||||||
getGateKeeperService(), credentialHash, credential, userId);
|
getGateKeeperService(), credentialHash, credential, userId);
|
||||||
onAuthTokenKnownForUser(userId, auth);
|
|
||||||
if (auth == null) {
|
if (auth == null) {
|
||||||
Slog.wtf(TAG, "initializeSyntheticPasswordLocked returns null auth token");
|
Slog.wtf(TAG, "initializeSyntheticPasswordLocked returns null auth token");
|
||||||
return null;
|
return null;
|
||||||
@@ -2643,6 +2642,7 @@ public class LockSettingsService extends ILockSettings.Stub {
|
|||||||
}
|
}
|
||||||
fixateNewestUserKeyAuth(userId);
|
fixateNewestUserKeyAuth(userId);
|
||||||
setSyntheticPasswordHandleLocked(handle, userId);
|
setSyntheticPasswordHandleLocked(handle, userId);
|
||||||
|
onAuthTokenKnownForUser(userId, auth);
|
||||||
return auth;
|
return auth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user