Tuesday, July 24, 2012

How to connect to unknown android device using USB

>adb devices
List of devices attached
emulator-5554    device
????????????    no permissions

which means this device is unknown to adb yet.

try to find it is device id
>lsusb
Bus 001 Device 006: ID 19d2:0287 ONDA Communication S.p.A.

19d2 is the vendor id, 0287 is the product id.

>sudo /etc/udev/rules.d/51-android.rules
add a new entry at the end with vendor/product id above

>sudo restart udev

>adb kill-server
>adb start-server
>adb devices
List of devices attached
emulator-5554    device
04507242439fb497_MTPADB    device