Created
August 14, 2018 09:24
-
-
Save junyuecao/33d8f029bd6e24e02ea4591364724360 to your computer and use it in GitHub Desktop.
Vivo 自动安装
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
while true; do | |
current_page=`adb shell dumpsys activity top | sed -n '2p'` | |
pass_input=`echo $current_page | grep AccountVerifyActivity` | |
continue_install=`echo $current_page | grep PackageInstallerActivity` | |
confirm_install=`echo $current_page | grep PackageInstallerActivityOther` | |
if [ 'x'"$pass_input" != 'x' ];then | |
adb shell input text 'aaaa1111' | |
adb shell input tap 350 860 | |
fi | |
if [ 'x'"$confirm_install" != 'x' -o 'x'"$continue_install" != 'x' ]; then | |
adb shell input tap 480 1683 | |
fi | |
sleep 0.5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment