Adb Over Wifi

The Q has only one USB port. Since for most things you want the keyboard and mouse plugged in to that USB port, we should find another way to issue commands to the Q.

If you want more control and to issue command-line commands, you will want to get adb running over wifi. First go to Settings on your Q, click Wifi (this has an on-off switch on the right which should be on — don’t click the switch, just click the actual horizontal bar with the word “Wifi”), find the network name you are “Connected” to (it should be at the top) and click it. At the bottom of the popup window you will see your IP address — write this down. It should look something like

Next open a command prompt, navigate to <android-sdk-folder>/platform-tools, and type

adb connect <ip-address>:4321

inserting your IP address without the angled brackets. It should say Connected. Try it — type
adb devices


Now you can send the Q adb commands! adb’s functionality is detailed in many pages online and is too lengthy to include here, but click here for a little adb tutorial[coming] I made to get you poking around the Q’s innards. Hard-core hackers can skip this of course.

adb over wifi does have a couple of downers. (1) It can be slow sometimes, especially if your wifi signal strength at your computer or the Q is low, however it’s better than nothing, and it’s better than having to unplug your keyboard. (2) This method does not access your phone while in recovery mode (we used recovery mode when we rooted[] the device), so you can’t have the full set of tools you would normally have, however this is good for most things and you can always plug your USB cable back in if needed.

You may not want to type

adb connect <ip-address>:4321

every time you want to connect. You can write a script to do this, and save it somewhere so whenever you want to connect to your Q via adb, you just click on the script icon.

In Windows, you do this as follows:


In Linux, you create the following "" file:


#Make sure the next line points to the directory that houses the adb executable file
cd ~/android-sdk-linux/platform-tools
adb shell exit
adb connect <your-ip-address-here>:4321
adb shell am start com.cyanogenmod.trebuchet/.Launcher

Finally, if you need to disconnect, type

adb disconnect

If adb is playing up you can try restarting adb. Type these two commands:
adb kill-server
adb start-server

Note: The “adb over wifi” app from Google Play didn’t work for me, and it’s not really necessary anyway.

Some other methods of interacting with the Q are listed on the main page (e.g. if you want to download pictures, videos, or apps, you can connect your computer’s browser to the Q using the AirDroid app, etc. This may be easier than doing commands like ‘adb pull …’ and ‘adb push …’ to manipulate files).

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License