> ~/.android/adb_usb.ini$ echo "0x2b0e" >> ~/._ubuntu adb devices 没有设备">
赞
踩
前提,设备端的adb调试已打开。
1、查看Android设备idVendor:
$ lsusb
输出:
...
Bus 002 Device 054: ID 2b0e:177e
...
2、添加idVendor到adb_usb.ini:
$ echo "" >> ~/.android/adb_usb.ini
$ echo "0x2b0e" >> ~/.android/adb_usb.ini
重启adb,再执行`adb devices`,是可以列出设备的:
$ adb devices
输出:
List of devices attached
LE67A06190363280 unauthorized
3、添加udev的rules:
$ echo "" >> /etc/udev/rules.d/51-android.rules
$ echo 'SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="2b0e", MODE="0666", GROUP="plugdev"' >> /etc/udev/rules.d/51-android.rules
重启adb,设备端确认授权
$ adb devices
输出:
List of devices attached
LE67A06190363280 device
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。