Fixed
Status Update
Comments
sp...@google.com <sp...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
Author: Hao Dong <
Link:
Convert ERROR_NOT_ENABLED_FOR_APPS to ERROR_HW_UNAVAILABLE
Expand for full commit details
Convert ERROR_NOT_ENABLED_FOR_APPS to ERROR_HW_UNAVAILABLE
Not enabled for apps error was introduced in api 35 framework for an
internal feature. It was covered by hardware unavailable before. For
backward compatibility, this CL converts ERROR_NOT_ENABLED_FOR_APPS
to ERROR_HW_UNAVAILABLE.
Bug: 386918213
Test: biometric integration test
Test: ./gradlew biometric:biometric:test
Change-Id: Ice99d17108791cf093d033e16c32ccdb43222e4a
Files:
- M
biometric/biometric/src/main/java/androidx/biometric/BiometricFragment.java
- M
biometric/biometric/src/main/java/androidx/biometric/BiometricManager.java
- M
biometric/biometric/src/main/java/androidx/biometric/BiometricPrompt.java
- M
biometric/biometric/src/test/java/androidx/biometric/BiometricManagerTest.java
Hash: d03de02ae793aa7d56a078008ff33f372f578dc9
Date: Tue Mar 04 19:24:27 2025
Description
- Device type: Pixel 6a
- OS version: 15
- Biometric library version: biometric:1.1.0
STEPS TO REPRODUCE
[Be as specific as possible please]
Device configuration
1. enroll a fingerprint
2. turn off "Verify it's you in Apps" switch
App error 1:
3. Call BiometricPrompt.authenticate method
4. log errorCode in the onAuthenticationError(int errorCode, CharSequence errString) {...} method
App error 2:
5. call method biometricManager.canAuthenticate(BIOMETRIC_STRONG) and log returned value
EXPECTED RESULTS
error 1:
Android 15 should log same error code as android <=14: error code 1 (ERROR_HW_UNAVAILABLE)
error 2:
Android 15 should log same error code as android <=14: error code 1 (BIOMETRIC_ERROR_HW_UNAVAILABLE)
OBSERVED RESULTS
error 1:
Android 15 logs error code 8: (ERROR_VENDOR)
error 2:
Android 15 logs error code 21: (Not found in docs)
NUMBER OF TIMES YOU WERE ABLE TO REPRODUCE (e.g. 3/10)
10/10