summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Seth Moore <sethmo@google.com> 2021-12-01 14:08:15 -0800
committer Seth Moore <sethmo@google.com> 2021-12-01 14:59:24 -0800
commitc78e369c4c27004e0a438f10d15e3709ec629619 (patch)
treef55f45aa425c3f9efcbb52128a59bd8de5868e3a /cmds/bootanimation/BootAnimation.cpp
parent1e6ac5e1ff5ae3789ac888193b29d1769d403be0 (diff)
Fix incorrect SID matching for bio prompts
The default value for canUnlockViaBiometrics, which determines if we are able to show a bio prompt, is true. However, if there are 0 biometric authenticator IDs, then it's impossible for the user to satisfy a bio prompt. In this case, we should set canUnlockViaBiometrics to false. The loop that is normally expected to invert canUnlockViaBiometrics was never run in the case of 0 bio authenticator ids, so we mistakenly let the crypto init operation succeed when we should have blocked it. Bug: 188864794 Test: Manual, using sample app that displays a biometric prompt. Change-Id: Ib95b0564aa098157718b8d4a45b11baa69dad71b
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions