[Android] wifi debug

 


  1. Connect your Android device and adb host computer to a common Wi-Fi network.
  2. Note: Beware that not all access points are suitable. You might need to use an access point whose firewall is configured properly to support adb.

  3. Connect the device to the host computer with a USB cable.
  4. Set the target device to listen for a TCP/IP connection on port 5555:
    adb tcpip 5555
    
  5. Disconnect the USB cable from the target device.
  6. Find the IP address of the Android device. For example, on a Nexus device, you can find the IP address at Settings > About tablet (or About phone) > Status > IP address.
  7. Connect to the device by its IP address:
    adb connect device_ip_address:5555
    
  8. Confirm that your host computer is connected to the target device:
    $ adb devices
    List of devices attached
    device_ip_address:5555 device
    

Your device is now connected to adb.

If the adb connection to your device is lost:

  • Make sure that your host is still connected to the same Wi-Fi network as your Android device.
  • Reconnect by executing the adb connect step again.
  • If that doesn't work, reset your adb host:
    adb kill-server
    

    Then start over from the beginning.

留言

熱門文章