diff options
| author | 2024-01-24 20:59:27 +0000 | |
|---|---|---|
| committer | 2024-02-07 22:48:36 +0000 | |
| commit | a4a515504b702f9a60c23e010a529f308555d3f9 (patch) | |
| tree | 2ac2b97bc514d8dd66da2318e181aef7afcd7fe7 /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | 43dfcd484c61088ca7db1dbb4a427b6bf08437da (diff) | |
Add Activity manifest attribute: requireContentUriPermissionFromCaller
The new attribute specifies permissions necessary for launching the
activity via startActivity() when passing content URIs. The default
value is none, meaning no specific permissions are required for the
content URIs. Setting this attribute to other values will enforce the
invoker to have the required permissions. If they fail to have them,
the activity start is denied via a SecurityException. The enforcement
works for content URIs in Intent#getData and Intent#getClipData.
Bug: 293467489
Test: atest WmTests:ActivityStarterTests
Test: atest CtsPackageManagerTestCases:android.content.pm.cts.ActivityInfoTest
Test: atest CtsContentTestCasesRavenwood:android.content.pm.cts.ActivityInfoTest
Test: atest FrameworksServicesTests:com.android.server.uri
Test: atest FrameworksServicesTestsRavenwood:com.android.server.uri.UriGrantsManagerServiceTest
Test: atest CtsContentTestCases:android.content.cts.ActivityRequireContentUriPermissionFromCallerTest
Change-Id: Ifca162d31fa789caa5943b78d1db77c51a5d7f80
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions