We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BiometricManager has multiple authentication result:
BIOMETRIC_ERROR_HW_UNAVAILABLE
BIOMETRIC_ERROR_NONE_ENROLLED
BIOMETRIC_ERROR_NO_HARDWARE
BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED
BIOMETRIC_SUCCESS
But Robolectric only supports following results for int canAuthenticate() for Android Q:
int canAuthenticate()
And Robolectric also only supports following results for int canAuthenticate(int userId, int authenticators) from Android R:
int canAuthenticate(int userId, int authenticators)
There are some tests need to use all authenticate result, e.g. androidx's BiometricManagerTest.
BiometricManagerTest
See above.
Latest Robolectric master branch.
Robolectric itself.
The text was updated successfully, but these errors were encountered:
Fixed by #7427.
Sorry, something went wrong.
No branches or pull requests
Description
BiometricManager has multiple authentication result:
BIOMETRIC_ERROR_HW_UNAVAILABLE
.BIOMETRIC_ERROR_NONE_ENROLLED
.BIOMETRIC_ERROR_NO_HARDWARE
.BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED
.BIOMETRIC_SUCCESS
.But Robolectric only supports following results for
int canAuthenticate()
for Android Q:BIOMETRIC_SUCCESS
.BIOMETRIC_ERROR_NO_HARDWARE
.BIOMETRIC_ERROR_HW_UNAVAILABLE
.And Robolectric also only supports following results for
int canAuthenticate(int userId, int authenticators)
from Android R:BIOMETRIC_SUCCESS
.BIOMETRIC_ERROR_NO_HARDWARE
.There are some tests need to use all authenticate result, e.g. androidx's
BiometricManagerTest
.Steps to Reproduce
See above.
Robolectric & Android Version
Latest Robolectric master branch.
Link to a public git repo demonstrating the problem:
Robolectric itself.
The text was updated successfully, but these errors were encountered: