From fdea0fad552207679fc0981a937079b262bfc810 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 20 Nov 2015 00:13:11 -0500 Subject: [PATCH] remove analytics support --- host/migration/src/CMSettings.java | 7 ------- packages/CMSettingsProvider/res/values/defaults.xml | 5 +---- .../src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java | 3 --- src/java/cyanogenmod/providers/CMSettings.java | 13 ------------- 4 files changed, 1 insertion(+), 27 deletions(-) diff --git a/host/migration/src/CMSettings.java b/host/migration/src/CMSettings.java index 0d57b0d..b4f5be9 100644 --- a/host/migration/src/CMSettings.java +++ b/host/migration/src/CMSettings.java @@ -833,12 +833,6 @@ public static boolean isLegacySetting(String key) { public static final String QS_USE_MAIN_TILES = "sysui_qs_main_tiles"; /** - * Global stats collection - * @hide - */ - public static final String STATS_COLLECTION = "stats_collection"; - - /** * Boolean value whether to link ringtone and notification volume * * @hide @@ -1021,7 +1015,6 @@ public static boolean isLegacySetting(String key) { CMSettings.Secure.DEV_FORCE_SHOW_NAVBAR, CMSettings.Secure.KEYBOARD_BRIGHTNESS, CMSettings.Secure.POWER_MENU_ACTIONS, - CMSettings.Secure.STATS_COLLECTION, CMSettings.Secure.QS_SHOW_BRIGHTNESS_SLIDER, CMSettings.Secure.QS_TILES, CMSettings.Secure.QS_USE_MAIN_TILES, diff --git a/packages/CMSettingsProvider/res/values/defaults.xml b/packages/CMSettingsProvider/res/values/defaults.xml index ffc9c88..762abc1 100644 --- a/packages/CMSettingsProvider/res/values/defaults.xml +++ b/packages/CMSettingsProvider/res/values/defaults.xml @@ -41,9 +41,6 @@ Comma-delimited, quick settings tiles. See QSConstants.java for a list of all available tiles --> wifi,bt,cell,airplane,rotation,flashlight,location,cast,visualizer,hotspot,live_display - - false - true @@ -73,4 +70,4 @@ false - \ No newline at end of file + diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java index 4257c42..baee50a 100644 --- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java +++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java @@ -233,9 +233,6 @@ private void loadSecureSettings(SQLiteDatabase db) { loadBooleanSetting(db, CMTableNames.TABLE_SECURE, CMSettings.Secure.QS_USE_MAIN_TILES, R.bool.def_sysui_qs_main_tiles); - - loadBooleanSetting(db, CMTableNames.TABLE_SECURE, CMSettings.Secure.STATS_COLLECTION, - R.bool.def_stats_collection); } private void loadSystemSettings(SQLiteDatabase db) { diff --git a/src/java/cyanogenmod/providers/CMSettings.java b/src/java/cyanogenmod/providers/CMSettings.java index 4b2fb7c..468b226 100644 --- a/src/java/cyanogenmod/providers/CMSettings.java +++ b/src/java/cyanogenmod/providers/CMSettings.java @@ -2464,18 +2464,6 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val public static final String QS_USE_MAIN_TILES = "sysui_qs_main_tiles"; /** - * Global stats collection - * @hide - */ - public static final String STATS_COLLECTION = "stats_collection"; - - /** - * Whether the global stats collection setting has been successfully reported to server - * @hide - */ - public static final String STATS_COLLECTION_REPORTED = "stats_collection_reported"; - - /** * Boolean value whether to link ringtone and notification volume * * @hide @@ -2619,7 +2607,6 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val CMSettings.Secure.DEV_FORCE_SHOW_NAVBAR, CMSettings.Secure.KEYBOARD_BRIGHTNESS, CMSettings.Secure.POWER_MENU_ACTIONS, - CMSettings.Secure.STATS_COLLECTION, CMSettings.Secure.QS_SHOW_BRIGHTNESS_SLIDER, CMSettings.Secure.QS_TILES, CMSettings.Secure.QS_USE_MAIN_TILES,