Skip to content

Commit

Permalink
Remove device request permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
angelica-oliv committed Aug 14, 2021
1 parent 90ec739 commit 1639ae9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/main/kotlin/io/kranberry/environment/DeviceHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ object DeviceHandler {
Log.info("Starting the app: '$appPackage'")
DeviceHandler.appPackage = appPackage

grantAppsPermissions(device)
executeDeviceCommands(device)
device.pressHome()

Expand All @@ -54,16 +53,6 @@ object DeviceHandler {
device.executeShellCommand("settings put global animator_duration_scale 0")
}

private fun grantAppsPermissions(device: UiDevice) {
testEnvironmentProperties.run {
appPackages.forEach { currentPackage ->
permissionsGrantedToDevice.forEach { permission ->
device.executeShellCommand("pm grant $currentPackage $permission")
}
}
}
}

fun getDevice(): UiDevice {
return device
}
Expand Down

0 comments on commit 1639ae9

Please sign in to comment.