浏览代码

AndroidManifest: don't request WRITE_EXTERNAL_STORAGE above api 29

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Álvaro Brey Vilas 3 年之前
父节点
当前提交
91cf4ef271
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main/AndroidManifest.xml

+ 4 - 1
src/main/AndroidManifest.xml

@@ -51,7 +51,10 @@
 
 
     <!-- WRITE_EXTERNAL_STORAGE may be enabled or disabled by the user after installation in
     <!-- WRITE_EXTERNAL_STORAGE may be enabled or disabled by the user after installation in
         API >= 23; the app needs to handle this -->
         API >= 23; the app needs to handle this -->
-    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+    <uses-permission
+        android:name="android.permission.WRITE_EXTERNAL_STORAGE"
+        android:maxSdkVersion="29"
+        tools:ignore="ScopedStorage" />
     <uses-permission android:name="android.permission.CAMERA" />
     <uses-permission android:name="android.permission.CAMERA" />
     <uses-permission android:name="android.permission.VIBRATE" />
     <uses-permission android:name="android.permission.VIBRATE" />