6

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?

Andrew T.
  • 15,988
  • 10
  • 74
  • 123
MByD
  • 186
  • 1
  • 5

1 Answers1

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
  • 2
    You don't need to run adb shell before using am. 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