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

Commit 1b198ea6 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

MTP: Create files/folders with group media_rw instead of sdcard_rw



Otherwise the sdcard daemon that implements the Fuse file system at
/mnt/sdcard won't have write access to the files.

BUG: 3254123

Change-Id: Ib0c306bbc31ec936fd6164f17e7cd1b5dfff21b8
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 32f4ab45
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ public:
            return false;
        }

        mServer = new MtpServer(mFd, mDatabase, AID_SDCARD_RW, 0664, 0775);
        mServer = new MtpServer(mFd, mDatabase, AID_MEDIA_RW, 0664, 0775);
        mServer->addStorage(mStoragePath, mReserveSpace);
        sMutex.unlock();