Merge "Block SAF directory access to /sdcard/Android" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
246b270b40
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user