diff options
| author | 2024-02-11 21:21:07 +0000 | |
|---|---|---|
| committer | 2024-02-12 21:08:52 +0000 | |
| commit | 16175f003669f36700b1a3fa5373e7f8eb323666 (patch) | |
| tree | 161c65982f4c791c9f3884fadcb2af159358a1ca /libs/androidfw/StringPool.cpp | |
| parent | 1bb44936fe3a9d7feded47bd1deacec04b187a5a (diff) | |
Add EXTRA_STREAM to requireContentUriPermissionFromCaller
The Activity Manifest attribute requireContentUriPermissionFromCaller
only works for content URIs passed in Intent#getData and
Intent#getClipData. This change adds Intent#EXTRA_STREAM to that list as
it is one of the common ways for apps to pass URIs.
EXTRA_STREAM only works for URIs that the system can unparcel. If
unparcel fails, i.e. a BadParcelableException is thrown, the item is
still preserved as a LazyValue with the underlying parcel.
Bug: 293467489
Test: atest CtsContentTestCases:android.content.cts.ActivityRequireContentUriPermissionFromCallerTest
Change-Id: Idcd3b38adfd3e2ebad7e69f40d1cb822c4a0e6e4
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions