Mark perm DB version as -1 when upgrading from P

So that we can implement different behavior between Android P and Q.

Test: Upgraded P->Q and booted fresh install of Q. Checked DB after boot
Bug: 131427665
Change-Id: I89f9dc1fc11129c95c03834e21628c6be75f2875
This commit is contained in:
Philip P. Moltmann
2019-05-21 15:31:36 -07:00
parent 3fb12ba490
commit 1ae81a547e
2 changed files with 7 additions and 3 deletions

View File

@@ -68,7 +68,8 @@ public final class PermissionManager {
/**
* Gets the version of the runtime permission database.
*
* @return The database version.
* @return The database version, -1 when this is an upgrade from pre-Q, 0 when this is a fresh
* install.
*
* @hide
*/