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

Commit 136bded3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Make StubVolumes visible for read" am: 6a20288d am: 3274e47a am: 91b2f9a0

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1889176

Change-Id: I68d4e000736af4a7ba20b48b01509e4895b8babc
parents 35ef63cc 91b2f9a0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1595,6 +1595,8 @@ class StorageManagerService extends IStorageManager.Stub
        } else if (vol.type == VolumeInfo.TYPE_STUB) {
            if (vol.disk.isStubVisible()) {
                vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE_FOR_WRITE;
            } else {
                vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE_FOR_READ;
            }
            vol.mountUserId = mCurrentUserId;
            mHandler.obtainMessage(H_VOLUME_MOUNT, vol).sendToTarget();