1. First, check the USB port information of the phone connection
Bus 003 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 006 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub
Bus 002 Device 007:id 0bb4:0c03 HTC (High Tech Computer Corp.)
Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 005 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub
Bus 001 Device 003:id 5986:01a6 Acer, Inc Lenovo Integrated Webcam
Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 004 Device 002:id 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 004 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub
2. find the ID of the port to which your phone is connected
The third line of HTC, this is my test machine, then the Read ID is:0bb4
3. Create a USB rule for Android Real computer
sudo gedit/etc/udev/rules.d/51-android.rules
Add the following to the file: (ID:0BB4)
ubsystem== "USB", sysfs{idvendor}== "0bb4", mode= "0666
Save and close the rule profile, and then change the configuration file permissions.
sudo chmod a+rx/etc/udev/rules.d/51-android.rules
4. Restart the USB and ADB services
sudo service udev restart
sudo adb kill-server
sudo adb devices
This completes the pre-commissioning of the real-machine configuration.
Build Android development environment and Android real-computer debugging under Linux