diff options
author | Jeff Sharkey <jsharkey@android.com> | 2020-05-06 14:15:44 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2020-05-06 14:15:46 -0600 |
commit | 51a14c09bcf981dbd1a04ca8eab69b1e8e0799d7 (patch) | |
tree | 51aa6569dcdee002cf72856fbfbad59dbe36e1e8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 971448afb67e4f4b6db031fabc07a0802f45e480 (diff) |
Fix logic inversion bug for "basicGrant".
Basic grants are defined to be one that only involve read/write
permissions, which we attempted to validate by checking for any other
flags, but there are many other (completely valid) flags that are
unrelated to Uri permissions.
Thus we invert the logic to look explicitly for the two specific
modes that cause a grant to be non-basic: persistable and prefix.
Update tests to verify the fix.
Bug: 155717493
Test: atest FrameworksServicesTests:com.android.server.uri
Change-Id: Ic8d7980d99bba59fb389d34f3bd054a9907df55c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions