-
Notifications
You must be signed in to change notification settings - Fork 3
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.
1 - Open the Android Wear app
2 - Open Android Wear settings
3 - Get the name of the smartwatch you need to debug
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
5 - Select which device you want to debug
6 - Open the 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.
- 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
cd /Users/stella_speziali/Documents/Github/eye_drop/Processus/Processing/Final_apk