summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-02-15 17:12:30 +0100
committerMax Kellermann <max@musicpd.org>2021-02-15 17:43:05 +0100
commitca02fb7782bead0befff41d1ea61e678d7f1e9f9 (patch)
treea085a86adc38e9933b934cfe2c54d1486a144b6c
parentd4d06da2f8ed7364ae897bb9527923c704c0892e (diff)
android/AndroidManifest.xml: enable requestLegacyExternalStorage
This is a workaround for the new scoped storage design in Android 11: https://developer.android.com/about/versions/11/privacy/storage This needs a proper solution eventually, but this quick fix will do until we change "targetSdkVersion" to 30. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1061
-rw-r--r--NEWS2
-rw-r--r--android/AndroidManifest.xml1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 80ae7c3c7..e7fdf2154 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,8 @@ ver 0.22.5 (not yet released)
- pulse: fix deadlock with "always_on"
* Windows:
- enable https:// support (via Schannel)
+* Android
+ - work around "Permission denied" on mpd.conf
ver 0.22.4 (2021/01/21)
* protocol
diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml
index 364d571e0..1baa1b9cf 100644
--- a/android/AndroidManifest.xml
+++ b/android/AndroidManifest.xml
@@ -19,6 +19,7 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application android:allowBackup="true"
+ android:requestLegacyExternalStorage="true"
android:icon="@drawable/icon"
android:banner="@drawable/icon"
android:label="@string/app_name">