[odroid-pc]ubuntu12.04 android adb shell error: device not found
2015-08-01 13:22
477 查看
http://blog.csdn.net/silence_cdsn/article/details/38383421
1、通过apt-get安装adb
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb
将android设备连接至电脑,执行adb shell会提示“error: device not found”
2、将android设备连接至电脑,通过lsusb查看usb设备,如下红色部分对应的就是android设备
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 009: ID 18d1:4e12 Google Inc. Nexus One (debug)
Bus 003 Device 003: ID 0bda:b728 Realtek Semiconductor Corp.
Bus 003 Device 004: ID 17ef:6018 Lenovo
Bus 003 Device 005: ID 17ef:6019 Lenovo
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:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
3、创建adb_usb.ini文件,写入id
echo 0x18d1> ~/.android/adb_usb.ini
4、添加权限
sudo vim /etc/udev/rules.d/70-android.rules
加入以下内容,注意红色部分对应的就是lsusb得到的id
UBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e12",MODE="0666"
5、重启USB服务
$sudo chmod a+rx /etc/udev/rules.d/70-android.rules
$sudo service udev restart
6. 重启adb服务,adb devices有设备说明adb安装成功
$adb kill-server
$sudo adb start-server
$adb devices
List of devices attached
12345678900 device
1、通过apt-get安装adb
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb
将android设备连接至电脑,执行adb shell会提示“error: device not found”
2、将android设备连接至电脑,通过lsusb查看usb设备,如下红色部分对应的就是android设备
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 009: ID 18d1:4e12 Google Inc. Nexus One (debug)
Bus 003 Device 003: ID 0bda:b728 Realtek Semiconductor Corp.
Bus 003 Device 004: ID 17ef:6018 Lenovo
Bus 003 Device 005: ID 17ef:6019 Lenovo
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:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
3、创建adb_usb.ini文件,写入id
echo 0x18d1> ~/.android/adb_usb.ini
4、添加权限
sudo vim /etc/udev/rules.d/70-android.rules
加入以下内容,注意红色部分对应的就是lsusb得到的id
UBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4e12",MODE="0666"
5、重启USB服务
$sudo chmod a+rx /etc/udev/rules.d/70-android.rules
$sudo service udev restart
6. 重启adb服务,adb devices有设备说明adb安装成功
$adb kill-server
$sudo adb start-server
$adb devices
List of devices attached
12345678900 device
相关文章推荐
- 鸟哥的私房菜学习笔记 重要的Bash Shell的操作环境
- win7中使用xshell连接VMware下ubuntu失败
- linux关于bashrc与profile的区别(转)
- Bash的作业控制
- (转载)将Xcode的本地代码push到github仓库上,同时适用于命令行bash
- shell脚本:查找文本 与 简单的grep
- Linux中profile、bashrc、bash_profile之间的区别和联系
- 把 Mac 上的 bash 换成 zsh
- shell 指令 (一)
- shell脚本学习-入门
- ShellExecute使用详解
- 鸟哥私房菜学习笔记六 Bash
- shell调试选项
- SHELL学习
- shell的date日期循环方法:日期格式转时间戳计算,再将时间戳转回日期格式
- shell的date日期循环方法:日期格式转时间戳计算,再将时间戳转回日期格式
- shell敏感词文件批量生成sql
- linux shell进行文件去重
- linux登陆之后显示bash-3.00$
- linux shell 之函数