Merge "Block SAF directory access to /sdcard/Android" into rvc-dev am: 246b270b40
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14800511 Change-Id: I10cecf779b554721aa09a60d664b115283ca922e
This commit is contained in:
@@ -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