summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Aaron Liu <aaronjli@google.com> 2023-06-14 13:45:54 -0700
committer Aaron Liu <aaronjli@google.com> 2023-06-14 21:44:49 +0000
commitaa79ca1bde95b359ebc002294e1d477c68334e8d (patch)
treead50ba768eb41a836a21a68f492d9c0b72d21c24 /libs/androidfw/ObbFile.cpp
parent205c965ce217c9d770306d50a421a8246f76b530 (diff)
Ensure that input is disabled when locked out.
In the password security method, if we are locked out, one can use the ime enter button to invoke #verifyPasswordAndUnlock which sets setPasswordEntryInputEnabled(true). This allows the user to input a password and bypass the security screen when locked out. The solution is to ensure that setPasswordEntryInputEnabled(false) when locked out to prevent any input at all in the text field. Additionally, we cache the locked out state and use this as a condition to proceed or not when verifying the password to unlock. Fixes: 284441628 Test: tested lockout with password, pin, and pattern, with power cycling and doing various inputs. Test: added a unit test Change-Id: Iceb71eb2a79e14e3c62f7ac63c3c06275af0cecf
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions