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

Commit 16d891dd authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Move lockout to below the HAL

Fixes: 120630211

Test: builds
Change-Id: I87ae317110d0ef6cf5b82afe6ee7724527f9f64e
parent 6fe8120f
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
};

/**