diff --git a/devlib/utils/android.py b/devlib/utils/android.py index 90be900..3140e31 100755 --- a/devlib/utils/android.py +++ b/devlib/utils/android.py @@ -603,7 +603,7 @@ def adb_background_shell(conn, command, p = subprocess.Popen(full_command, stdout=stdout, stderr=stderr, shell=True) # Out of band PID lookup, to avoid conflicting needs with stdout redirection - find_pid = 'ps -A -o pid,args | grep {}'.format(quote(uuid_var)) + find_pid = '{} ps -A -o pid,args | grep {}'.format(conn.busybox, quote(uuid_var)) ps_out = conn.execute(find_pid) pids = [ int(line.strip().split(' ', 1)[0])