The behaviour changes for Android 13 mention this:
If your app targets Android 13, you must request one or more new permissions instead of the READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions.
(https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions)
The new permissions are:
- Images and photos: READ_MEDIA_IMAGES
- Videos: READ_MEDIA_VIDEO Audio
- Audio files: READ_MEDIA_AUDIO
But how to handle this, if I e.g. need to read PDF files from an arbitrary folder? There's no permission like READ_MEDIA_DOCUMENT or something like that. What about other file types, which are not images, videos or audio? Can I still use READ_EXTERNAL_STORAGE permission for them?
I didn't find any information about this in the official documentation, but to be honest the documentation is focusing on media files only without any word about other file types (https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions).
I am also not sure about WRITE_EXTERNAL_STORAGE permission for other document types beside of videos, images and audio.