From 77c86261ee1200e8af1b8966137dc11f7cb2365f Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Mon, 3 Feb 2014 14:01:25 -0800 Subject: Add adb over Wi-Fi Change-Id: I6ada6c88e3a006abc4685b66d6decd1bec175941 --- docs/html/tools/help/adb.jd | 98 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/docs/html/tools/help/adb.jd b/docs/html/tools/help/adb.jd index c25990f..c339943 100644 --- a/docs/html/tools/help/adb.jd +++ b/docs/html/tools/help/adb.jd @@ -27,6 +27,7 @@ page.tags="adb"
  • Enabling logcat logging
  • Stopping the adb server
  • +
  • Wireless usage
  • @@ -1342,3 +1343,100 @@ application and sends 500 pseudo-random events to it.

    You can then restart the server by issuing any other adb command.

    +

    Wireless usage

    + +

    +adb is usually used over USB. However, it is also possible to use over +Wi-Fi, as described here. +

    + +
      + +
    1. +Connect Android device and adb host computer +to a common Wi-Fi network accessible to both. +We have found that not all access points +are suitable; you may need to use an access point +whose firewall is configured properly to support adb. +
    2. + +
    3. +Connect the device with USB cable to host. +
    4. + +
    5. +Make sure adb is running in USB mode on host. +
      +$ adb usb
      +restarting in USB mode
      +
      +
    6. + +
    7. +Connect to the device over USB. +
      +$ adb devices
      +List of devices attached
      +######## device
      +
      +
    8. + +
    9. +Restart host adb in tcpip mode. +
      +$ adb tcpip 5555
      +restarting in TCP mode port: 5555
      +
      +
    10. + +
    11. +Find out the IP address of the Android device: +Settings -> About tablet -> Status -> IP address. +Remember the IP address, of the form #.#.#.#. +
    12. + +
    13. +Connect adb host to device: +
      +$ adb connect #.#.#.#
      +connected to #.#.#.#:5555
      +
      +
    14. + +
    15. +Remove USB cable from device, and confirm you can still access device: +
      +$ adb devices
      +List of devices attached
      +#.#.#.#:5555 device
      +
      + +
    + +

    +You're now good to go! +

    + +

    +If the adb connection is ever lost: +

    + +
      + +
    1. +Make sure that your host is still connected to the same Wi-Fi network your Android device is. +
    2. + +
    3. +Reconnect by executing the "adb connect" step again. +
    4. + +
    5. +Or if that doesn't work, reset your adb host: +
      +adb kill-server
      +
      +and then start over from the beginning. +
    6. + +
    -- cgit v1.1