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

Commit 8b3bbeeb authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Fixup SDCARD_RW GID for multi-user.

sdcardfs takes the user-id into account when synthesizing the GID for
package-specific data/obb directories; so make sure we grant the GID
based on user-id as well.

Bug: 148094468
Test: OBB installs as secondary users works
Change-Id: Ibd73d8f2ef7dda14605a6095671a587c2316fc90
parent 1df5bd76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1574,7 +1574,7 @@ public final class ProcessList {
        }
        if (mountExternal == Zygote.MOUNT_EXTERNAL_ANDROID_WRITABLE) {
            // For DownloadProviders and MTP: To grant access to /sdcard/Android/
            gidList.add(Process.SDCARD_RW_GID);
            gidList.add(UserHandle.getUid(UserHandle.getUserId(uid), Process.SDCARD_RW_GID));
        }
        if (mountExternal == Zygote.MOUNT_EXTERNAL_PASS_THROUGH) {
            // For the FUSE daemon: To grant access to the lower filesystem.