summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2021-12-02 01:26:15 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-12-02 01:26:15 +0000
commit8d221843b767e18c04c82bb972c8bbdfd459742b (patch)
tree606e25df208fe29bbeac07eb2f53a05894a22151
parent32942299d3ecb5405f9d95adad9761763f2e497c (diff)
parentc78e369c4c27004e0a438f10d15e3709ec629619 (diff)
Merge "Fix incorrect SID matching for bio prompts"
-rw-r--r--keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java b/keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java
index 850c55166edc..6fa1a694eb67 100644
--- a/keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java
+++ b/keystore/java/android/security/keystore2/KeyStoreCryptoOperationUtils.java
@@ -89,7 +89,7 @@ abstract class KeyStoreCryptoOperationUtils {
// specific sensor (the one that hasn't changed), and 2) currently the only
// signal to developers is the UserNotAuthenticatedException, which doesn't
// indicate a specific sensor.
- boolean canUnlockViaBiometrics = true;
+ boolean canUnlockViaBiometrics = biometricSids.length > 0;
for (long sid : biometricSids) {
if (!keySids.contains(sid)) {
canUnlockViaBiometrics = false;