Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a4a51550 authored by Azhara Assanova's avatar Azhara Assanova
Browse files

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
parent 43dfcd48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment