Fixed
Status Update
Comments
cu...@google.com <cu...@google.com>
ap...@google.com <ap...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Steps to reproduce
What steps are needed to reproduce this issue?
Please provide sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Expected output
What is the expected output?
Current output
What is the current output?
Android bug report capturing
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method
After reproducing the issue, navigate to “developer settings”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the files to google drive and share the folder to android-bugreport@google.com, then share the link here.
Steps to reproduce
What steps are needed to reproduce this issue?
Please provide sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Expected output
What is the expected output?
Current output
What is the current output?
Android bug report capturing
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method
After reproducing the issue, navigate to “developer settings”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the files to google drive and share the folder to android-bugreport@google.com, then share the link here.
cu...@google.com <cu...@google.com> #3
Steps to reproduce
1. Show the biomterics prompt
2. Use the wrong finger to authenticate several times in a row
Frequency
100% of the time
Expected output
The behavior is the same on all api levels
Current output
The behavior differs between api levels as described in the initial report/video
Android bug report capturing
There's no bugs to capture, this is a behavior difference, not a crash
Attached is a sample apk, all it does is show the biometric prompt using the lib
1. Show the biomterics prompt
2. Use the wrong finger to authenticate several times in a row
Frequency
100% of the time
Expected output
The behavior is the same on all api levels
Current output
The behavior differs between api levels as described in the initial report/video
Android bug report capturing
There's no bugs to capture, this is a behavior difference, not a crash
Attached is a sample apk, all it does is show the biometric prompt using the lib
ap...@google.com <ap...@google.com> #4
Attached bug reports
Description
If you show 2
BiometricPrompt
s back-to-back on a Pixel 4 (which uses face unlock), the second prompt will be immediately dismissed. This does not happen on devices that use fingerprint, like a Pixel 2.I've attached a sample project that reproduces the issue. You can configure the delay between the first prompt being dismissed and the second being shown - with a delay of 400ms the issue reliably reproduces, and with a delay of 600ms it does not.
Here's a video of the sample on a Pixel 4:https://i.imgur.com/4sCWOm0.mp4
Here's a video of the sample on a Pixel 2:https://i.imgur.com/5dDI4zO.mp4
I believe it's caused by this , which has a 500ms delay for face unlock and runs after the second prompt has been shown when 2 are shown back-to-back.
postDelayed
Note that this is a bug in the framework, not in the androidx.biometric library, but there doesn't seems to be a relevant component for framework biometrics (and it should be possible to work around this in androidx).
BUILD INFO:
STEPS TO REPRODUCE:
EXPECTED RESULTS: Both prompts work correctly.
OBSERVED RESULTS: The second prompt is immediately dismissed.
NUMBER OF TIMES YOU WERE ABLE TO REPRODUCE: 3/3