services/core/java/com/android/server/security/authenticationpolicy/AuthenticationPolicyService.java
+43
−4
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
If the settings doesn't exist, set it to the default when the service
is initiated or when switching to new users. This helps populate the
settings values properly for the failed auth lock toggle to show up
initially.
Flag: android.security.failed_auth_lock_toggle
Bug: 414605464
Fix: 423774368
Test: atest AuthenticationPolicyServiceTest
Test: Manually test that the settings is set after factory reset and the
service starts, as well as after switching to new users
Change-Id: Id794d02e10a3e222286449e4464acde21af7a5ff