summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-07-06 09:45:55 -0700
committerJeff Sharkey <jsharkey@android.com>2015-07-06 10:54:28 -0700
commit32e80d7588720bdc9f8a3e961ac4566d7c80b2b9 (patch)
treef973bf150361de86acd613b0b597a7043e6ee3bc /data
parent1f6c9a12149040f7980a45cc6a6518bbb1d6cc7c (diff)
downloadframeworks_base-32e80d7588720bdc9f8a3e961ac4566d7c80b2b9.zip
frameworks_base-32e80d7588720bdc9f8a3e961ac4566d7c80b2b9.tar.gz
frameworks_base-32e80d7588720bdc9f8a3e961ac4566d7c80b2b9.tar.bz2
Permission to view shared storage for all users.
Typical apps are restricted so they can only view shared storage belonging to the user they're running as. However, a handful of system components need access to shared storage across all users, such as DefaultContainerService and SystemUI. Since WRITE_MEDIA_STORAGE already offers this functionality by bypassing any FUSE emulation, reuse it to grant the "sdcard_rw" GID which is no longer handed out to third-party apps. Then we change the FUSE daemon to allow the "sdcard_rw" GID to see shared storage of all users. Bug: 19995822 Change-Id: I504c2a179ba74f142ed0d32da5baa69f4212cd82
Diffstat (limited to 'data')
-rw-r--r--data/etc/platform.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/etc/platform.xml b/data/etc/platform.xml
index 377e6a16..579d2df 100644
--- a/data/etc/platform.xml
+++ b/data/etc/platform.xml
@@ -60,6 +60,7 @@
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
+ <group gid="sdcard_rw" />
</permission>
<permission name="android.permission.ACCESS_MTP" >