1 #!/bin/bash 2 adb root 3 adb remount 4 adb sync 5 adb shell stop 6 adb shell start 7 sleep 5 # wait until device reboots 8 adb logcat -c; 9 adb shell am start -n android.test.app.system/android.test.app.TestActivity 10 adb shell am start -n android.test.app.vendor/android.test.app.TestActivity 11 adb logcat | grep android.test.app 12