From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Dmitry Muhomor Date: Fri, 10 Feb 2023 12:44:30 +0200 Subject: [PATCH] add a toggle for forcibly disabling SUPL --- res/values/strings.xml | 2 + res/xml/location_settings.xml | 7 +++ .../ForceDisableSuplPrefController.java | 45 +++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 src/com/android/settings/location/ForceDisableSuplPrefController.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 60013f0d2f..6e619cc2c4 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -14606,4 +14606,6 @@ Internet connectivity check HTTP endpoints to use for performing internet connectivity checks. + Force disable Secure User Plane Location (SUPL) + Always disable SUPL assisted location support regardless of carrier configuration or emergency call status (does not disable control plane A-GNSS and DivestOS does not send IMSI to the SUPL) diff --git a/res/xml/location_settings.xml b/res/xml/location_settings.xml index 477bbe205d..82ead9887d 100644 --- a/res/xml/location_settings.xml +++ b/res/xml/location_settings.xml @@ -72,6 +72,13 @@ android:title="@string/location_services_preference_title" settings:controller="com.android.settings.location.LocationServicesPreferenceController"/> + + +