summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Azhara Assanova <azharaa@google.com> 2023-11-15 14:03:02 +0000
committer Azhara Assanova <azharaa@google.com> 2024-01-10 11:52:17 +0000
commiteeccbd76c4dac5b2669b76dcd153d14774468f8c (patch)
tree0060f0ad6131abf8102200503daa702bb87de145 /libs/androidfw/FileStream.cpp
parente4584f38917b5500e0f6f6afd88be59b4bd0df7a (diff)
Add new API Context#checkContentUriPermission
Currently, apps can't check if an app has access to a content URI. That is because the existing checkUriPermission() API is limited to checking permissions via URI grant flags. Hence, this change adds a new API that focuses on content URIs and on top of grant flags, it checks for general access to the URI's content provider. In addition to this API, we'll be introducing Activity APIs and a Manifest attribute to help apps with checking content URI permissions on activity callers. Finally, to minimise code duplication, we merged checkUriPermission()'s implementation in ActivityManagerService and UriGrantsManagerInternal. Bug: 293467489 Test: atest WmTests:ActivityStarterTests Test: atest FrameworksServicesTests:com.android.server.uri Test: atest CtsWindowManagerDeviceActivity:ActivityStarterTests Test: atest CtsWindowManagerDeviceWindow:CrossAppDragAndDropTests Test: atest AppEnumerationTests Test: atest CtsContentTestCases:android.content.cts.ContextTest Change-Id: I61a0574e3979702ed32f4d926c664f134046f555
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions