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 1be8ea0677..6191f0a147 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -13133,6 +13133,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. + Privacy diff --git a/res/xml/security_dashboard_settings.xml b/res/xml/security_dashboard_settings.xml index 011f6e1117..f5384fa104 100644 --- a/res/xml/security_dashboard_settings.xml +++ b/res/xml/security_dashboard_settings.xml @@ -81,6 +81,12 @@ android:summary="@string/hosts_disable_summary" android:persistent="false" /> + +