Created
September 13, 2017 07:50
-
-
Save nidgetgod/6fd27835f7b74e56b01a3a85d661cbf1 to your computer and use it in GitHub Desktop.
連續重複安裝 APP + 移除檔案 + 放入檔案
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 [[ 1 ]]; do | |
echo '機器資訊' | |
adb devices -l | |
sleep 1 | |
echo '安裝 APP' | |
adb install -r app.apk | |
echo '移除檔案' | |
adb shell rm /storage/sdcard0/Android/data/file | |
echo '放入檔案' | |
adb push file /storage/sdcard0/Android/data/file | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment