From 57abe82b2c84bb2d93f4b2823f47db451af5fa84 Mon Sep 17 00:00:00 2001 From: Oliver Franke Date: Wed, 17 Aug 2022 18:47:45 +0200 Subject: [PATCH] add new permission to ui test --- .../com/lovoo/android/pickpic/instrumentation/helper/AppStart.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/androidTest/kotlin/com/lovoo/android/pickpic/instrumentation/helper/AppStart.kt b/app/src/androidTest/kotlin/com/lovoo/android/pickpic/instrumentation/helper/AppStart.kt index fb09cdf..516820e 100644 --- a/app/src/androidTest/kotlin/com/lovoo/android/pickpic/instrumentation/helper/AppStart.kt +++ b/app/src/androidTest/kotlin/com/lovoo/android/pickpic/instrumentation/helper/AppStart.kt @@ -53,6 +53,7 @@ object AppStart { val context = InstrumentationRegistry.getInstrumentation().targetContext.applicationContext InstrumentationRegistry.getInstrumentation().uiAutomation.grantRuntimePermission(context.packageName, android.Manifest.permission.WRITE_EXTERNAL_STORAGE) InstrumentationRegistry.getInstrumentation().uiAutomation.grantRuntimePermission(context.packageName, android.Manifest.permission.READ_EXTERNAL_STORAGE) + InstrumentationRegistry.getInstrumentation().uiAutomation.grantRuntimePermission(context.packageName, android.Manifest.permission.READ_MEDIA_IMAGES) // permissions for google camera val cameraPackage = getCameraPackageName(context)