Android WiFi debugging details and simple examples

Android WiFi debugging

preface:

When developing Android, one of the problems we often encounter is that there are too many real machine debugging times, which will lead to the damage of the USB port, and the long-term charging of the mobile phone will also damage the mobile phone, so I thought about whether I can take USB debugging. I found it on the Internet, which is really OK, but it is cumbersome. Today we use three commands to complete the task

The first tool we need to use is ADB, which is based on TCP protocol

1. At the beginning, we need to turn on TCPIP mode for the mobile phone. At this time, we need to connect the mobile phone with USB cable

After writing this, USB is useless

2. You need to check the IP address of your mobile phone in many ways

If you want to use the command (if you use the command to check, the USB cannot be unplugged, and then unplug after checking)

If you don't use it, you can also find it on your mobile phone

After checking IP, you can connect

3. Connect your mobile phone

4. If you want to disconnect

It's done. Note that the mobile phone and PC should be on the same WiFi. In fact, as long as the PC can ping the mobile phone IP, there's no problem. What if there's no router? What's the 360wifi in your computer for?

Supplement:

If you want to switch back to USB mode

If you switch back, the next connection will also need data lines to turn on TCPIP. If you do not switch, you will no longer use the data line after debugging.

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>