finish building test apps
This commit is contained in:
parent
ecd481f5ee
commit
5c918e725e
3 changed files with 113 additions and 45 deletions
16
test-on-android.sh
Normal file
16
test-on-android.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
APK_FOLDER="./result"
|
||||
|
||||
adb logcat -s SHADOWING &
|
||||
log_pid=$!
|
||||
|
||||
for pkg in $(ls ${APK_FOLDER} | grep '.apk$' | sed 's/.apk$//'); do
|
||||
adb install "${APK_FOLDER}/${pkg}.apk" &> /dev/null
|
||||
sleep 2
|
||||
adb shell am start -n "${pkg}/com.example.shadowing.MainActivity" &> /dev/null
|
||||
sleep 2
|
||||
adb uninstall "${pkg}" &> /dev/null
|
||||
done
|
||||
|
||||
kill "${log_pid}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue