ubuntu 14.04环境下执行adb shell 时报错 error: device not found.的解决方法
2017-10-27 10:48
936 查看
解决方法:
1.先在不接入android设备的情况下,使用lsusb 查看usb设备,然后在接入android设备的情况下,使用lsusb
查看usb设备,如下红色部分对应的就是android设备
(1)不接入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 004: ID 0bda:0184 Realtek Semiconductor Corp. RTS5182 Card Reader
Bus 003 Device 003: ID 413c:2113 Dell Computer Corp.
Bus 003 Device 002: ID 24ae:2002
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(2)接入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 004: ID 0bda:0184 Realtek Semiconductor Corp. RTS5182 Card Reader
Bus 003 Device 008: ID 1f3a:1007 Onda (unverified)
Bus 003 Device 003: ID 413c:2113 Dell Computer Corp.
Bus 003 Device 002: ID 24ae:2002
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
2.创建adb_usb.ini文件,写入id:0x1f3a
在home下寻找.android目录,在此目录下新建一个文件adb_usb.ini.
echo0x1f3a>
~/.android/adb_usb.ini
3.添加权限
sudo gedit /etc/udev/rules.d/51-android.rules
加入以下内容,注意红色部分对应的就是lsusb得到的id
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a",
ATTRS{idProduct}=="1007",MODE="0666"
4.重启USB服务
$sudo chmod a+rx /etc/udev/rules.d/51-android.rules
$sudo service udev restart
5.重启adb服务,adb devices有设备说明adb安装成功
$adb kill-server
$sudo adb start-server
$adb devices
List of devices attached
86449a88572700000000 device
1.先在不接入android设备的情况下,使用lsusb 查看usb设备,然后在接入android设备的情况下,使用lsusb
查看usb设备,如下红色部分对应的就是android设备
(1)不接入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 004: ID 0bda:0184 Realtek Semiconductor Corp. RTS5182 Card Reader
Bus 003 Device 003: ID 413c:2113 Dell Computer Corp.
Bus 003 Device 002: ID 24ae:2002
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(2)接入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 004: ID 0bda:0184 Realtek Semiconductor Corp. RTS5182 Card Reader
Bus 003 Device 008: ID 1f3a:1007 Onda (unverified)
Bus 003 Device 003: ID 413c:2113 Dell Computer Corp.
Bus 003 Device 002: ID 24ae:2002
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
2.创建adb_usb.ini文件,写入id:0x1f3a
在home下寻找.android目录,在此目录下新建一个文件adb_usb.ini.
echo0x1f3a>
~/.android/adb_usb.ini
3.添加权限
sudo gedit /etc/udev/rules.d/51-android.rules
加入以下内容,注意红色部分对应的就是lsusb得到的id
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a",
ATTRS{idProduct}=="1007",MODE="0666"
4.重启USB服务
$sudo chmod a+rx /etc/udev/rules.d/51-android.rules
$sudo service udev restart
5.重启adb服务,adb devices有设备说明adb安装成功
$adb kill-server
$sudo adb start-server
$adb devices
List of devices attached
86449a88572700000000 device
相关文章推荐
- 解决 在Ubuntu上执行 $adb shell 出现 error:insufficient permissions for device 问题
- Android手机Mac OSX下执行adb shell提示device not found解决方法
- 如何解决adb shell error:device not found
- 关于android的adb错误:error:device not found解决方法
- Ubuntu 下ADB shell 报错 error: device not found
- ubuntu环境下adb shell启动方法解决你的烦恼
- ubuntu终端执行shell脚本报command not found解决方法
- ubuntu环境下adb shell启动方法解决你的烦恼
- 输入:adb shell 出现 error:device not found解决办法
- 执行命令mm出错以及运行adb shell出现insufficient permissions for device错误的解决方法
- cmd下输入adb shell事遇到 device not found的解决方法
- Ubuntu执行update之后Reading package lists... Error!解决方法
- [odroid-pc]ubuntu12.04 android adb shell error: device not found
- Shell脚本执行时出现declare: not found的解决方法
- ubuntu 14.04 编译android4.0 出现gcc-version.sh: line 11: cc: command not found错误解决方法
- 嵌入式 Shell脚本执行时出现declare: not found的解决方法
- 在Eclipse中执行Andorid test preject提示The connection to adb is down, and a severe error has occured.解决方法
- DeviceMonitor Adb connection Error:远程主机强迫关闭了一个现有的连接 解决方法
- shell脚本执行时报"bad interpreter: Text file busy"的解决方法
- Ubuntu 14.04 Android 环境搭建错误解决(adb)