Connect adb with wifi and adb with wifi
Generally, USB is used to connect a computer to an Android device. However, wifi can also be used to connect to an Android device through a standard TCP/IP connection.
Step 1: Set --- WiFi --- advanced to view the IP address of the current WiFi;
Run the following command:
Complete.
Wifi key display adb cannot connect to mobile phone how to do
1. root your andorid Device
2. Install the wireless adb tool (which can be downloaded from google play) and enable adb.
3. The computer controller and android devices are connected to the same network to view the IP addresses of android devices.
4. Run the adb connect IP address and port command on the computer. If the port is not written, the default value is 5555 (for example, adb connect 192.168.1.2: 5555)
Q: What is the command for adb to enable wifi?
USB connection code adb shell ping-c 2 127.0.0.1
Enable wifi command adb shell svc wifi enable | adb shell chmod 777 data/local/tmp