dotnet/maui

Add more Media* permissions for Android

Open

#12.857 geöffnet am 23. Jan. 2023

Auf GitHub ansehen
 (2 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C# (23.245 Stars) (1.951 Forks)batch import
area-essentialsgood first issuep/3platform/androidproposal/opent/enhancement ☀️

Beschreibung

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

Contributor Guide