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
|
|
|
|
---
|
2022-01-11 06:27:50 -05:00
|
|
|
.../android/content/pm/PackageParser.java | 56 +++++++++++++++++++
|
|
|
|
1 file changed, 56 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
|
2022-01-11 06:27:50 -05:00
|
|
|
index 8c66fb227cf9..4421c0ca5115 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-12-27 23:24:03 -05:00
|
|
|
@@ -5524,6 +5524,62 @@ public class PackageParser {
|
2018-05-21 05:28:07 -04:00
|
|
|
|
|
|
|
if (data == null) {
|
|
|
|
data = new Bundle();
|
2021-12-27 17:31:15 -05:00
|
|
|
+ data.putString("acc_advertiser_id", "false");
|
|
|
|
+ data.putString("acc_no_geoloc", "true");
|
|
|
|
+ data.putString("acc_tracking_mode", "Restricted");
|
|
|
|
+ data.putString("android.webkit.WebView.MetricsOptOut", "true");
|
|
|
|
+ data.putString("AXACollectIp", "false");
|
2021-09-13 15:27:13 -04:00
|
|
|
+ data.putString("batch_opted_out_by_default", "true");
|
2021-12-27 18:16:42 -05:00
|
|
|
+ data.putString("CLEVERTAP_BACKGROUND_SYNC", "0");
|
|
|
|
+ data.putString("CLEVERTAP_USE_GOOGLE_AD_ID", "0");
|
2021-12-27 17:31:15 -05:00
|
|
|
+ data.putString("com.ad4screen.advertiser_id", "false");
|
2021-09-13 15:27:13 -04:00
|
|
|
+ data.putString("com.ad4screen.no_geoloc", "true");
|
2021-12-27 17:31:15 -05:00
|
|
|
+ data.putString("com.ad4screen.tracking_mode", "Restricted");
|
|
|
|
+ data.putString("com.bugsnag.android.AUTO_CAPTURE_SESSIONS", "false");
|
|
|
|
+ data.putString("com.bugsnag.android.AUTO_DETECT_ERRORS", "false");
|
|
|
|
+ data.putString("com.bugsnag.android.AUTO_TRACK_SESSIONS", "false");
|
|
|
|
+ data.putString("com.bugsnag.android.DETECT_ANR", "false");
|
|
|
|
+ data.putString("com.bugsnag.android.DETECT_NDK_CRASHES", "false");
|
|
|
|
+ data.putString("com.bugsnag.android.ENABLE_EXCEPTION_HANDLER", "false");
|
|
|
|
+ data.putString("com.bugsnag.android.PERSIST_USER_BETWEEN_SESSIONS", "false");
|
|
|
|
+ data.putString("com.bugsnag.android.PERSIST_USER", "false");
|
|
|
|
+ data.putString("com.bugsnag.android.SEND_THREADS", "NEVER");
|
|
|
|
+ data.putString("com.facebook.sdk.AdvertiserIDCollectionEnabled", "false");
|
|
|
|
+ data.putString("com.facebook.sdk.AutoInitEnabled", "false");
|
2021-09-13 15:27:13 -04:00
|
|
|
+ data.putString("com.facebook.sdk.AutoLogAppEventsEnabled", "false");
|
2021-12-27 17:31:15 -05:00
|
|
|
+ data.putString("com.followanalytics.message.inapp.enable", "false");
|
|
|
|
+ data.putString("com.followanalytics.message.push.enable", "false");
|
|
|
|
+ data.putString("com.google.android.gms.ads.AD_MANAGER_APP", "false");
|
2021-12-27 23:24:03 -05:00
|
|
|
+ data.putString("com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT", "true");
|
2021-12-27 17:31:15 -05:00
|
|
|
+ data.putString("com.mapbox.EnableEvents", "false");
|
|
|
|
+ data.putString("com.microsoft.engagementinsights.autoCapture", "false");
|
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.AutoCheckForSurveys", "false");
|
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.AutoShowMixpanelUpdates", "false");
|
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.DisableAppOpenEvent", "true");
|
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.DisableDecideChecker", "true");
|
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.DisableExceptionHandler", "true");
|
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.DisableFallback", "true");
|
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.DisableViewCrawler", "true");
|
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.TestMode", "true");
|
2021-09-13 15:27:13 -04:00
|
|
|
+ data.putString("com.mixpanel.android.MPConfig.UseIpAddressForGeolocation", "false");
|
2021-12-27 17:31:15 -05:00
|
|
|
+ data.putString("com.sprooki.LOCATION_SERVICES", "disable");
|
2021-09-13 15:27:13 -04:00
|
|
|
+ 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");
|
2021-12-27 23:24:03 -05:00
|
|
|
+ data.putString("firebase_crashlytics_collection_enabled", "false");
|
2021-09-13 15:27:13 -04:00
|
|
|
+ data.putString("firebase_performance_collection_deactivated", "true");
|
|
|
|
+ data.putString("google_analytics_adid_collection_enabled", "false");
|
2021-12-27 17:31:15 -05:00
|
|
|
+ data.putString("google_analytics_automatic_screen_reporting_enabled", "false");
|
2021-09-13 15:27:13 -04:00
|
|
|
+ data.putString("google_analytics_default_allow_ad_personalization_signals", "false");
|
2021-12-27 17:31:15 -05:00
|
|
|
+ data.putString("google_analytics_ssaid_collection_enabled", "false");
|
|
|
|
+ data.putString("SMT_USE_AD_ID", "0");
|
|
|
|
+ data.putString("tapjoy.disable_advertising_id_check", "true");
|
|
|
|
+ data.putString("tapjoy.disable_android_id_as_analytics_id", "true");
|
|
|
|
+ data.putString("tapjoy.disable_automatic_session_tracking", "true");
|
|
|
|
+ data.putString("tapjoy.disable_persistent_ids", "true");
|
|
|
|
+ data.putString("tapjoy.disable_video_offers", "true");
|
|
|
|
+ data.putString("tnkad_tracking", "false");
|
2018-05-21 05:28:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
String name = sa.getNonConfigurationString(
|