Make sure that the computer and the terminal belong to the same local area network, the terminal can open the hotspot and the computer connects to the hotspot;
Connect the phone via wifi:
1. Connect the phone to the USB port and enter adb tcpip 5555 (not connected in step 4) and then unplug the USB data cable ;
2. Input in the cmd window: adb connect ip address (eg: adb connect 192.168. 95.2);
Finally, the adb devices can be recognized successfully (without connecting the USB data cable)