summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src
diff options
context:
space:
mode:
author Himanshu Gupta <himanshuz@google.com> 2023-02-23 14:49:22 +0000
committer Himanshu Gupta <himanshuz@google.com> 2023-05-11 19:25:33 +0100
commit4914447ec5acdd06c7e71c528610d08e6db55d3f (patch)
treee0e6cba87ec02f341c1bff721a512bfa1fd27272 /tests/DynamicCodeLoggerIntegrationTests/src
parent7871be0c9765b28aa3c400a0e0a7a940a38050f3 (diff)
Allowing content uris with cloneUserId to be accessed by parent user.
In some cases a userId maybe appended to the contentUri, to determine the storage location of the content, ex: `content://10@media/external/images/media/000001.png` This has started in systemui/screenshot, where ag/19783114 appended the userId of the foreground user in ScreenShot Content Uris. However, this change gives error while saving screenshots in cloned apps, as the userId appended is different from the MediaProvider Process trying to save the content (MP of user 0 is used for clonedProfile). The error is triggerred from `ContentProvider.validateIncomingUri` We add the check that if the ContentAuthorityUser shares Media with a parentUser, and the latter is same as the MP process user, we do not throw the above error. Bug: b/270350104 Test: Manual verification on device Change-Id: I62e87c4f04840573138ed59918cc869d1ab12dea
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src')
0 files changed, 0 insertions, 0 deletions