Android - Adb over Wifi and random disconnects

Android debug bridge being an application protocol can be run on top of different transport protocols. Most often used is over USB, however it can be run over WiFi. This could be used to quickly isolate random adb disconnect issues as the application layer protocol stays the same over all physical transports.

   * Make sure developer options is turned on and the host machine is authenticated for adb usage.
   * Connect the device via USB and request for the adb on the device to be restarted over TCP

                 adb tcpip 5555

   * Disconnect USB
   * Find the IP address of the device via Settings > About Phone > Network

             

   * Connect to the device over TCP via

                 adb connect ip_address:5555

   * Disconnect from previously connected device.

                 adb disconnect

 For folks running CyanogenMod, a developer options makes the setup quite simple. CM11 has this feature (ADB over network),


No comments: