OSDN Git Service

Media process should run with "write" access.
authorJeff Sharkey <jsharkey@android.com>
Sat, 3 Feb 2018 22:32:31 +0000 (15:32 -0700)
committerJeff Sharkey <jsharkey@android.com>
Sat, 3 Feb 2018 22:33:04 +0000 (15:33 -0700)
commit86684240eb5753bb97c2cfc93d1d25fa1870f8f1
tree02ef27a8a065805a8d29476beca57daca6a85380
parent4a740846223aa58af065e2256fb0caa0ce6f9c53
Media process should run with "write" access.

The WRITE_MEDIA_STORAGE permission had inadvertently been giving apps
the "default" view of storage.  This had worked for a long since,
since we also gave them the "sdcard_rw" permission, but a recent
security patch broke this for secondary users.

Apps holding this permission should have been mounted "write" all
along, and relied on that view to access storage devices.  This also
means they no longer need the "sdcard_rw" GID.

Test: builds, boots, secondary user media/camera works
Bug: 727329067173780672224817
Change-Id: I5cd687a1e128024f33b4acd93c15e75192ed1c85
data/etc/platform.xml
services/core/java/com/android/server/pm/PackageManagerService.java