ubuntu 14.04环境下执行adb shell 时报错 error: device not found.的解决方法
来源:互联网 发布:数控编程东方明珠图 编辑:程序博客网 时间:2024/04/28 05:28
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 attached86449a88572700000000 device
- ubuntu 14.04环境下执行adb shell 时报错 error: device not found.的解决方法
- Ubuntu 下ADB shell 报错 error: device not found
- adb push 时报错:error: device not found
- Android手机Mac OSX下执行adb shell提示device not found解决方法
- >adb shell 提示:error:device not found
- adb shell “error:device not found”
- ADB push error : device not found 解决方法
- [Android] adb shell 显示 error: device not found 的解决办法
- adb pull 时报错device not found
- adb error: device not found
- adb shell 出现: error: device not found android
- 输入:adb shell 出现 error:device not found解决办法
- 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
- Android adb error: “device not found” on Ubuntu
- 关于adb shell命令后报错error:device not found的一种解决方案
- Django 模板继承
- C语言预习预处理
- 单元格点击事件
- linux 查看系统版本
- Vue.js+Django+Gunicorn+Python3+Nginx+Ubuntu16.04
- ubuntu 14.04环境下执行adb shell 时报错 error: device not found.的解决方法
- Mac OSX 安装phpredis最详细步骤
- 毕业入职两个月的所见所闻——Java,MyBatis,MySQL,JavaScript
- java 中的包
- 连接字符串属性
- Vim操作指南
- 时间倒回2016年6月,你会支持以太坊硬分叉吗?
- 程序员黄金时代再现:智能合约开发红利来袭
- tar命令的详细解释-2