[odroid-pc]ubuntu12.04 android adb shell error: device not found
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
$sudoadb start-server
$adb devices
List of devices attached12345678900 device
更多相关文章
- Android端搜索局域网中的设备
- Android设备电量监控
- 整理文:Android设备唯一码
- android中获取设备的型号、手机厂商以及手机唯一标识符IMEI
- 使用命令行ls命令的Android文件浏览控件,适合于root过的设备,可以
- PC&移动平台设备检测库(平台、版本、操作系统、方向)
- android 手机应用设备管理激活状态,获取激活状态,监听激活状态
- 敏捷软件测试的七个关键成功要素 Android设备到底侵犯了微软的什