diff --git a/util/android-commands.sh b/util/android-commands.sh index ae065dac4d6..e1e4e57c44a 100755 --- a/util/android-commands.sh +++ b/util/android-commands.sh @@ -129,7 +129,7 @@ adb_shell_start_termux_activity() { take_screen_shot "launch_termux_after_start_activity" # the emulator can sometimes be a little slow to launch the app - run_with_retry 20 sleep 1 && adb shell "dumpsys window windows" | + run_with_retry 20 sleep 1 "&&" adb shell "dumpsys window windows" "|" grep -E "imeInputTarget in display# 0 Window{[^}]+com.termux\/com\.termux\.HomeActivity}" }