summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorZim <zezeozue@google.com>2020-01-21 18:16:58 +0000
committerZimuzo Ezeozue <zezeozue@google.com>2020-01-22 19:29:29 +0000
commit7da9f80d6a7d76d7cac5c6220678d8a46cd8e14d (patch)
treea938c3b056dc2e72577a4df56ceb7476cd2c960f /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc6cf3a4dc50d3b1d2354e1778cc5ec52ed7e6dd6 (diff)
Deprecate WRITE_MEDIA_STORAGE permission
Previously, this permission would give the holder the media_rw gid thereby granting access to the following file paths on disk: 1. /data/media 2. /mnt/media_rw 3. /mnt/expand/<uuid>/data/media With the introduction of a stacked FUSE filesystem on external storage, modifying any files directly on the lower filesystem (the paths listed above) could lead to VFS cache inconsistencies and file corruption. To mitigate this risk, this cl blocks unneeded access to the lower filesystem. Apps relying on this permission should instead use android.permission.MANAGE_EXTERNAL_STORAGE. Test: cat /proc/<pid>/status of mediaprovider doesn't have media_rw Bug: 144914977 Change-Id: I8335d18067231657ac9793f7b1dcf6adb617ecfc
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions