mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Merge pull request #25636 from Susko3/fix-older-android-storage
Request `READ_EXTERNAL_STORAGE` on older android versions
This commit is contained in:
commit
36b1369a4e
@ -5,4 +5,12 @@
|
|||||||
<!-- for editor usage -->
|
<!-- for editor usage -->
|
||||||
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
||||||
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
||||||
</manifest>
|
<!--
|
||||||
|
READ_MEDIA_* permissions are available only on API 33 or greater. Devices with older android versions
|
||||||
|
don't understand the new permissions, so request the old READ_EXTERNAL_STORAGE permission to get storage access.
|
||||||
|
Since the old permission has no effect on >= API 33, don't request it.
|
||||||
|
|
||||||
|
Care needs to be taken to ensure runtime permission checks target the correct permission for the API level.
|
||||||
|
-->
|
||||||
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>
|
||||||
|
</manifest>
|
||||||
|
Loading…
Reference in New Issue
Block a user