Skip to content

Smartwatch debug over Bluetooth

Stella Speziali edited this page Oct 12, 2017 · 3 revisions

You need to use an Android smartphone and install Android Wear from Google play store. Don't forget to enable developer mode.

Follow the instruction above to connect the smartwatch and the smartphone after connecting the smartphone to the computer over USB cable.

Smartphone

1 - Open the Android Wear app screenshot

2 - Open Android Wear settings screenshot

3 - Get the name of the smartwatch you need to debug screenshot

Device Name App Name (bottle color)
7e6f blue
0409 cyan
0215 red

4 - Scroll down to Debugging over Bluetooth and click on Device to Debug screenshot

5 - Select which device you want to debug screenshot

6 - Open the Terminal

Terminal

  • Check which devices are connected:
adb devices
  • Connect to the smartwatch via Bluetooth:
adb forward tcp:4444 localabstract:/adb-hub
adb connect 127.0.0.1:4444

If the smartwatch and the smartphone are connected via Bluetooth, you should see on the Android Wear application that the Host and the Target are connected. screenshot

  • Start activity on device:
adb -s 127.0.0.1:4444 shell am start -n processing.test.[AppName]/.MainActivity
  • Reboot the device:
adb -s 127.0.0.1:4444 reboot

Path to the applications forlder

cd /Users/stella_speziali/Documents/Github/eye_drop/Processus/Processing/Final_apk
Clone this wiki locally