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 microG enablement Copy and pasted from the GrapheneOS exec spawning toggle patch Change-Id: Ibea6ea9bed1c2ae3491f403d9e5c17c1d1c403f1 Signed-off-by: Tad --- res/values/strings.xml | 3 + res/xml/security_dashboard_settings.xml | 6 + .../settings/security/SecuritySettings.java | 1 + .../SigSpoofPreferenceController.java | 106 ++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 src/com/android/settings/security/SigSpoofPreferenceController.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 6b86c5a12bc..06ab1e345df 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -677,6 +677,9 @@ Disable DNS content blocker Disables use of the included /etc/hosts database for data collection and malware blocking. + 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. + None diff --git a/res/xml/security_dashboard_settings.xml b/res/xml/security_dashboard_settings.xml index db158b72433..604e8720e6f 100644 --- a/res/xml/security_dashboard_settings.xml +++ b/res/xml/security_dashboard_settings.xml @@ -86,6 +86,12 @@ android:title="@string/hosts_disable_title" android:summary="@string/hosts_disable_summary" android:persistent="false" /> + +