Skip to content
Commit 253fa2b8 authored by Hai Zhang's avatar Hai Zhang
Browse files

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
parent 0d07c9ac
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