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

Commit 6da2fb61 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check for valid paths when getVolumeList() returns invisible volumes." into nyc-dev

parents e4b1fb94 123a0e71
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -3031,7 +3031,8 @@ class MountService extends IMountService.Stub
                if (forWrite) {
                if (forWrite) {
                    match = vol.isVisibleForWrite(userId);
                    match = vol.isVisibleForWrite(userId);
                } else {
                } else {
                    match = vol.isVisibleForRead(userId) || includeInvisible;
                    match = vol.isVisibleForRead(userId)
                            || (includeInvisible && vol.getPath() != null);
                }
                }
                if (!match) continue;
                if (!match) continue;