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

Commit 3165008c authored by Haining Chen's avatar Haining Chen
Browse files

Add toggle for failed authentication lock

The secure settings disable_adaptive_auth_limit_lock was added to
disable the lock by adaptive auth on debuggable builds via adb. In
prepartion for a user-facing toggle for failed auth lock, this change
does the following:

1. Remove the restriction of debuggable builds
2. Make the behaviors of profiles users consistent with their parent
   users (main users), because the toggle for failed auth lock is for
   main users only. For example, if the lock is enabled for a main user
   (e.g. via the toggle) and is disabled for a profile (e.g. via adb),
   the lock should remain as enabled for the profile. Similarly, if the
   lock is disabled for a main user (e.g. via the toggle) and is enabled
   for a profile (e.g. via adb), the lock should remain as disabled for
   the profile.

Flag: android.security.failed_auth_lock_toggle
Bug: 414605464
Test: atest AuthenticationPolicyServiceTest
Change-Id: I4e2c7e851d296eb4e7600b8e55af693dc661c369
parent 71f68030
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment