Skip to content

Instantly share code, notes, and snippets.

@nidgetgod
Created September 13, 2017 07:50
Show Gist options
  • Save nidgetgod/6fd27835f7b74e56b01a3a85d661cbf1 to your computer and use it in GitHub Desktop.
Save nidgetgod/6fd27835f7b74e56b01a3a85d661cbf1 to your computer and use it in GitHub Desktop.
連續重複安裝 APP + 移除檔案 + 放入檔案
#!/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