mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-06 17:42:25 +00:00
41 lines
1.8 KiB
Diff
41 lines
1.8 KiB
Diff
![]() |
From 13951789b89251be432612b288020fdcb9e079fa Mon Sep 17 00:00:00 2001
|
||
|
From: MSe1969 <mse1969@posteo.de>
|
||
|
Date: Mon, 29 Oct 2018 12:14:17 +0100
|
||
|
Subject: [PATCH] SUPL: Don't send IMSI / Phone number to SUPL server
|
||
|
|
||
|
Change-Id: I5ccc4d61e52ac11ef33f44618d0e610089885b87
|
||
|
---
|
||
|
.../android/server/location/GnssLocationProvider.java | 9 +++++++--
|
||
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/services/core/java/com/android/server/location/GnssLocationProvider.java b/services/core/java/com/android/server/location/GnssLocationProvider.java
|
||
|
index 342e9b8c300..537e02d8e39 100644
|
||
|
--- a/services/core/java/com/android/server/location/GnssLocationProvider.java
|
||
|
+++ b/services/core/java/com/android/server/location/GnssLocationProvider.java
|
||
|
@@ -1934,7 +1934,12 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
|
||
|
mContext.getSystemService(Context.TELEPHONY_SERVICE);
|
||
|
int type = AGPS_SETID_TYPE_NONE;
|
||
|
String setId = null;
|
||
|
-
|
||
|
+
|
||
|
+ /*
|
||
|
+ * We don't want to tell Google our IMSI or phone number to spy on us!
|
||
|
+ * As devices w/o SIM card also have working GPS, providing this data does
|
||
|
+ * not seem to add a lot of value, at least not for the device holder
|
||
|
+ *
|
||
|
int ddSubId = SubscriptionManager.getDefaultDataSubscriptionId();
|
||
|
if ((flags & AGPS_RIL_REQUEST_SETID_IMSI) == AGPS_RIL_REQUEST_SETID_IMSI) {
|
||
|
if (SubscriptionManager.isValidSubscriptionId(ddSubId)) {
|
||
|
@@ -1958,7 +1963,7 @@ public class GnssLocationProvider extends AbstractLocationProvider implements
|
||
|
// This means the framework has the SIM card.
|
||
|
type = AGPS_SETID_TYPE_MSISDN;
|
||
|
}
|
||
|
- }
|
||
|
+ } */
|
||
|
|
||
|
native_agps_set_id(type, (setId == null) ? "" : setId);
|
||
|
}
|
||
|
--
|
||
|
2.26.0
|
||
|
|