1 USB cable for debugging
Enter Settings->About phone->Custom build version(click 6 times) open USB mode
Enter Settings->About phone->Build number(click 6 times )open Developer options
Enter Settings->System->Advanced->Developer options-> open USB Debugging
6Then you can connect the device and the computer with a USB cable.If you need to use
fingerprint scanner, iris or USB camera and other functions, please turn off USB mode
first.So it is more convenient to use wifi adb to debug the device
2 Wifi adb for debugging
Note:No need open USB mode
Enter Settings->About phone->Build number(click 6 times )open Developer options
Enter Settings->System->Advanced->Developer options-> open USB Debugging
Make sure the PC and device are in the same wifi environment
-PC and device connected to the same WiFi (which can be mobile hotspot)
-The device is connected to a WiFi hotspot issued by the computer
Check the device IP address -Settings-Network&internet-wifi
adb connect 192.168.101.117:5555 (device wifi ip)
Display connected to 192.168.101.117:5555 (device wifi ip) is successful