From db99a389c8d4a7dad7a05f904d86c2cc7dff964a Mon Sep 17 00:00:00 2001 From: saber safavi Date: Thu, 5 Oct 2023 10:12:23 +0200 Subject: [PATCH] Replace EXTERNAL_STORAGE permissions on android api level 33+ --- android/app/lint-baseline.xml | 31 +++---------------- android/app/src/debug/AndroidManifest.xml | 8 +++-- android/test/e2e/src/main/AndroidManifest.xml | 12 ++++--- .../mullvadvpn/test/e2e/EndToEndTest.kt | 13 +++++--- 4 files changed, 27 insertions(+), 37 deletions(-) diff --git a/android/app/lint-baseline.xml b/android/app/lint-baseline.xml index 9b9d02fcc8b0..f176afcc1c0c 100644 --- a/android/app/lint-baseline.xml +++ b/android/app/lint-baseline.xml @@ -1,6 +1,5 @@ - - + - - - - - - - - @@ -53,7 +30,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index ff2d7e28a0dc..a4433cfca18c 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,7 +1,11 @@ - - + + - - - + + + = Build.VERSION_CODES.TIRAMISU) { + GrantPermissionRule.grant(Manifest.permission.READ_MEDIA_IMAGES) + } else { + GrantPermissionRule.grant( + Manifest.permission.WRITE_EXTERNAL_STORAGE, + Manifest.permission.READ_EXTERNAL_STORAGE + ) + } lateinit var device: UiDevice lateinit var targetContext: Context