解决adb无法识别

来源:互联网 发布:域名中.net是什么意思 编辑:程序博客网 时间:2024/04/29 20:20
终端下输入

lsusb

结果:

Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 015: ID 04ca:0061 Lite-On Technology Corp.
Bus 003 Device 003: ID 413c:2107 Dell Computer Corp.
Bus 003 Device 016: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II]
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

其中我的手机是Ltd GT-I9100 Phone [Galaxy S II],记下这一行的04e8:6860

然后输入一下指令(讲其中的ATTR{idVendor}改为04e8,MODE改为6860):

echo'0x1782' | tee -a ~/.android/adb_usb.ini

echo'SUBSYSTEM=="usb", ATTR{idVendor}=="1782",MODE="0666", GROUP="plugdev"' | tee -a/etc/udev/rules.d/51-android.rules

chmoda+r /etc/udev/rules.d/51-android.rules

serviceudev restart

adbkill-server

adbstart-server

0 0
原创粉丝点击