Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
the problem is when I want to show biometric availability status for the user using BiometricManager.from(context).canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_WEAK). The canAuthenticate() method return BiometricManager.BIOMETRIC_SUCCESS even after all fingerprints are removed from device settings.
ATTACHED APK FILE
This is a sample application to reproduce the defect. Just click button to show text with biometric status. If canAuthenticate() method return BIOMETRIC_SUCCESS it shows "enabled", otherwise "disabled".
BUILD INFO
- Device type: Samsung Galaxy Tab S7+
- OS version: Android 10
- Biometric library version: androidx.biometric:biometric:1.1.0
STEPS TO REPRODUCE
1. Remove all fingerprints from device settings.
2. Use canAuthenticate(BIOMETRIC_WEAK) to check biometric status.
EXPECTED RESULTS
canAuthenticate(BIOMETRIC_WEAK) returns BIOMETRIC_ERROR_NONE_ENROLLED
OBSERVED RESULTS
canAuthenticate(BIOMETRIC_WEAK) returns BIOMETRIC_SUCCESS
NUMBER OF TIMES YOU WERE ABLE TO REPRODUCE
10/10