Skip to content

Commit

Permalink
add new permission to ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Franke committed Aug 17, 2022
1 parent 5b732e3 commit 57abe82
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57abe82

Please sign in to comment.