Velius
Velius

Reputation: 93

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

Upvotes: 7

Views: 6629

Answers (3)

corazza
corazza

Reputation: 32374

Restart ADB with root privileges.

sudo killall adb
sudo adb

Upvotes: 5

danbaechtold
danbaechtold

Reputation: 133

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

Upvotes: 12

Michał Tajchert
Michał Tajchert

Reputation: 10383

You need to allow ADB debugging in Developer options on Wear device, and after you connect watch-PC by USB you will be prompted on the phone to "allow USB debugging for particular PC", you click yes and your smartwatch should be visible on adb list, also you should see log and be able to deploy apps right away - just as any phone in debugging mode.

Upvotes: 0

Related Questions