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: Ied6b2e6c4efb41895a0280c770a0e49b5e0bd40f
This commit is contained in:
@@ -322,6 +322,11 @@ public class ExternalStorageProvider extends FileSystemProvider {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (TextUtils.equals(Environment.DIRECTORY_ANDROID.toLowerCase(),
|
||||||
|
path.toLowerCase())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
|
|||||||
Reference in New Issue
Block a user