2022-10-15 07:53:14 -04:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Tue, 14 Apr 2020 17:03:26 -0400
Subject: [PATCH] Remove analytics
Change-Id: Ic01c97d6ceac8d324609763973639b41b4581a76
---
2023-10-07 17:06:10 -04:00
AndroidManifest.xml | 22 ----------------------
2022-10-15 07:53:14 -04:00
proguard.flags | 1 -
res/values/config.xml | 3 ---
res/values/strings.xml | 22 ----------------------
res/xml/parts_catalog.xml | 5 -----
res/xml/trust_preferences.xml | 3 ---
2023-10-07 17:06:10 -04:00
6 files changed, 56 deletions(-)
2022-10-15 07:53:14 -04:00
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
2023-11-09 17:13:44 -05:00
index 44e8323..972ba36 100644
2022-10-15 07:53:14 -04:00
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
2023-11-09 17:13:44 -05:00
@@ -258,28 +258,6 @@
2022-10-15 07:53:14 -04:00
android:resource="@string/summary_empty" />
</activity-alias>
- <!-- Anonymous Statistics -->
2023-10-07 17:06:10 -04:00
- <receiver
- android:name=".lineagestats.ReportingServiceManager"
2022-10-15 07:53:14 -04:00
- android:enabled="true"
- android:exported="false"
- android:label="ReportingServiceManager">
- <intent-filter>
- <action android:name="android.intent.action.BOOT_COMPLETED" />
- <action android:name="org.lineageos.lineageparts.action.TRIGGER_REPORT_METRICS" />
- </intent-filter>
- </receiver>
-
2023-10-07 17:06:10 -04:00
- <service
- android:name=".lineagestats.ReportingService"
- android:enabled="true"
- android:exported="false"
- android:label="ReportingService" />
2022-10-15 07:53:14 -04:00
-
2023-10-07 17:06:10 -04:00
- <service
- android:name=".lineagestats.StatsUploadJobService"
- android:permission="android.permission.BIND_JOB_SERVICE" />
2022-10-15 07:53:14 -04:00
-
2023-10-07 17:06:10 -04:00
<activity
android:name=".profiles.NFCProfile"
android:exported="true">
2022-10-15 07:53:14 -04:00
diff --git a/proguard.flags b/proguard.flags
2023-11-09 17:13:44 -05:00
index cfbdae3..8991f2b 100644
2022-10-15 07:53:14 -04:00
--- a/proguard.flags
+++ b/proguard.flags
2023-11-09 17:13:44 -05:00
@@ -11,7 +11,6 @@
2022-10-15 07:53:14 -04:00
-keep class org.lineageos.lineageparts.gestures.*
-keep class org.lineageos.lineageparts.hardware.*
-keep class org.lineageos.lineageparts.input.*
--keep class org.lineageos.lineageparts.lineagestats.*
-keep class org.lineageos.lineageparts.livedisplay.*
-keep class org.lineageos.lineageparts.notificationlight.*
-keep class org.lineageos.lineageparts.power.*
diff --git a/res/values/config.xml b/res/values/config.xml
2023-11-09 17:13:44 -05:00
index adfcaa4..4c575f2 100644
2022-10-15 07:53:14 -04:00
--- a/res/values/config.xml
+++ b/res/values/config.xml
2023-11-09 17:13:44 -05:00
@@ -6,9 +6,6 @@
-->
2022-10-15 07:53:14 -04:00
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
- <!-- Metrics server endpoint -->
- <string name="stats_lineage_url">https://stats.lineageos.org/api/v1/stats</string>
-
<!-- Default action ids for a device's touchscreen gestures
The array should be sorted in the same order as the
touchscreen gestures advertised by the device's LineageHW impl. -->
diff --git a/res/values/strings.xml b/res/values/strings.xml
2023-11-09 17:13:44 -05:00
index 0358a7e..f6c27fc 100644
2022-10-15 07:53:14 -04:00
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
2023-11-09 17:13:44 -05:00
@@ -543,28 +543,6 @@
2022-10-15 07:53:14 -04:00
<b>Total commits:</b> <xliff:g id="total_commits">%2$s</xliff:g><br/><br/>
<b>Last update:</b> <xliff:g id="date">%3$s</xliff:g>]]></string>
- <!-- Anonymous Statistics #Lineage -->
- <!-- About device screen, list item title. Takes the user to the screen about opting in or out of anonymous statistics. -->
- <string name="anonymous_statistics_title">LineageOS statistics</string>
- <string name="anonymous_statistics_summary">Help make LineageOS better by opting into anonymous statistics reporting</string>
- <string name="anonymous_statistics_warning_title">About</string>
- <string name="anonymous_statistics_warning">Opting into LineageOS Statistics will allow non-personal data to be submitted to the
- developers of LineageOS to track unique installations across devices. The information submitted includes an unique identifier,
- which does not compromise your privacy or personal data. The data is submitted during each boot.\n\nFor an example of the data that is submitted, tap on Preview Data.</string>
- <string name="enable_reporting_title">Enable reporting</string>
- <string name="preview_data_title">Preview data</string>
- <string name="view_stats_title">View stats</string>
- <string name="anonymous_learn_more">Learn more</string>
-
- <!-- Anonymous Statistics - Preview -->
- <string name="preview_id_title">Unique ID</string>
- <string name="preview_device_title">Device</string>
- <string name="preview_version_title">Version</string>
- <string name="preview_country_title">Country</string>
- <string name="preview_carrier_title">Carrier</string>
- <string name="stats_collection_title">Stats collection</string>
- <string name="stats_collection_summary">Allow installation metrics and device statistics to be collected</string>
-
<!-- Display : Rotation -->
<string name="accelerometer_title">Auto-rotate screen</string>
<string name="display_rotation_title">Rotation settings</string>
diff --git a/res/xml/parts_catalog.xml b/res/xml/parts_catalog.xml
2023-11-09 17:13:44 -05:00
index d6b19c0..e356517 100644
2022-10-15 07:53:14 -04:00
--- a/res/xml/parts_catalog.xml
+++ b/res/xml/parts_catalog.xml
2023-11-09 17:13:44 -05:00
@@ -64,11 +64,6 @@
2022-10-15 07:53:14 -04:00
android:fragment="org.lineageos.lineageparts.statusbar.StatusBarSettings"
lineage:xmlRes="@xml/status_bar_settings" />
- <part android:key="lineagestats"
- android:title="@string/anonymous_statistics_title"
- android:fragment="org.lineageos.lineageparts.lineagestats.AnonymousStats"
- lineage:xmlRes="@xml/anonymous_stats" />
-
<part android:key="power_menu"
android:title="@string/power_menu_title"
android:fragment="org.lineageos.lineageparts.input.PowerMenuActions"
diff --git a/res/xml/trust_preferences.xml b/res/xml/trust_preferences.xml
2023-11-09 17:13:44 -05:00
index f28a305..5b62c73 100644
2022-10-15 07:53:14 -04:00
--- a/res/xml/trust_preferences.xml
+++ b/res/xml/trust_preferences.xml
2023-11-09 17:13:44 -05:00
@@ -36,9 +36,6 @@
2022-10-15 07:53:14 -04:00
android:entryValues="@array/trust_restrict_usb_values"
android:defaultValue="0" />
- <lineageos.preference.LineagePartsPreference
- android:key="lineagestats" />
-
<ListPreference
android:key="sms_security_check_limit"
android:defaultValue="30"