mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-20 21:34:24 -05:00
147 lines
6.3 KiB
Diff
147 lines
6.3 KiB
Diff
From 911b31c6e3cf5783d047de59a085de369ebf5779 Mon Sep 17 00:00:00 2001
|
|
From: Tad <tad@spotco.us>
|
|
Date: Wed, 8 Feb 2017 15:05:02 -0500
|
|
Subject: [PATCH] Remove analytics
|
|
|
|
Change-Id: Ic01c97d6ceac8d324609763973639b41b4581a76
|
|
---
|
|
AndroidManifest.xml | 25 -------------------------
|
|
proguard.flags | 1 -
|
|
res/values/config.xml | 3 ---
|
|
res/values/strings.xml | 22 ----------------------
|
|
res/xml/parts_catalog.xml | 5 -----
|
|
res/xml/privacy_settings.xml | 8 --------
|
|
6 files changed, 64 deletions(-)
|
|
|
|
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
|
|
index 3c58c3f..914a9df 100644
|
|
--- a/AndroidManifest.xml
|
|
+++ b/AndroidManifest.xml
|
|
@@ -183,31 +183,6 @@
|
|
android:value="status_bar_settings" />
|
|
</activity-alias>
|
|
|
|
- <!-- Anonymous Statistics -->
|
|
- <receiver android:name=".cmstats.ReportingServiceManager"
|
|
- android:enabled="true"
|
|
- android:exported="false"
|
|
- android:label="ReportingServiceManager">
|
|
- <intent-filter>
|
|
- <action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
- <action android:name="org.cyanogenmod.cmparts.action.TRIGGER_REPORT_METRICS" />
|
|
- </intent-filter>
|
|
- </receiver>
|
|
-
|
|
- <service android:label="ReportingService"
|
|
- android:enabled="true"
|
|
- android:exported="false"
|
|
- android:name=".cmstats.ReportingService">
|
|
- </service>
|
|
-
|
|
- <service android:name=".cmstats.StatsUploadJobService"
|
|
- android:permission="android.permission.BIND_JOB_SERVICE" />
|
|
-
|
|
- <service android:name=".cmstats.ReportingService"
|
|
- android:label="ReportingService"
|
|
- android:enabled="true"
|
|
- android:exported="false" />
|
|
-
|
|
<!-- Weather settings -->
|
|
<activity-alias
|
|
android:name=".weather.WeatherServiceSettings"
|
|
diff --git a/proguard.flags b/proguard.flags
|
|
index 733d5d9..58addff 100644
|
|
--- a/proguard.flags
|
|
+++ b/proguard.flags
|
|
@@ -3,7 +3,6 @@
|
|
-keep class org.cyanogenmod.cmparts.*Picker
|
|
-keep class org.cyanogenmod.cmparts.*Settings
|
|
|
|
--keep class org.cyanogenmod.cmparts.cmstats.*
|
|
-keep class org.cyanogenmod.cmparts.contributors.*
|
|
-keep class org.cyanogenmod.cmparts.hardware.*
|
|
-keep class org.cyanogenmod.cmparts.input.*
|
|
diff --git a/res/values/config.xml b/res/values/config.xml
|
|
index 2980816..a5729c6 100644
|
|
--- a/res/values/config.xml
|
|
+++ b/res/values/config.xml
|
|
@@ -17,9 +17,6 @@
|
|
|
|
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
|
|
|
- <!-- Metrics server endpoint -->
|
|
- <string name="stats_cm_url">https://stats.lineageos.org/api/v1/stats</string>
|
|
-
|
|
<!-- When true, weather options will be displayed in settings dashboard -->
|
|
<bool name="config_showWeatherMenu">true</bool>
|
|
|
|
diff --git a/res/values/strings.xml b/res/values/strings.xml
|
|
index c13655e..6891213 100644
|
|
--- a/res/values/strings.xml
|
|
+++ b/res/values/strings.xml
|
|
@@ -482,28 +482,6 @@
|
|
<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 #CM -->
|
|
- <!-- 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
|
|
index 71328eb..347f8e2 100644
|
|
--- a/res/xml/parts_catalog.xml
|
|
+++ b/res/xml/parts_catalog.xml
|
|
@@ -74,11 +74,6 @@
|
|
android:fragment="org.cyanogenmod.cmparts.statusbar.StatusBarSettings"
|
|
cm:xmlRes="@xml/status_bar_settings" />
|
|
|
|
- <part android:key="cmstats"
|
|
- android:title="@string/anonymous_statistics_title"
|
|
- android:fragment="org.cyanogenmod.cmparts.cmstats.AnonymousStats"
|
|
- cm:xmlRes="@xml/anonymous_stats" />
|
|
-
|
|
<part android:key="power_menu"
|
|
android:title="@string/power_menu_title"
|
|
android:fragment="org.cyanogenmod.cmparts.input.PowerMenuActions"
|
|
diff --git a/res/xml/privacy_settings.xml b/res/xml/privacy_settings.xml
|
|
index 5ae923a..45df2a1 100644
|
|
--- a/res/xml/privacy_settings.xml
|
|
+++ b/res/xml/privacy_settings.xml
|
|
@@ -36,12 +36,4 @@
|
|
android:targetClass="com.android.settings.applications.ProtectedAppsActivity" />
|
|
</Preference>
|
|
|
|
- <!-- Anonymous statistics - (CMStats) -->
|
|
- <PreferenceScreen
|
|
- android:key="cmstats"
|
|
- android:title="@string/anonymous_statistics_title"
|
|
- android:summary="@string/anonymous_statistics_summary"
|
|
- android:fragment="org.cyanogenmod.cmparts.cmstats.AnonymousStats" >
|
|
- </PreferenceScreen>
|
|
-
|
|
</PreferenceScreen>
|
|
--
|
|
2.9.3
|
|
|