From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Tad Date: Wed, 20 Apr 2022 01:04:27 -0400 Subject: [PATCH] Add a toggle for CarrierConfig2 enablement Copy and pasted from the GrapheneOS exec spawning toggle patch TODO: MOVE OUT OF SECURITY CATEGORY Change-Id: Ibea6ea9bed1c2ae3491f403d9e5c17c1d1c403f1 Signed-off-by: Tad --- res/values/strings.xml | 3 + res/xml/security_dashboard_settings.xml | 6 + .../CarrierConfig2PreferenceController.java | 106 ++++++++++++++++++ .../settings/security/SecuritySettings.java | 1 + 4 files changed, 116 insertions(+) create mode 100644 src/com/android/settings/security/CarrierConfig2PreferenceController.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 27c7f9abc7..2543ef0677 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -762,6 +762,9 @@ Enable eUICC management Enables the OpenEUICC app to allow management of virtual (eSIM) and physical eUICC cards. Reboot required after toggling. Requires reboot. + Enable CarrierConfig2 + Use a larger Google database instead of the AOSP database for carrier specific configurations. May improve cellular network compatibility & functionality. Requires reboot. + Lock screen when trust is lost diff --git a/res/xml/security_dashboard_settings.xml b/res/xml/security_dashboard_settings.xml index de90cec5bc..d8766ab41a 100644 --- a/res/xml/security_dashboard_settings.xml +++ b/res/xml/security_dashboard_settings.xml @@ -98,6 +98,12 @@ android:title="@string/openeuicc_title" android:summary="@string/openeuicc_summary" android:persistent="false" /> + +