adb:找不到设备

时间:2015-06-14 08:55:32

标签: android python adb kivy buildozer

我正在尝试使用Buildozer在我的Android手机上构建一个Kivy应用。但是adb找不到我的设备。这是我得到的错误:

dan@dan-asus:~/kivy$ adb usb
error: device not found
dan@dan-asus:~/kivy$ adb devices
List of devices attached 

我已在我的lsusb文件中添加了/lib/udev/rules.d/70-android-tools-adb.rules所提供的供应商和产品ID,如下所示:

# Lenovo A789
SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", ATTR{idProduct}=="7497", MODE="0666", OWNER="dan", TAG+="uaccess" 

有两个1.1和两个2.0 USB插座。尝试了所有四个。确保每次我做出更改时都重新启动adb,甚至尝试重新启动手机一次。

我错过了什么?

adb版本是1.0.31

1 个答案:

答案 0 :(得分:0)

I know this should be a comment, but I don't have enough reputation for that... so here is my "answer".

I can think of a couple of things that you don't mention specifically in your question:

  1. Do you have a file ~/.android/adb_usb.ini? If yes, is the vendor ID written there? (in your case should be 0x17EF in a single line). Try with that and restart your ADB server.
  2. Is ADB enabled in your device? You can check that with lsusb -v -d 17ef:7497 | grep -B 3 -i iInterface and look for some interface with class 255, subclass 66, protocol 1. That's your ADB USB interface in the device, if you don't find it, check the device's settings/configuration.

Hope it helps.