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

Commit 34143287 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Added extra validation for invalid paths." into nyc-dev am: 40297c1a

am: 884e8e07

* commit '884e8e07':
  Added extra validation for invalid paths.

Change-Id: Ic316aa95263f7e21885c259f4e65a95edc420375
parents 6f89bb49 884e8e07
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -212,6 +212,12 @@ public class OpenExternalDirectoryActivity extends Activity {
                break;
            }
        }
        if (internalRoot == null) {
            // Should not happen on normal circumstances, unless app crafted an invalid volume
            // using reflection or the list of mounted volumes changed.
            Log.e(TAG, "Didn't find right volume for '" + storageVolume.dump() + "' on " + volumes);
            return false;
        }

        // Checks if the user has granted the permission already.
        final Intent intent = getIntentForExistingPermission(activity, isRoot, internalRoot, file);