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

Commit 27f4c791 authored by Kevin Chyn's avatar Kevin Chyn Committed by Android (Google) Code Review
Browse files

Merge "Use CHALLENGE_NONE when VerifyCredential invoked with challenge=0" into rvc-dev

parents 9e2fa504 1cd2160c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1972,7 +1972,13 @@ public class LockSettingsService extends ILockSettings.Stub {
    public VerifyCredentialResponse verifyCredential(LockscreenCredential credential,
            long challenge, int userId) {
        checkPasswordReadPermission(userId);
        return doVerifyCredential(credential, CHALLENGE_FROM_CALLER, challenge, userId,
        @ChallengeType int challengeType = CHALLENGE_FROM_CALLER;
        if (challenge == 0) {
            Slog.w(TAG, "VerifyCredential called with challenge=0");
            challengeType = CHALLENGE_NONE;

        }
        return doVerifyCredential(credential, challengeType, challenge, userId,
                null /* progressCallback */);
    }