diff options
author | Jeff Sharkey <jsharkey@android.com> | 2018-08-07 14:45:22 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2018-08-07 14:45:24 -0600 |
commit | 31570a2e9b6d88fa2ed4f0b22491b25ad365e4dd (patch) | |
tree | 81545d90db2184cc9ce1d2c5e6881effc62a8ceb /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | b1406c004f98c2a783677475511fa8c6f3c51af3 (diff) |
Persistable Uri grants still require permissions.
When FLAG_GRANT_PERSISTABLE_URI_PERMISSION is requested, we still
need to check permissions between the source and target packages,
instead of shortcutting past them.
The spirit of the original change is remains intact: if the caller
requested FLAG_GRANT_PERSISTABLE_URI_PERMISSION, then we avoid
returning "-1", which would prevent the grant data structure from
being allocated.
Bug: 111934948
Test: atest android.appsecurity.cts.AppSecurityTests
Change-Id: Ief0fc922aa09fc3d9bb6a126c2ff5855347cd030
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions