简体   繁体   中英

Granular media permissions Android 13 API 33

I've been upgrading my project to SDK 33.

I changed the permissions where I needed to access media files, such as photos, with the new permission READ_MEDIA_IMAGES and it is working fine.

But I need to access documents such as PDF files in order to upload them to the server, but I cannot find any information concerning android 13 and documents.

Before the upgrade I had READ_EXTERNAL_STORAGE permission and I accessed all the files.

In the andorid documentation on the link below, only these three permissions are provided READ_MEDIA_IMAGES, READ_MEDIA_VIDEO, READ_MEDIA_AUDIO instead of using READ_EXTERNAL_STORAGE.

https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions

Any ideas on how to fix this and what steps to follow?

According to Google storage documentation. It seems that for non-media files no permission is needed. https://developer.android.com/training/data-storage .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM