Add API constant for BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED
Bug: 148419762 Test: make -j Test: See next CL Change-Id: I3c272792fe2366239478aa3ad7bfbb8d9bbacf56
This commit is contained in:
@@ -131,6 +131,14 @@ public interface BiometricConstants {
|
||||
*/
|
||||
int BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL = 14;
|
||||
|
||||
/**
|
||||
* A security vulnerability has been discovered and the sensor is unavailable until a
|
||||
* security update has addressed this issue. This error can be received if for example,
|
||||
* authentication was requested with {@link Authenticators#BIOMETRIC_STRONG}, but the
|
||||
* sensor's strength can currently only meet {@link Authenticators#BIOMETRIC_WEAK}.
|
||||
*/
|
||||
int BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED = 15;
|
||||
|
||||
/**
|
||||
* This constant is only used by SystemUI. It notifies SystemUI that authentication was paused
|
||||
* because the authentication attempt was unsuccessful.
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
package android.hardware.biometrics;
|
||||
|
||||
import android.app.KeyguardManager;
|
||||
import android.hardware.biometrics.BiometricManager.Authenticators;
|
||||
import android.hardware.face.FaceManager;
|
||||
|
||||
/**
|
||||
@@ -141,6 +142,15 @@ public interface BiometricFaceConstants {
|
||||
*/
|
||||
public static final int BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL = 14;
|
||||
|
||||
/**
|
||||
* A security vulnerability has been discovered and the sensor is unavailable until a
|
||||
* security update has addressed this issue. This error can be received if for example,
|
||||
* authentication was requested with {@link Authenticators#BIOMETRIC_STRONG}, but the
|
||||
* sensor's strength can currently only meet {@link Authenticators#BIOMETRIC_WEAK}.
|
||||
* @hide
|
||||
*/
|
||||
int BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED = 15;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.hardware.biometrics;
|
||||
|
||||
import android.app.KeyguardManager;
|
||||
import android.compat.annotation.UnsupportedAppUsage;
|
||||
import android.hardware.biometrics.BiometricManager.Authenticators;
|
||||
import android.hardware.fingerprint.FingerprintManager;
|
||||
|
||||
/**
|
||||
@@ -127,6 +128,15 @@ public interface BiometricFingerprintConstants {
|
||||
*/
|
||||
public static final int BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL = 14;
|
||||
|
||||
/**
|
||||
* A security vulnerability has been discovered and the sensor is unavailable until a
|
||||
* security update has addressed this issue. This error can be received if for example,
|
||||
* authentication was requested with {@link Authenticators#BIOMETRIC_STRONG}, but the
|
||||
* sensor's strength can currently only meet {@link Authenticators#BIOMETRIC_WEAK}.
|
||||
* @hide
|
||||
*/
|
||||
public static final int BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED = 15;
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
|
||||
@@ -61,10 +61,20 @@ public class BiometricManager {
|
||||
public static final int BIOMETRIC_ERROR_NO_HARDWARE =
|
||||
BiometricConstants.BIOMETRIC_ERROR_HW_NOT_PRESENT;
|
||||
|
||||
/**
|
||||
* A security vulnerability has been discovered and the sensor is unavailable until a
|
||||
* security update has addressed this issue. This error can be received if for example,
|
||||
* authentication was requested with {@link Authenticators#BIOMETRIC_STRONG}, but the
|
||||
* sensor's strength can currently only meet {@link Authenticators#BIOMETRIC_WEAK}.
|
||||
*/
|
||||
public static final int BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED =
|
||||
BiometricConstants.BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED;
|
||||
|
||||
@IntDef({BIOMETRIC_SUCCESS,
|
||||
BIOMETRIC_ERROR_HW_UNAVAILABLE,
|
||||
BIOMETRIC_ERROR_NONE_ENROLLED,
|
||||
BIOMETRIC_ERROR_NO_HARDWARE})
|
||||
BIOMETRIC_ERROR_NO_HARDWARE,
|
||||
BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED})
|
||||
@interface BiometricError {}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user