From 491e726540b1846bca405ab617d0dc099d767c80 Mon Sep 17 00:00:00 2001
From: gd <gd@iotide.com>
Date: Mon, 3 Feb 2025 21:42:51 +0200
Subject: [PATCH] android: manifest - added sdk version to legacy permission
 READ_EXTERNAL_STORAGE, added permission READ_MEDIA_AUDIO

Change fo r SDK version 33 and above
---
 android/app/src/main/AndroidManifest.xml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 400258e20..7cdbb5ebd 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -12,7 +12,9 @@
         android:required="false" />
 
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
-    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
+        android:maxSdkVersion="32" />
+    <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
     <uses-permission android:name="android.permission.WAKE_LOCK" />
     <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />