README.md

June 10, 2019 ยท View on GitHub

ADB over WiFi

Android app that toggles a rooted device's Android Debug Bridge daemon (adbd) between USB and WiFi mode.

Overview:

  • this is a tool useful to Android developers

Background:

  • the normal way to connect an Android device to a computer is over USB:
    • connect Android device to computer by USB cable
    • depending on the computer's OS, make sure drivers are installed
    • test connection:
        adb devices
      
  • an alternative way to connect an Android device to a computer is over WiFi:
    • connect Android device to computer by USB cable
    • depending on the computer's OS, make sure drivers are installed
    • test connection:
        adb devices
      
    • configure Android device over USB to switch its ADB daemon to use wireless mode:
        adb tcpip 5555
      
    • reconnect computer to Android device over WiFi:
        adb connect <Android-IP>:5555
      
    • detach Android device from USB cable
  • an alternative way to connect a rooted Android device to a computer over WiFi:
    • configure Android device on its command-line to switch its ADB daemon to use wireless mode:
        su
        setprop service.adb.tcp.port 5555
        stop adbd
        start adbd
      
    • connect computer to Android device over WiFi:
        adb connect <Android-IP>:5555
      
    • configure Android device on its command-line to switch its ADB daemon back to USB mode:
        su
        setprop service.adb.tcp.port -1
        stop adbd
        start adbd
      

Screenshots:

stopped running

Notes:

  • minimum supported version of Android:
    • Android 1.0 (API 1)

Credits: