OSDN Git Service

Up the version of the database
authorRobert Berry <robertberry@google.com>
Thu, 1 Feb 2018 12:49:31 +0000 (12:49 +0000)
committerRobert Berry <robertberry@google.com>
Thu, 1 Feb 2018 12:49:31 +0000 (12:49 +0000)
commitbdc407d11fdb98612f35a4ac52393be82dc04854
tree5c7ce9dbb09a24073b414963f02742239decac2c
parent9d3986bdc3b9fe5a85a54bf6a4f787e198eade40
Up the version of the database

We should have done this every time the schema changed, and written
appropriate upgrade SQL. Unfortunately there are now devices in the
wild that initially created the database using older SQL. As such
they are missing columns. This causes them to crash when queries are
run against the DB expecting those columns to exist. As we didn't
up the version number, flashing a new build didn't cause the CREATE
SQL to run again.

Test: manual
Change-Id: I1daa263d9baa69af4abb4bebfe45586b1f9dfd0e
services/core/java/com/android/server/locksettings/recoverablekeystore/storage/RecoverableKeyStoreDbHelper.java