From c4ec19acfa3a34c91befde1de8ee13a4533a77d3 Mon Sep 17 00:00:00 2001 From: Jan Tomljanovic Date: Thu, 21 Dec 2023 13:54:03 +0000 Subject: [PATCH] Protect "Lock after timeout" page with an auth challenge. Test: manual Bug: 315937886 Change-Id: Ib3da9f783892828c0c9cfdc4ebb27b2d982e5274 --- ...ettings_security_flag_declarations.aconfig | 8 ++++ res/xml/screen_lock_settings.xml | 2 +- .../ProtectedTimeoutListPreference.java | 40 +++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 aconfig/settings_security_flag_declarations.aconfig create mode 100644 src/com/android/settings/security/screenlock/ProtectedTimeoutListPreference.java diff --git a/aconfig/settings_security_flag_declarations.aconfig b/aconfig/settings_security_flag_declarations.aconfig new file mode 100644 index 00000000000..42ef4d03e5b --- /dev/null +++ b/aconfig/settings_security_flag_declarations.aconfig @@ -0,0 +1,8 @@ +package: "com.android.settings.flags" + +flag { + name: "protect_lock_after_timeout_with_auth" + namespace: "safety_center" + description: "Require an auth challenge to open Lock after timeout page" + bug: "315937886" +} diff --git a/res/xml/screen_lock_settings.xml b/res/xml/screen_lock_settings.xml index 3f732b957dd..19061d9b855 100644 --- a/res/xml/screen_lock_settings.xml +++ b/res/xml/screen_lock_settings.xml @@ -40,7 +40,7 @@ -