diff options
| author | rich cannings <richc@google.com> | 2012-09-07 15:54:12 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-07 15:54:13 -0700 |
| commit | 1275abd013eee87b3fec5b704a799440cb1c71fe (patch) | |
| tree | 90628566405dd628b5ed664132545501c11deb7b /packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | |
| parent | cd42ce5d61d7854d1add5d4d308d1f3342baeea6 (diff) | |
| parent | 4d8fc793f044cf2c857ac72ebe51641b8e6c413d (diff) | |
| download | frameworks_base-1275abd013eee87b3fec5b704a799440cb1c71fe.zip frameworks_base-1275abd013eee87b3fec5b704a799440cb1c71fe.tar.gz frameworks_base-1275abd013eee87b3fec5b704a799440cb1c71fe.tar.bz2 | |
Merge "Move verification settings to Settings.Global" into jb-mr1-dev
Diffstat (limited to 'packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java')
| -rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 19 |
1 files changed, 18 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 77760b4..05673c3 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 = 86; + private static final int DATABASE_VERSION = 87; private Context mContext; private int mUserHandle; @@ -1288,6 +1288,23 @@ public class DatabaseHelper extends SQLiteOpenHelper { upgradeVersion = 86; } + if (upgradeVersion == 86) { + db.beginTransaction(); + try { + String[] settingsToMove = { + Settings.Secure.PACKAGE_VERIFIER_ENABLE, + Settings.Secure.PACKAGE_VERIFIER_TIMEOUT, + Settings.Secure.PACKAGE_VERIFIER_DEFAULT_RESPONSE + }; + moveSettingsToNewTable(db, TABLE_SECURE, TABLE_GLOBAL, settingsToMove, true); + + db.setTransactionSuccessful(); + } finally { + db.endTransaction(); + } + upgradeVersion = 87; + } + // *** Remember to update DATABASE_VERSION above! if (upgradeVersion != currentVersion) { |
