summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author burakov <burakov@google.com> 2023-12-15 17:39:26 +0000
committer burakov <burakov@google.com> 2023-12-27 22:56:00 +0000
commit8c415bc832e31dea9f58441b52c3470f60160327 (patch)
treea695c19089734561057fd0a622fb5a132016ab44 /libs/androidfw/ResourceTimer.cpp
parentce9301814b694351c25ad7af346b51ef4468dd47 (diff)
[flexiglass] Wipe dialog + more refactoring of Auth/Bouncer code.
Some users have a `DevicePolicyManager` that requires the user/profile/device data to be wiped after N unsuccessful authentication attempts. Once a grace period is reached, we start showing a dialog on every failed authentication attempt as a clear warning, until the wipe begins. Additional changes in this CL include: 1. Refactor the `authenticate()` function to be easier to follow, e.g. by extracting the skipping check into `shouldSkipAuthenticationAttempt`. 2. Add support for multiple dialogs being shown in the bouncer, one after the other. 3. Change the generic term `errorMessage` in the bouncer code to be `wrongInputMessage`, which is more accurate and descriptive. 4. Misc minor refactorings. Fix: 306559035 Fix: 314757822 Test: Added unit tests. Flag: ACONFIG com.android.systemui.scene_container DEVELOPMENT Change-Id: I7f1a785228704e73052b16834996aa06c36d130d
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions