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
Loading
Please register or sign in to comment