1. Install adb via Apt-get (if configured, can skip)
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb
Connect your Android device to your computer and the ADB shell will prompt "Error:device not found"
2, mobile phone first not connected to the computer, through the LSUSB to view the USB device , and then connect the Android device to the computer, through the LSUSB to view the USB device, more than that line is the Android device.
Bus 001 Device 002:id 8087:8008 Intel Corp.
Bus 002 Device 002:id 8087:8000 Intel Corp.
bus 003 Device 009:id 18d1:4e12 Google Inc. Nexus one (debug)
bus 003 Device 003:id 0bda:b728 Realtek Semiconductor Corp.
bus 003 Device 004:id 17ef:6018 Lenovo
bus 003 Device 005:id 17ef:6019 Lenovo
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
3. Create Adb_usb.ini file, write ID
echo 0xd1> ~/.android/adb_usb.ini
4. Add Permissions
sudo vim/etc/udev/rules.d/70-android.rules
Add the following to note that the Red section corresponds to the ID that LSUSB gets
ubsystem== "USB", attrs{idvendor}== "18d1", attrs{idproduct}== "4e12", mode= "0666"
5. Restart the USB service
$sudo chmod a+rx/etc/udev/rules.d/70-android.rules
$sudo Service Udev Restart
6. Restart the ADB service, ADB devices has a device stating that the ADB installation was successful
$ADB Kill-server
$sudo adb start-server
$ADB devices
List of devices attached
12345678900 Device
Fix Error:device not found