feat: remove WRITE_EXTERNAL_STORAGE permission from plugin.xml
diff --git a/README.md b/README.md
index 3bf3ebd..519379d 100644
--- a/README.md
+++ b/README.md
@@ -269,6 +269,17 @@
for these two directories unless external storage is not mounted. However due to a limitation, when external storage is not mounted, it would ask for
permission to write to `cordova.file.externalApplicationStorageDirectory`.
+### SDK Target less than 29
+
+As the official document [Storage updates in Android 11](https://developer.android.com/about/versions/11/privacy/storage), `WRITE_EXTERNAL_STORAGE` permission no longer provide any additional access.
+If you need to add this permission, please add followings in your `config.xml`.
+
+```xml
+ <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/uses-permission" xmlns:android="http://schemas.android.com/apk/res/android">
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+ </edit-config>
+```
+
## iOS Quirks
- `cordova.file.applicationStorageDirectory` is read-only; attempting to store
diff --git a/plugin.xml b/plugin.xml
index 7c23c6d..c388181 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -132,9 +132,6 @@
</feature>
<allow-navigation href="cdvfile:*" />
</config-file>
- <config-file target="AndroidManifest.xml" parent="/*">
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
- </config-file>
<source-file src="src/android/EncodingException.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/FileExistsException.java" target-dir="src/org/apache/cordova/file" />