Original URL: http://www.xuebuyuan.com/1475698.html
ADB drivers on Ubuntu do not need to install as much as they do on windows, just write a configuration file, and here are the steps to set it up:
1. Add a device file: sudo vi/etc/udev/rules.d/51-android.rules
Add the following content
subsystem== "USB", env{id_vendor_id}== "04e8", attr{idproduct}== "6860", mode= "0666"
Note that the 04e8,6860,galaxy here are to be filled out according to their own devices, the next step is to obtain this information
2. Get device information
1 "LSUSB can list all USB devices
The following is displayed on my computer:
Bus 001 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 002 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 003 Device 003:id 18d1:0003 Google Inc.
Bus 003 Device 004:id 19d2:1382 ZTE WCDMA Technologies MSM
Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 003 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 004 Device 001:id 1d6b:0003 Linux Foundation 3.0 root Hub
Bus 001 Device 003:id 17ef:6025 Lenovo
Bus 002 Device 003:id 04f2:b2ea chicony Electronics Co., Ltd.
Here I have two Android devices, one mobile phone, one tablet, and ZTE's my phone, Google Inc. It's my tablet.
With the above information we can go to the following information:
19D2 is id_vendor_id.
1282 is idproduct.
Now we can finish that file.
2 "
There's a command we can find. Set up this file (all files on Linux)
Bus 003 Device 003--------------/dev/bus/usb/003/003
If you still want more information, you can also use the following command:
Udevadm info-a-P ' udevadm info-q path-n/dev/bus/usb/003/003 '
The information obtained is displayed in the format of the top configuration file, and the corresponding property can be found directly.
3. Restart the Udev service
sudo service udev restart
Use ADB start-server to open the service at this time
ADB devices See if the device is listed
If no permission is present, you need to re-open the service with root
ADB kill-server
sudo adb start-server
(ADB in the Android SDK directory under Platform-tools)
"Go" How to set adb driver in ubuntu12.04