Don't reset permission granted by role.
Role isn't reset when clearing package data, so its permissions shouldn't be reset as well. This becomes important as we are using roles to replace DefaultPermissionGrantPolicy now, so GRANTED_BY_ROLE should also behave like GRANTED_BY_DEFAULT. In case any future role should be revoked upon clearing package data, the role itself should handle permission revocation as well. Fixes: 158026399 Test: Clear package data for Photos, observer that storage permissions are not revoked because they are granted by role, instead of being temporarily revoked and granted seconds after launching the app again Change-Id: Iea1fd1a4e15c106c31c30d10ab6bf84d475455c2
Loading
Please register or sign in to comment