#!/usr/bin/env bash
echo '-------- start --------'
for (( i = 0; i < 60; i++ )); do
#statements
adb shell am start -n com.zzbank.pibp/com.alipay.mobile.quinox.LauncherActivity
sleep 2
adb shell input tap 5 50
sleep 5
adb shell input swipe 500 800 500 300
sleep 3
adb shell input tap 500 500
sleep 5
adb shell am force-stop com.zzbank.pibp
done
echo '-------- end --------'
我们打开文本编辑器,输入 while true
do
echo hello
sleep 3
done
功能就是每隔3秒钟在屏幕中输出一个hello