summaryrefslogtreecommitdiff
path: root/automated/lib
diff options
context:
space:
mode:
Diffstat (limited to 'automated/lib')
-rwxr-xr-xautomated/lib/android-test-lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/lib/android-test-lib b/automated/lib/android-test-lib
index a4fd136..7330c8b 100755
--- a/automated/lib/android-test-lib
+++ b/automated/lib/android-test-lib
@@ -153,7 +153,7 @@ adb_shell_which() {
cmd="$1"
# Only latest version adb able to return exit code.
# Check if output of which is empty is a more reliable way.
- which_output="$(adb shell "which ${cmd}")"
+ which_output="$(adb shell "echo which ${cmd} | su")"
info_msg "Output of which: *${which_output}*"
if [ -n "${which_output}" ]; then
return 0