A few days ago, I built a device holder to place as many devices as possible on my desk without losing my sanity (https://medium.com/@hamen/first-hardware-project-of-2016-device-holder-4ef25670c507).

One more step in that direction is solving the charging issue:

N devices, with turned on screen, wifi and gsm data vs Powered USB Hub

Poor USB Hub cannot win against a Nexus 10: that thing sucks more energy than a black hole.

My solution is a plethora of USB chargers and WiFi ADB connection. We just need Android SDK and its ADB. First thing: list the devices

adb devices -l

List of devicesĀ attached

With the device list, we can now operate on any particular device. We need to setup the connection port first:

adb -s DEVICE_ID tcpip 5555

Setting up theĀ port

Once the port is properly configured, we can connect to the device. We need to know the device current IP address and we can find it in:

Settings -> Wi-Fi -> Advanced (in toolbar menu)

We can now connect to the device like this:

adb -s DEVICE_ID connect DEVICE_IP

Connected!

Ready to go! Fire up Android Studio and run your app.

WiFi connected device

Notes

If you want to go back to USB ADB, you can reboot your device or use:

adb usb