From 9b78af42928f4f1e977b1bc7fcc796d9b6223cf7 Mon Sep 17 00:00:00 2001 From: Jay Thomas Sullivan Date: Fri, 25 Mar 2022 15:59:33 -0700 Subject: Add split perms from W_E_S to media Add split permissions from WRITE_EXTERNAL_STORAGE to media permissions. The reason for doing this is that the split-permission handling code doesn't handle recursive split-permission mappings, but only direct mappings. This resulted in a problem with WRITE_EXTERNAL_STORAGE because: 1) WRITE_EXTERNAL_STORAGE splits into READ_EXTERNAL_STORAGE, and 2) Recently, we added split permissions from READ_EXTERNAL_STORAGE to READ_MEDIA_AUDIO, READ_MEDIA_IMAGES, READ_MEDIA_VIDEO, and ACCESS_MEDIA_LOCATION The effect is that apps which request WRITE_EXTERNAL_STORAGE are not being granted media storage permissions properly. (Note that, for now, we've not yet added the split to ACCESS_MEDIA_LOCATION, because this scenario has not yet been thoroughly tested.) Bug: 222238273 Test: atest CtsPermissionTestCases CtsPermission3TestCases SplitPermissionsSystemTest Change-Id: I94694b37189ea8ad89edc4f478391ccfe1ccd5b8 --- data/etc/platform.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/data/etc/platform.xml b/data/etc/platform.xml index a8293397d7df..a02ac6c39e93 100644 --- a/data/etc/platform.xml +++ b/data/etc/platform.xml @@ -243,6 +243,18 @@ targetSdk="33"> + + + + + + + + + -- cgit v1.2.3-59-g8ed1b