Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 7 down vote accepted

Yes, just use ADB over USB and run adb shell. See

share|improve this answer

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

There is a app called Android Shell in Google Play. You can install it on your device and use the web UI ( 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 '14 at 15:56

Your Answer


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.