Ubuntu 12.04 adb 找不到设备
2014-02-09 20:31
239 查看
Ubuntu 12.04 adb 找不到设备
解决方法:
1、lsusb找到设备ID
手机未连接电脑时,输入命令 lsusb,
得到:
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:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 002: ID 062a:4101 Creative Labs
Bus 002 Device 003: ID 064e:e330 Suyin Corp.
Bus 002 Device 005: ID 04ca:3006 Lite-On Technology Corp.
手机连接电脑后,输入命令 lsusb,
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:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 002: ID 062a:4101 Creative Labs
Bus 002 Device 003: ID 064e:e330 Suyin Corp.
Bus 002 Device 005: ID 04ca:3006 Lite-On Technology Corp.
Bus 002 Device 007: ID 18d1:9025 Google Inc.
则新增的 Bus 002 Device 007: ID 18d1:9025 Google Inc. 即为我的手机
2、注册到udev的rules文件:
[html] view
plaincopy
vim /etc/udev/rules.d/51-android.rules
添加这个ID:1ebf,如下:
SUBSYSTEM=="usb", ATTR{idVendor}=="1ebf", MODE="0666"
保存文件并运行:
sudo chmod a+rx /etc/udev/rules.d/51-android.rules
sudo /etc/init.d/udev restart
运行结果如下:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service udev restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop udev ; start udev. The restart(8) utility is also available.
udev stop/waiting
udev start/running, process 14636
如果想添加的更详细,也可以这样:SUBSYSTEM=="usb", ATTRS{idVendor}=="1ebf", ATTRS{idProduct}=="7028",MODE="0666"
其中的ATTRS{idVendor}=="1ebf",要写自己手机的,比如我的为18d1。
3、启动adb的服务
这个网上的经验是在adb工具的目录下执行,我是按照做的,成功。
[html] view
plaincopy
cd ~/program/Android/sdk/platform-tools
sudo ./adb kill-server
sudo ./adb start-server
sudo ./adb devices
即可看到自己的手机设备
解决方法:
1、lsusb找到设备ID
手机未连接电脑时,输入命令 lsusb,
得到:
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:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 002: ID 062a:4101 Creative Labs
Bus 002 Device 003: ID 064e:e330 Suyin Corp.
Bus 002 Device 005: ID 04ca:3006 Lite-On Technology Corp.
手机连接电脑后,输入命令 lsusb,
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:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 002: ID 062a:4101 Creative Labs
Bus 002 Device 003: ID 064e:e330 Suyin Corp.
Bus 002 Device 005: ID 04ca:3006 Lite-On Technology Corp.
Bus 002 Device 007: ID 18d1:9025 Google Inc.
则新增的 Bus 002 Device 007: ID 18d1:9025 Google Inc. 即为我的手机
2、注册到udev的rules文件:
[html] view
plaincopy
vim /etc/udev/rules.d/51-android.rules
添加这个ID:1ebf,如下:
SUBSYSTEM=="usb", ATTR{idVendor}=="1ebf", MODE="0666"
保存文件并运行:
sudo chmod a+rx /etc/udev/rules.d/51-android.rules
sudo /etc/init.d/udev restart
运行结果如下:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service udev restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop udev ; start udev. The restart(8) utility is also available.
udev stop/waiting
udev start/running, process 14636
如果想添加的更详细,也可以这样:SUBSYSTEM=="usb", ATTRS{idVendor}=="1ebf", ATTRS{idProduct}=="7028",MODE="0666"
其中的ATTRS{idVendor}=="1ebf",要写自己手机的,比如我的为18d1。
3、启动adb的服务
这个网上的经验是在adb工具的目录下执行,我是按照做的,成功。
[html] view
plaincopy
cd ~/program/Android/sdk/platform-tools
sudo ./adb kill-server
sudo ./adb start-server
sudo ./adb devices
即可看到自己的手机设备
相关文章推荐
- Ubuntu 12.04 adb 找不到设备的解决方法
- Android问题集锦之十四:Ubuntu 12.04 adb 找不到设备的解决方法
- ubuntu 12.04LTS adb命令不识别设备的解决办法
- [转]windows下和Ubuntu下adb找不到设备的解决方法
- ubuntu下adb调试android找不到设备的解决方法
- Android:Ubuntu下执行Adb命令找不到设备
- Ubuntu下ADB调试Android找不到设备的解决方法
- Ubuntu下ADB调试Android找不到设备的解决方法
- ubuntu 12.04 中VirtualBox下xp连接usb设备和adb设备
- Ubuntu下ADB调试Android找不到设备的解决方法(转)
- 解决Ubuntu上ADB找不到设备的问题
- Ubuntu下ADB调试Android找不到设备的解决方法
- Ubuntu adb 找不到设备的解决方法
- ubuntu下adb找不到设备,List of devices attached下始终为空
- [转]解决Ubuntu上ADB找不到设备的问题
- Ubuntu下Adb调试Android找不到设备的解决方法
- Ubuntu下Adb调试Android找不到设备的解决方法
- Ubuntu下ADB调试Android找不到设备
- ubuntu下adb调试android找不到设备的解决方法
- ubuntu adb找不到设备