Use ADB devices appears as follows:
List of devices attached
???????????? No Permissions
at the same time DDMS in The display device name also displays ???????????? , you cannot display the process name, and you cannot view Log .
Workaround:
1 , setting USB Permissions
because Ubuntu Such systems are default to non- Root identity is running, you want to use USB debugging, Need sudo support.
$ lsusb
Bus 002 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 002 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 001 Device 003:id 19d2:0249 ZTE WCDMA Technologies MSM
Bus 001 Device 002:id 8087:0024 Intel Corp Integrated rate Matching Hub
Bus 001 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 003 Device 002:id 17ef:6019 Lenovo
Bus 003 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
list,Bus 001 Device 003:id 19d2:0249 ZTE WCDMA Technologies MSM . This behavior ZTE Phone's USB use the port, record it, ID to 19d2 according to the information on the Internet, as a result of subsequent use Android the system has more and more mobile phones, each of which is assigned Idvendor , but the workaround is the same.
$sudo vim/etc/udev/rules.d/70-android.rules
Add the following content:
subsystem== "USB", attrs{idvendor}== "19d2", attrs{idproduct}== "0249", mode= "0666"
one of the Idvendor idproduct refers to USB of the ID can use Lsusb query to get.
For example, I have: Before you connect to other peripherals, just find the last one. Root Hub this line of attention.
ID 19d2 is idvendor ,0249 is idproduct
Run command, restart Udev :
$sudo chmod a+rx/etc/udev/rules.d/70-android.rules
$sudo Service Udev Restart
2 , do not need to restart the computer, reboot ADB server down on OK
( very important ) Unplug the USB Reconnect to perform:
sudo./adb kill-server
./ADB devices
./adb Root ( This step is important . )