ADB command has no data cable and can be used under WLAN

Source: Internet
Author: User

Reference link Address:

Https://developer.android.com/studio/command-line/adb

In general, use the ADB via USB. However, you can also use it via WLAN as described below.

  1. Connect your Android device and the ADB host computer to a common Wi-Fi network that both can access. Note that not all access points are applicable; You may need to use an access point that has the firewall configured correctly to support ADB access points.

    Note: If you try to connect to an Android Wear device, force it to connect to the WLAN by turning off Bluetooth on the phone to which it is connected.

  2. Connect the device to the host computer using a USB cable.
  3. Set the target device to listen for TCP/IP connections on port 5555.
    $ adb tcpip 5555
  4. Disconnect the USB cable from the target device.
  5. Find the IP address of your Android device. For example, on a Nexus device, you can access Settings > About tablet(or about phone) > Status > IP address to find IP addresses. Or, on an Android Wear device, you can access Settings > Wi-Fi Settings > Advanced > IP address Locate the IP address.
  6. Connect to the device and identify the device by IP address.
    device_ip_address
  7. Make sure your host computer is connected to the target device:
    $ adb deviceslist of devices attached device_ip_address : 5555 Device

Now you're ready to go!

If the ADB connection is lost:

    1. Make sure that your console is still connected to the same WLAN network as your Android device.
    2. Reconnect by performing the adb connect steps again.
    3. If you cannot connect, reset the ADB host:
      ADB kill-server

      Then, start the operation from the beginning.

ADB command has no data cable and can be used under WLAN

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.