diff options
author | Christopher Tate <ctate@google.com> | 2012-09-12 17:41:04 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2012-09-12 17:42:43 -0700 |
commit | c868b645b46685574955eaff9f8d46d9262a3357 (patch) | |
tree | 266c234a211ee2c11e2d07db5e4bb92ff0fc7801 /packages | |
parent | 4f8da32ffaf7aaf1f670e74caa7cd8a70ddb63c6 (diff) | |
download | frameworks_base-c868b645b46685574955eaff9f8d46d9262a3357.zip frameworks_base-c868b645b46685574955eaff9f8d46d9262a3357.tar.gz frameworks_base-c868b645b46685574955eaff9f8d46d9262a3357.tar.bz2 |
Moved a few telephony settings from Secure to Global
Also tidy up the bookkeeping for a few settings that were earlier
moved to Global without the redirect tables being fixed up.
Change-Id: I69275db3b2636cd6ba9c8c51b88e97d8ba4b7b7d
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 19 | ||||
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java | 6 |
2 files changed, 24 insertions, 1 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index 05673c3..23b4b59 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -67,7 +67,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { // database gets upgraded properly. At a minimum, please confirm that 'upgradeVersion' // is properly propagated through your change. Not doing so will result in a loss of user // settings. - private static final int DATABASE_VERSION = 87; + private static final int DATABASE_VERSION = 88; private Context mContext; private int mUserHandle; @@ -1305,6 +1305,23 @@ public class DatabaseHelper extends SQLiteOpenHelper { upgradeVersion = 87; } + if (upgradeVersion == 87) { + db.beginTransaction(); + try { + String[] settingsToMove = { + Settings.Secure.DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS, + Settings.Secure.DATA_STALL_ALARM_AGGRESSIVE_DELAY_IN_MS, + Settings.Secure.GPRS_REGISTER_CHECK_PERIOD_MS + }; + moveSettingsToNewTable(db, TABLE_SECURE, TABLE_GLOBAL, settingsToMove, true); + + db.setTransactionSuccessful(); + } finally { + db.endTransaction(); + } + upgradeVersion = 88; + } + // *** Remember to update DATABASE_VERSION above! if (upgradeVersion != currentVersion) { diff --git a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java index 523b95e..e1a5b52 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java @@ -195,6 +195,12 @@ public class SettingsProvider extends ContentProvider { sSecureGlobalKeys.add(Settings.Secure.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED); sSecureGlobalKeys.add(Settings.Secure.WIFI_WATCHDOG_RSSI_FETCH_INTERVAL_MS); sSecureGlobalKeys.add(Settings.Secure.WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON); + sSecureGlobalKeys.add(Settings.Secure.PACKAGE_VERIFIER_ENABLE); + sSecureGlobalKeys.add(Settings.Secure.PACKAGE_VERIFIER_TIMEOUT); + sSecureGlobalKeys.add(Settings.Secure.PACKAGE_VERIFIER_DEFAULT_RESPONSE); + sSecureGlobalKeys.add(Settings.Secure.DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS); + sSecureGlobalKeys.add(Settings.Secure.DATA_STALL_ALARM_AGGRESSIVE_DELAY_IN_MS); + sSecureGlobalKeys.add(Settings.Secure.GPRS_REGISTER_CHECK_PERIOD_MS); sSecureGlobalKeys.add(Settings.Secure.WTF_IS_FATAL); // Keys from the 'system' table now moved to 'global' |