summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2020-06-02 14:07:23 -0700
committerHai Zhang <zhanghai@google.com>2020-06-02 14:07:23 -0700
commit253fa2b8769632eac0e6b7768f436b37f0ce949e (patch)
treeaee7ef02452ec65c5588eaf7c5ac3522612ee952 /tools/aapt2/java/JavaClassGenerator.cpp
parent0d07c9ac52dfd9cb50389392162526fbe3074579 (diff)
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions