From 1eef72d7a4042123b699eef4ed5249dd56a3544e Mon Sep 17 00:00:00 2001
From: lxm <1274844347@qq.com>
Date: Mon, 9 Jun 2025 20:45:46 +0800
Subject: [PATCH] =?UTF-8?q?fix(AndroidManifest):=20=E7=A7=BB=E9=99=A4MANAG?=
=?UTF-8?q?E=5FEXTERNAL=5FSTORAGE=E6=9D=83=E9=99=90=E5=92=8CrequestLegacyE?=
=?UTF-8?q?xternalStorage=E5=B1=9E=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
移除不再需要的MANAGE_EXTERNAL_STORAGE权限声明,并删除requestLegacyExternalStorage属性以适配Android存储策略变更。这些权限和属性在最新Android版本中已不再适用或推荐使用。
---
android/app/src/main/AndroidManifest.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 6a87534b7..9b63b731d 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -26,8 +26,8 @@
-
+
@@ -58,7 +58,7 @@
android:label="DeapSound"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
- android:requestLegacyExternalStorage="true"
+
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true"
android:enableOnBackInvokedCallback="true"