summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSeth Moore <sethmo@google.com>2021-12-01 14:08:15 -0800
committerSeth Moore <sethmo@google.com>2021-12-01 15:17:00 -0800
commit8f2b1ec094dabc62d4e39ae5760eaa8edbffd2be (patch)
tree8a003173e651869f3ceb86d7bbf81731b55ff6e2 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent3f7426f14e3c3faed035e80de87e0d6ead0af5e8 (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 Merged-In: Ib95b0564aa098157718b8d4a45b11baa69dad71b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions