DivestOS/Patches/LineageOS-17.1/android_frameworks_base/0006-Disable_Analytics.patch
Tad a9f44dee41 Fix hamper analytics patches
These must all be strings.
Sadly meant this likely hasn't worked for years.
:\

Signed-off-by: Tad <tad@spotco.us>
2021-09-13 15:27:29 -04:00

40 lines
1.9 KiB
Diff

From 5b59a2cf8028488847a5cd6ac7d4a14414972438 Mon Sep 17 00:00:00 2001
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
---
core/java/android/content/pm/PackageParser.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/core/java/android/content/pm/PackageParser.java b/core/java/android/content/pm/PackageParser.java
index 8c66fb227cf..31368bf74b1 100644
--- a/core/java/android/content/pm/PackageParser.java
+++ b/core/java/android/content/pm/PackageParser.java
@@ -5524,6 +5524,20 @@ public class PackageParser {
if (data == null) {
data = new Bundle();
+ 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");
+ data.putString("com.ad4screen.tracking_mode", "Restricted");
+ data.putString("com.sprooki.LOCATION_SERVICES", "disable");
}
String name = sa.getNonConfigurationString(
--
2.17.0