Skip to content
Commit 7e8c82cd authored by Hai Zhang's avatar Hai Zhang
Browse files

Move PermissionsState into PermissionManagerService.

PermissionsState objects are now keyed by app IDs (UID without User
ID) inside PermissionManagerService. This assumes app IDs are stable
while the system is running, and across uninstallation of a system app
update, which is indeed the case. The PermissionStates inside package
setting is kept as-is because we need to migrate data from old
platforms.

To limit the scope of this change, persistence of permissions is also
left untouched, and we are temporarily telling
PermissionManagerService to write PermissionsState back into package
settings before persistence. This will be fixed once we move the
permission persistence out of package manager as well.

Bug: 158736025
Test: presubmit
Change-Id: I703fdbb9af64c30731b5e2c519e0b5d6c835d640
parent 0de9d934
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment