Use WiFi in Android to connect to ADB

Source: Internet
Author: User

Sometimes, due to various reasons, USB cannot be used to connect to the device for debugging. At this time, you can connect to the device through WiFi.

First, enable the WiFi settings of your phone to connect to the network. Then, you need to set the ADB connection port on your mobile phone. Here, you need a terminal application with the root permission. There are many such applications in various markets, select a suitable one. This article uses the Super Terminal professional better terminal.

Then, open the terminal application on your mobile phone and enter the following command:

Su
Setprop service. ADB. tcp. port 5555
Stop adbd
Start adbd

 

Next, you can view the IP address of your mobile phone and click on the connected Wi-Fi network to view the IP address of your mobile phone, as shown in:

Finally, go to the <Android-SDK>/platforms directory on your PC and run the following command:

ADB connectWifi. IP. Address:5555 (for example, ADB connect 192.168.1.115: 5555)

If the preceding configuration is correct, you can get the output of connected to 192.168.1.115: 5555.

In this way, you can use ADB to debug your mobile phone. You can also see the connected Mobile Phone devices in the eclipse device list, as shown in.

Related Article

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.