Answer the question
In order to leave comments, you need to log in
Android: how to run application from command line?
Hello.
There is a script that I run at system startup:
prevconfig=$(getprop sys.usb.config)
if [ "${prevconfig}" != "${prevconfig#rndis}" ] ; then
echo 'Bla bla' >&2
exit 1
fi
am start -n my.package.name/.MyActivityName
Answer the question
In order to leave comments, you need to log in
Specify the full path to am.
You can find it in the terminal
which am
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question