music: switch to new storage perms

Switch to the new READ_AUDIO_STORAGE permission for Android 13.
This commit is contained in:
Alexander Capehart
2022-08-16 12:31:36 -06:00
parent f5f28b891a
commit 3cef088d12
3 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -2,7 +2,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- Android 13 uses READ_MEDIA_AUDIO instead of READ_EXTERNAL_STORAGE -->
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />