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 1


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.

  • 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 3, 2014 at 11:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .