A
A
Alexey Vinogradov2021-08-30 10:20:39
Java
Alexey Vinogradov, 2021-08-30 10:20:39

How to check the status of the biometric sensor without raising authorization?

Hello! I need to find out if biometrics is blocked before it is raised
The android documentation has a method biometricManager.canAuthenticate();
It returns can return:
BIOMETRIC_ERROR_NO_HARDWARE
BIOMETRIC_ERROR_HW_UNAVAILABLE
BIOMETRIC_ERROR_NONE_ENROLLED
BIOMETRIC_ERROR_HW_UNAVAILABLE
BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED
BIOMETRIC_SUCCESS
And there is no information about the sensor being locked, but if you suddenly try to raise the sensor, it is locked.

biometricPrompt.authenticate(...) we will get ERROR_LOCKOUT or ERROR_LOCKOUT_PERMANENT errors The

question is, is there a way to check the state of the sensor before the biometric was raised?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question