Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Android Wear Device over USB

Is this possible to debug wear device over USB, not Bluetooth? By Bluetooth it is possible, but when i'm connecting watch to PC via USB, in adb i have:

adb devices
List of devices attached
????????????    no permissions
like image 907
Velius Avatar asked Nov 18 '14 15:11

Velius


2 Answers

I use Ubuntu 14.10 as OS and had to run these steps to get my Wear recognized (source: http://developer.android.com/tools/device.html, under step 3):

  1. Get your Wear's vendor ID from here: http://developer.android.com/tools/device.html#VendorIds
  2. Log in as root and create this file: /etc/udev/rules.d/51-android.rules
  3. Add this line, and replace ???? by your Vendor ID:
    SUBSYSTEM=="usb", ATTR{idVendor}=="????", MODE="0666", GROUP="plugdev"
  4. Save and execute chmod a+r /etc/udev/rules.d/51-android.rules
  5. Reconnect your Wear, and wait for the Permission-Dialog to show (on your Mobile!)

EDIT:

here is a complete 51-android.rules file to allow any kind of android device

like image 85
danbaechtold Avatar answered Sep 21 '22 05:09

danbaechtold


Restart ADB with root privileges.

sudo killall adb
sudo adb
like image 36
corazza Avatar answered Sep 23 '22 05:09

corazza