dotnet/maui

Add more Media* permissions for Android

Open

#12.857 aberto em 23 de jan. de 2023

Ver no GitHub
 (2 comments) (1 reaction) (0 assignees)C# (23.245 stars) (1.951 forks)batch import
area-essentialsgood first issuep/3platform/androidproposal/opent/enhancement ☀️

Description

Description

As of Android 13, the READ_EXTERNAL_STORAGE permission is no more and split into:

Type of media Permission to request
Images and photos READ_MEDIA_IMAGES
Videos READ_MEDIA_VIDEO
Audio files READ_MEDIA_AUDIO

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

Public API Changes

Not sure as of yet, but maybe 3 new permissions?

  • MediaReadImages
  • MediaReadAudio
  • MediaReadVideo

This will also have to be consolidated with the iOS permission of Media...

Intended Use-Case

More granular permissions. Especially since if this lands, then we have added all the media ones into READ_EXTERNAL_STORAGE: https://github.com/dotnet/maui/pull/12854

Guia do colaborador