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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user