dotnet/maui

Add more Media* permissions for Android

開放

#12,857 建立於 2023年1月23日

 (2 則留言) (1 個反應) (0 位負責人)C# (1,951 個分叉)batch import
area-essentialsgood first issuep/3platform/androidproposal/opent/enhancement ☀️

倉庫指標

星標
 (23,245 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南