dotnet/maui

Add more Media* permissions for Android

Open

#12,857 创建于 2023年1月23日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)C# (23,245 star) (1,951 fork)batch import
area-essentialsgood first issuep/3platform/androidproposal/opent/enhancement ☀️

描述

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

贡献者指南