Skip to content

Commit

Permalink
chore: try setting root twice
Browse files Browse the repository at this point in the history
  • Loading branch information
edusperoni committed Jun 26, 2023
1 parent 448c51c commit a4d82a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test-app/runtests.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ task installApk(type: Exec) {

task runAdbAsRoot(type: Exec) {
doFirst {
println "Removing previous android_unit_test_results.xml"
println "Running adb as root"

if (isWinOs) {
commandLine "cmd", "/c", "adb", "-e", "root"
commandLine "cmd", "/c", "adb", "-e", "root"
} else {
commandLine "adb", "-e", "root"
commandLine "adb", "-e", "root"
}
}
}
Expand Down

0 comments on commit a4d82a6

Please sign in to comment.