[Autofill Auth][Clank] Add isBiometricAvailable check when showing toggle
We use BiometricManager to check whether there is an enrolled biometric. For backward compatibility, we use FingerprintManagerCompat to check enrolled fingerprint. We won't show the FIDO authentication toggle when biometric is not available. The BiometricManager requires USE_BIOMETRIC permission, which is a NORMAL permission (auto-granted when installation, can not be revoked by user, and won't prompt dialog to the user to ask for permission). Local tested video (Googlers only): https://drive.google.com/a/google.com/file/d/1xP46WY3u73cxKvrCGM_5AfbaX5xcgUG-/view?usp=sharing Bug: 949269 Change-Id: I8f7f4f5df98bc81731a6fdbeefb5674331695ca9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2039973 Commit-Queue: Sujie Zhu <sujiezhu@google.com> Reviewed-by:Manas Verma <manasverma@google.com> Reviewed-by:
sebsg <sebsg@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Reviewed-by:
Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by:
Jared Saul <jsaul@google.com> Cr-Commit-Position: refs/heads/master@{#739461}
Showing
Please register or sign in to comment