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?
Asked
Active
Viewed 6,103 times
6
-
See also: How to launch Google Keep from shell?. About how to find the activity to start, see e.g. What is the main activity of Google Keep called? – Izzy Mar 25 '13 at 11:30
1 Answers
5
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
.

Matthew Read
- 50,567
- 30
- 145
- 273
-
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
. – Dan Hulme Jun 03 '14 at 11:58