diff options
author | Zim <zezeozue@google.com> | 2020-04-15 09:08:02 +0100 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-10-23 22:08:52 +0800 |
commit | 79b5d8436a3a8bf45c3a037b75bd49b2586de197 (patch) | |
tree | 21c357de2bc5cf909b91c77301f4357ab9ec9d36 | |
parent | d8eff3df907c84689cd91094248b647c41c8c4bf (diff) |
Grant MediaProvider read file access on /mnt/pass_throughlineage-18.1
It already has read dir access, but was missing file access which
would allow it read /sdcard symlink (/mnt/pass_through/0/self/primary)
Test: adb shell am broadcast -a
android.intent.action.MEDIA_SCANNER_SCAN_FILE
--receiver-include-background -d file:///sdcard
Bug: 153151011
Change-Id: If4d3fa3d96de6dd9672c0c3aa25fb25f196fe295
-rw-r--r-- | private/mediaprovider_app.te | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/private/mediaprovider_app.te b/private/mediaprovider_app.te index 5881255c9..82d7e3bc7 100644 --- a/private/mediaprovider_app.te +++ b/private/mediaprovider_app.te @@ -6,7 +6,7 @@ type mediaprovider_app, domain, coredomain; app_domain(mediaprovider_app) # Access to /mnt/pass_through. -allow mediaprovider_app mnt_pass_through_file:dir r_dir_perms; +r_dir_file(mediaprovider_app, mnt_pass_through_file) # Allow MediaProvider to host a FUSE daemon for external storage allow mediaprovider_app fuse_device:chr_file { read write ioctl getattr }; |