Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8285b415 authored by Zimuzo Ezeozue's avatar Zimuzo Ezeozue Committed by Android (Google) Code Review
Browse files

Merge "Allow the FUSE daemon access to Android/ on non-sdcardfs devices"

parents 6eb25c35 6462805c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1572,8 +1572,11 @@ public final class ProcessList {
        if (userGid != UserHandle.ERR_GID) {
            gidList.add(userGid);
        }
        if (mountExternal == Zygote.MOUNT_EXTERNAL_ANDROID_WRITABLE) {
        if (mountExternal == Zygote.MOUNT_EXTERNAL_ANDROID_WRITABLE
                || mountExternal == Zygote.MOUNT_EXTERNAL_PASS_THROUGH) {
            // For DownloadProviders and MTP: To grant access to /sdcard/Android/
            // And a special case for the FUSE daemon since it runs an MTP server and should have
            // access to Android/
            gidList.add(UserHandle.getUid(UserHandle.getUserId(uid), Process.SDCARD_RW_GID));
        }
        if (mountExternal == Zygote.MOUNT_EXTERNAL_PASS_THROUGH) {