I am running an app from ADB shell like this:
adb shell am start -n mypackage/.MainActivity
I need to terminate the app automatically after 10 seconds and start another application. I am trying to do something like this:
adb shell timeout -t 10 am start -n mypackage/.MainActivity
But unfortunately this does not work.
Output:
/system/bin/sh: timeout not found
Is there any way to make this work?