finish building test apps

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-10-31 14:28:07 +01:00
parent ecd481f5ee
commit 5c918e725e
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
3 changed files with 113 additions and 45 deletions

16
test-on-android.sh Normal file
View 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}"