-
Notifications
You must be signed in to change notification settings - Fork 92
Description
Android 11 has been released for one year and more. All docs on the Android official website are still telling that the Scope Storage would be force enabled and the requestLegacyExternalStorage would be ignored.
Target Android 11
If your app targets Android 11, both the WRITE_EXTERNAL_STORAGE permission and the WRITE_MEDIA_STORAGE privileged permission no longer provide any additional access.
https://developer.android.com/about/versions/11/privacy/storage
While the READ_EXTERNAL_STORAGE is allowed. And this is the only permission we request.
If your app hasn't opted out of scoped storage and requests the READ_EXTERNAL_STORAGE permission, users see a different dialog compared to Android 10. The dialog indicates that your app is requesting access to photos and media, as shown in Figure 1.
So we do support Android 10 and Android 11. Just enjoy your coding.
Android 11 发布以来,所有文档都声明分区存储会被强制启用,并且 requestLegacyExternalStorage 标志将失效。此处我们无意讨论实际效果。
但是外部存储的读取权限(READ_EXTERNAL_STORAGE)是可用的,不在分区存储限制范围之内。
所以这个库支持 Android 10 以及 Android 11,请放心使用。
REF: