6

I have asked this question in StackOverflow, but I figured it should be asked here...

I need to run my android application from remote computer (in the same network) via SSH (not using ADB). How do I do that?

Thanks, Binyamin

5

You need to run an SSH server on your phone, such as SSHDroid.

You can launch adb shell from SSHDroid, 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.

| improve this answer | |
  • 1
    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 '14 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.