Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8c415bc8 authored by burakov's avatar burakov
Browse files

[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
parent ce930181
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment