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

Commit c981b8cf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add timeout parameter to generateChallenge"

parents 9aa4b469 e46a2162
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ public class FaceService extends BiometricServiceBase {
            "com.android.server.biometrics.face.ACTION_LOCKOUT_RESET";
    private static final int MAX_FAILED_ATTEMPTS_LOCKOUT_TIMED = 3;
    private static final int MAX_FAILED_ATTEMPTS_LOCKOUT_PERMANENT = 12;
    private static final int CHALLENGE_TIMEOUT_SEC = 600; // 10 minutes

    private final class FaceAuthClient extends AuthenticationClientImpl {
        public FaceAuthClient(Context context,
@@ -785,7 +786,7 @@ public class FaceService extends BiometricServiceBase {
            return 0;
        }
        try {
            return daemon.generateChallenge().value;
            return daemon.generateChallenge(CHALLENGE_TIMEOUT_SEC).value;
        } catch (RemoteException e) {
            Slog.e(TAG, "startPreEnroll failed", e);
        }