Merge "Block SAF directory access to /sdcard/Android" into rvc-dev

This commit is contained in:
TreeHugger Robot
2021-06-09 10:21:57 +00:00
committed by Android (Google) Code Review

View File

@@ -322,6 +322,11 @@ public class ExternalStorageProvider extends FileSystemProvider {
return true;
}
if (TextUtils.equals(Environment.DIRECTORY_ANDROID.toLowerCase(),
path.toLowerCase())) {
return true;
}
return false;
} catch (IOException e) {
throw new IllegalArgumentException(