Affected by scoped storage
Affected by scoped storage
Scoped storage is enforced on Android 10+ (or Android 11+ if using requestLegacyExternalStorage
). In particular, WRITE_EXTERNAL_STORAGE
will no longer provide write access to all files; it will provide the equivalent of READ_EXTERNAL_STORAGE
instead.
As of Android 13, if you need to query or interact with MediaStore or media files on the shared storage, you should be using instead one or more new storage permissions:
* android.permission.READ_MEDIA_IMAGES
* android.permission.READ_MEDIA_VIDEO
* android.permission.READ_MEDIA_AUDIO
and then add maxSdkVersion="33"
to the older permission. See the developer guide for how to do this: https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions
The MANAGE_EXTERNAL_STORAGE
permission can be used to manage all files, but it is rarely necessary and most apps on Google Play are not allowed to use it. Most apps should instead migrate to use scoped storage. To modify or delete files, apps should request write access from the user as described at https://goo.gle/android-mediastore-createwriterequest.
To learn more, read these resources: Play policy: https://goo.gle/policy-storage-help Allowable use cases: https://goo.gle/policy-storage-usecases
Issue id: ScopedStorage
https://goo.gle/android-storage-usecases
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |