Merge "Fix incorrect SID matching for bio prompts"

This commit is contained in:
Treehugger Robot
2021-12-02 01:26:15 +00:00
committed by Gerrit Code Review

View File

@@ -89,7 +89,7 @@ abstract class KeyStoreCryptoOperationUtils {
// specific sensor (the one that hasn't changed), and 2) currently the only // specific sensor (the one that hasn't changed), and 2) currently the only
// signal to developers is the UserNotAuthenticatedException, which doesn't // signal to developers is the UserNotAuthenticatedException, which doesn't
// indicate a specific sensor. // indicate a specific sensor.
boolean canUnlockViaBiometrics = true; boolean canUnlockViaBiometrics = biometricSids.length > 0;
for (long sid : biometricSids) { for (long sid : biometricSids) {
if (!keySids.contains(sid)) { if (!keySids.contains(sid)) {
canUnlockViaBiometrics = false; canUnlockViaBiometrics = false;