cmparts: Anonymous stats
* Import anonymous user-counting from previous releases.
* Original work by:
- Chris Soyars
- Danesh Mondegarian
- Roman Birg
- Steve Kondik
- Ricardo Cerqueira
- Adnan Begovic
Change-Id: Ib068c15b1ad238c9fe8818cf4eb9df46ba80d783
diff --git a/res/values/config.xml b/res/values/config.xml
new file mode 100644
index 0000000..82eea80
--- /dev/null
+++ b/res/values/config.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2016 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <!-- Metrics server endpoints -->
+ <string name="stats_cm_url">https://stats.cyanogenmod.org/submit</string>
+ <string name="stats_cyanogen_url">https://shopvac.cyngn.com/community/heartbeat</string>
+ <string name="stats_cyanogen_token_url">https://account.cyngn.com/api/v1/community/heartbeat_token</string>
+
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index a69e663..83c8032 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -469,4 +469,26 @@
<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">CyanogenMod statistics</string>
+ <string name="anonymous_statistics_summary">Help make CyanogenMod better by opting into anonymous statistics reporting</string>
+ <string name="anonymous_statistics_warning_title">About</string>
+ <string name="anonymous_statistics_warning">Opting into CyanogenMod Statistics will allow non-personal data to be submitted to the
+ developers of CyanogenMod 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">When enabled, allows metrics collection</string>
+
</resources>