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 OpenEUICC 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 + .../OpenEuiccPreferenceController.java | 106 ++++++++++++++++++ .../settings/security/SecuritySettings.java | 1 + 4 files changed, 116 insertions(+) create mode 100644 src/com/android/settings/security/OpenEuiccPreferenceController.java diff --git a/res/values/strings.xml b/res/values/strings.xml index ce056d7ab0..27c7f9abc7 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -759,6 +759,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 eUICC management + Enables the OpenEUICC app to allow management of virtual (eSIM) and physical eUICC cards. Reboot required after toggling. 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 604e8720e6..de90cec5bc 100644 --- a/res/xml/security_dashboard_settings.xml +++ b/res/xml/security_dashboard_settings.xml @@ -92,6 +92,12 @@ android:title="@string/sig_spoof_title" android:summary="@string/sig_spoof_summary" android:persistent="false" /> + +