echo "password"|sudo -S yum -y install usbutils
输入lsusb查看是否安装成功
$ lsusb
Bus 004 Device 005: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 004 Device 004: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 004 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
命令:
echo "password"|sudo -S lsusb -v |grep iSerial
输出中的iSerial就是adb devices 看到的串号
$ echo "password"|sudo -S lsusb -v |grep iSerial
[sudo] password for 80: iSerial 3 d9f0b772
iSerial 0
iSerial 1 0000:00:1d.0
iSerial 3 09ba716b
iSerial 3 3330c0f8
iSerial 3 179fa503
iSerial 4 KBSO95OZVSZH696P
iSerial 3 f01a6319