Ubuntu 下ADB shell 报错 error: device not found
来源:互联网 发布:西安数据录入兼职 编辑:程序博客网 时间:2024/05/17 02:47
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- Ubuntu 下ADB shell 报错 error: device not found
- ubuntu 14.04环境下执行adb shell 时报错 error: device not found.的解决方法
- adb shell命令输入dos窗口后,报错error:device not found
- >adb shell 提示:error:device not found
- adb shell “error:device not found”
- 解决adb调试报错error:device not found
- 解决adb调试报错error: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
- [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,提示device not found
- adb push 时报错:error: device not found
- audio feature
- Android WebRTC 音视频开发总结(五)- 产品演示
- OpencCV创建专属的视频播放器
- 如何解压 tar 文件到不同的目录中
- android 之 数据传递
- Ubuntu 下ADB shell 报错 error: device not found
- poj_1062
- PhoneGap+Cordova+SenchaTouch-03-日期组件的使用与本地化
- Linux开发环境搭建与使用——ubuntu挂载到开发板某个目录
- Android IOS WebRTC 音视频开发总结(六)- iOS注意事项
- ACM #1037 : 数字三角形
- Mac卸载mysql的方法
- Android ScrollView嵌套ListView问题
- VMware 10.0.2 安装 Red Hat 5.8