2021-10-16 14:05:45 -04:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-05-21 05:28:07 -04:00
|
|
|
From: Tad <tad@spotco.us>
|
|
|
|
Date: Mon, 21 May 2018 04:23:40 -0400
|
|
|
|
Subject: [PATCH] Disable/reduce functionality of various ad/analytics
|
|
|
|
libraries
|
|
|
|
|
|
|
|
Change-Id: I84303ee26d0232e471f44ae6eff6e41a2210e42e
|
|
|
|
---
|
2021-10-16 14:05:45 -04:00
|
|
|
core/java/android/content/pm/PackageParser.java | 14 ++++++++++++++
|
|
|
|
1 file changed, 14 insertions(+)
|
2018-05-21 05:28:07 -04:00
|
|
|
|
|
|
|
diff --git a/core/java/android/content/pm/PackageParser.java b/core/java/android/content/pm/PackageParser.java
|
2021-10-16 14:05:45 -04:00
|
|
|
index 8c66fb227cf9..a5c783597b34 100644
|
2018-05-21 05:28:07 -04:00
|
|
|
--- a/core/java/android/content/pm/PackageParser.java
|
|
|
|
+++ b/core/java/android/content/pm/PackageParser.java
|
2021-08-27 13:46:11 -04:00
|
|
|
@@ -5524,6 +5524,20 @@ public class PackageParser {
|
2018-05-21 05:28:07 -04:00
|
|
|
|
|
|
|
if (data == null) {
|
|
|
|
data = new Bundle();
|
2021-09-13 15:27:13 -04:00
|
|
|
+ data.putString("batch_opted_out_by_default", "true");
|
|
|
|
+ data.putString("com.ad4screen.no_geoloc", "true");
|
|
|
|
+ data.putString("com.facebook.sdk.AutoLogAppEventsEnabled", "false");
|
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.UseIpAddressForGeolocation", "false");
|
|
|
|
+ data.putString("com.webengage.sdk.android.location_tracking", "false");
|
|
|
|
+ data.putString("firebase_analytics_collection_deactivated", "true");
|
|
|
|
+ data.putString("firebase_analytics_collection_enabled", "false");
|
|
|
|
+ data.putString("firebase_crash_collection_enabled", "false");
|
|
|
|
+ data.putString("firebase_performance_collection_deactivated", "true");
|
|
|
|
+ data.putString("google_analytics_adid_collection_enabled", "false");
|
|
|
|
+ data.putString("google_analytics_ssaid_collection_enabled", "false");
|
|
|
|
+ data.putString("google_analytics_default_allow_ad_personalization_signals", "false");
|
2018-05-21 05:28:07 -04:00
|
|
|
+ data.putString("com.ad4screen.tracking_mode", "Restricted");
|
|
|
|
+ data.putString("com.sprooki.LOCATION_SERVICES", "disable");
|
|
|
|
}
|
|
|
|
|
|
|
|
String name = sa.getNonConfigurationString(
|