Ubuntu 下ADB shell 报错 error: device not found
2015-02-04 14:23
615 查看
ubuntu环境下执行adb shell 时报错 error: device not found.
解决方法:
1.使用lsusb 查看usb设备,如下红色部分对应的就是android设备
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
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 0461:4e04 Primax Electronics, Ltd
Bus 003 Device 011: ID 2717:9039
Bus 003 Device 003: ID 17ef:6019 Lenovo
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
若不知道哪个是你的设备,可以拔掉后lsusb,然后对比即可.
2.创建adb_usb.ini文件,写入id
在home下寻找.android目录,在此目录下新建一个文件adb_usb.ini.
echo
0x2717> ~/.android/adb_usb.ini
3.添加权限
sudo vim /etc/udev/rules.d/70-android.rules
加入以下内容,注意红色部分对应的就是lsusb得到的id
SUBSYSTEM=="usb", ATTRS{idVendor}=="2717", ATTRS{idProduct}=="9039",MODE="0666"
4.重启USB服务
$sudo chmod a+rx /etc/udev/rules.d/70-android.rules
$sudo service udev restart
5.重启adb服务,adb devices有设备说明adb安装成功
$adb kill-server
$sudo adb start-server
$adb devices
List of devices attached
5cb00b6 device
解决方法:
1.使用lsusb 查看usb设备,如下红色部分对应的就是android设备
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
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 0461:4e04 Primax Electronics, Ltd
Bus 003 Device 011: ID 2717:9039
Bus 003 Device 003: ID 17ef:6019 Lenovo
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
若不知道哪个是你的设备,可以拔掉后lsusb,然后对比即可.
2.创建adb_usb.ini文件,写入id
在home下寻找.android目录,在此目录下新建一个文件adb_usb.ini.
echo
0x2717> ~/.android/adb_usb.ini
3.添加权限
sudo vim /etc/udev/rules.d/70-android.rules
加入以下内容,注意红色部分对应的就是lsusb得到的id
SUBSYSTEM=="usb", ATTRS{idVendor}=="2717", ATTRS{idProduct}=="9039",MODE="0666"
4.重启USB服务
$sudo chmod a+rx /etc/udev/rules.d/70-android.rules
$sudo service udev restart
5.重启adb服务,adb devices有设备说明adb安装成功
$adb kill-server
$sudo adb start-server
$adb devices
List of devices attached
5cb00b6 device
相关文章推荐
- ubuntu 14.04环境下执行adb shell 时报错 error: device not found.的解决方法
- Ubuntu adb devices :???????????? no permissions怎么办?(adb shell ,返回结果error: insufficient permissions for device)
- 解决 在Ubuntu上执行 $adb shell 出现 error:insufficient permissions for device 问题
- adb shell error: device not found android错误
- adb shell命令后出现error: device not found错误提示
- 输入:adb shell 出现 error:device not found解决办法
- adb shell ,出错 提示error: device not found
- Ubuntu 10.04 LTS adb shell提示:error: insufficient permissions for device
- adb shell 提示:error: device not found 连不上的一个解决方案
- 如何解决adb shell error:device not found
- 关于adb shell命令后报错error:device not found的一种解决方案
- [odroid-pc]ubuntu12.04 android adb shell error: device not found
- MX5 ADB 链接error: device not found
- 输入adb shell 时 提示error: more than one device and emulator
- error: insufficient permissions for device(adb shell连接不上问题)
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时,提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator
- 输入adb shell 时 提示error: more than one device and emulator