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

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

Merge "Move lockout to below the HAL"

parents 07960edb 16d891dd
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -240,4 +240,13 @@ interface IBiometricsFace {
     * @return status The status of this method call.
     */
    userActivity() generates (Status status);

    /**
     * Reset lockout for the current user.
     *
     * @param hat A valid Hardware Authentication Token, generated when the
     *     user authenticates with Pin/Pattern/Pass.
     * @return true if lockout was reset, false otherwise.
     */
    resetLockout(vec<uint8_t> hat) generates (bool success);
};
+9 −1
Original line number Diff line number Diff line
@@ -121,13 +121,21 @@ enum FaceError : int32_t {

    /**
     * Face authentication is locked out due to too many unsuccessful attempts.
     * This is a "soft" lockout, and authentication can be restarted after
     * a period of time, generally on the order of 30 seconds.
     */
    LOCKOUT = 7,

    /**
     * Used to enable a vendor-specific error message.
     */
    VENDOR = 8
    VENDOR = 8,

    /**
     * Face authentication is disabled until the user unlocks with strong
     * authentication (PIN/Pattern/Password).
     */
    LOCKOUT_PERMANENT = 9
};

/**