Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I want to run some commands on my rooted android phone. It is not very practical to interact with a shell using the touch screen, therefore I wanted to run a daemon on it and connect to it from a PC. I can't use the wifi connection for that because it is not working properly. I figured that it should be possible to do it via bluetooth or USB, but I could not find information on how to do it.

Is there any ready-to-use solution?

share|improve this question

3 Answers 3

up vote 6 down vote accepted

Yes, just use ADB over USB and run adb shell. See http://developer.android.com/guide/developing/tools/adb.html#shellcommands

share|improve this answer

There is a app called Android Shell https://play.google.com/store/search?q=androidshell.io in Google Play. You can install it on your device and use the web UI (http://androidshell.io) to connect to the device and execute commands.

Disclaimer - I am the author of this app

share|improve this answer
    
How would this work in the situation the OP describes, where WiFi is not a working option? –  eldarerathis May 5 at 15:56

Before you run adb you have to install the developer kit and set up your SDK environment to detect your phone (instructions). Then you'll be able to use the android debug bridge, or adb, as @Matthew_Read suggests.

Connect your USB cables, check for a dialog on your phone to allow it to be mounted, and then run adb devices from your computer to confirm that your phone really is talking to adb. From there you can use adb shell to launch a shell environment.

share|improve this answer
    
Thanks for the clarification. –  Antoine Aubry Mar 22 '11 at 19:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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