I need to run my Android application from a remote computer (in the same network) via SSH (not using ADB). How do I do that?
1 Answer
You need to run an SSH server on your phone, such as DroidSSH.
You can launch adb shell
from the SSH session terminal, and then run am start -a android.intent.action.MAIN -n <qualified-app-name>
. For example, <qualified-app-name>
is something like com.android.settings/.Settings
.
-
2You don't need to run
adb shell
before usingam
.am
works like any other shell command, so you can run it from a SSH session directly, unless the SSH server dicks around with your$PATH
. Jun 3, 2014 at 11:58