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 6191f0a147..1d46451503 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -13136,6 +13136,9 @@ Unprivileged microG enablement Allows official builds of microG apps to function. Not supported, not recommended. May break apps and/or degrade their security model. Notes: 1) microG connects directly to Google, 2) apps talking to microG do so using proprietary Google libraries, 3) microG can download/execute proprietary code from Google. + Enable CarrierConfig2 + Use a larger Google database instead of the AOSP database for carrier specific configurations. May improve cellular network compatibility & functionality. Requires reboot. + Privacy diff --git a/res/xml/security_dashboard_settings.xml b/res/xml/security_dashboard_settings.xml index f5384fa104..0a18a8b8a7 100644 --- a/res/xml/security_dashboard_settings.xml +++ b/res/xml/security_dashboard_settings.xml @@ -87,6 +87,12 @@ android:summary="@string/sig_spoof_summary" android:persistent="false" /> + +