Android 11 (API level 30) further enhances the platform, giving better protection to app and user data on external storage. This release introduces several enhancements, such as raw file path access, batch edit operations for media, and an updated UI for the Storage Access Framework.
The release also offers improvements to scoped storage, which makes it easier for developers to fulfill their storage use cases after they migrate to using this storage model.
Maintain compatibility with Android 10
If your app opts out of scoped storage when running on Android 10 devices, it’s recommended that you continue to set requestLegacyExternalStorage
to true
in your app’s manifest file. That way, your app can continue to behave as expected on devices that run Android 10.