diff options
author | Jason Monk <jmonk@google.com> | 2014-11-03 14:36:01 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-11-03 14:36:02 +0000 |
commit | 2e647efe01dcdb82d2d7f8a23540ba6b690a95d6 (patch) | |
tree | 0de5e712eeec4c168a7b0c6f8ed921dea8784817 /packages | |
parent | 9301eafbcc39f9cf6980f937f78886f35dec9d9f (diff) | |
parent | 94cfd9d7c42287c18bde29aa1ae34944eb448f45 (diff) | |
download | frameworks_base-2e647efe01dcdb82d2d7f8a23540ba6b690a95d6.zip frameworks_base-2e647efe01dcdb82d2d7f8a23540ba6b690a95d6.tar.gz frameworks_base-2e647efe01dcdb82d2d7f8a23540ba6b690a95d6.tar.bz2 |
Merge "Move LOCK_TO_APP_EXIT_LOCKED from System to Secure" into lmp-mr1-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 16 |
1 files changed, 15 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 eea97ea..9bfcadb 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -71,7 +71,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 = 116; + private static final int DATABASE_VERSION = 117; private Context mContext; private int mUserHandle; @@ -1865,6 +1865,20 @@ public class DatabaseHelper extends SQLiteOpenHelper { upgradeVersion = 116; } + if (upgradeVersion < 117) { + db.beginTransaction(); + try { + String[] systemToSecure = { + Settings.Secure.LOCK_TO_APP_EXIT_LOCKED + }; + moveSettingsToNewTable(db, TABLE_SYSTEM, TABLE_SECURE, systemToSecure, true); + db.setTransactionSuccessful(); + } finally { + db.endTransaction(); + } + upgradeVersion = 117; + } + // *** Remember to update DATABASE_VERSION above! if (upgradeVersion != currentVersion) { |