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
Loading
Please register or sign in to comment