Skip to content

Instantly share code, notes, and snippets.

@kgust
Created October 22, 2017 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgust/91e5de300d9ea910ad62929afd6e1b8c to your computer and use it in GitHub Desktop.
Save kgust/91e5de300d9ea910ad62929afd6e1b8c to your computer and use it in GitHub Desktop.
It's possible to run `abd` over wi-fi, but it requires a cable to enable it.

Rooting is not required. With USB cable connected, port 5555 opened across all involved firewalls and debug mode enabled

adb tcpip 5555

then look into wireless properties of your device and the network you use, to see which IP address have been granted to device (or configure your DHCP always to use the same for the device mac address). Then

adb connect 192.168.1.133

(were 192.168.1.133 is a sample IP address).

This is all. You can now use adb shell or adb install or adb upload or the like with USB cable plugged out.

To switch back to USB mode,

adb usb

The device may also revert back to USB mode after reboot.

This mode is needed for development of applications that use attached USB devices directly (USB port is used by device so cannot be used by ADB). It is briefly covered in the USB debugging section of the Android website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment