Merge "Make StubVolumes visible for read"
This commit is contained in:
@@ -1592,6 +1592,8 @@ class StorageManagerService extends IStorageManager.Stub
|
|||||||
} else if (vol.type == VolumeInfo.TYPE_STUB) {
|
} else if (vol.type == VolumeInfo.TYPE_STUB) {
|
||||||
if (vol.disk.isStubVisible()) {
|
if (vol.disk.isStubVisible()) {
|
||||||
vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE_FOR_WRITE;
|
vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE_FOR_WRITE;
|
||||||
|
} else {
|
||||||
|
vol.mountFlags |= VolumeInfo.MOUNT_FLAG_VISIBLE_FOR_READ;
|
||||||
}
|
}
|
||||||
vol.mountUserId = mCurrentUserId;
|
vol.mountUserId = mCurrentUserId;
|
||||||
mHandler.obtainMessage(H_VOLUME_MOUNT, vol).sendToTarget();
|
mHandler.obtainMessage(H_VOLUME_MOUNT, vol).sendToTarget();
|
||||||
|
|||||||
Reference in New Issue
Block a user