Unable to debug via bluetooth

Trying to debug the application for wear and tear. Before that, using the emulator, we now have a device. Follow the instructions and stop at the line

In the Android Wear satellite app, you will see the status change:

Host: connected Target: connected

Phone Status Host Connected: No target device connected.

What could be the problem? I have a feeling that it is impossible to connect the device.

Ps USB debugging on my phone and bluetooth debugging on watch turned on. The app for my phone (for my LG G Watch model) is also downloaded and installed.

+3


source to share


1 answer


1) Setting up devices for debugging

Enable USB debugging on PDA:

Open the Settings app and scroll down to the bottom.

If it doesn't have Developer Options, tap About Phone (or About Tablet), scroll down and tap the build number 7 times.

Go back and select Developer Options.

Enable USB debugging.

Enable Wearable Bluetooth Debugging:

Double-tap the home screen to open the Wear menu.

Scroll down and click on "Settings".

Scroll down. If there is no Developer Options option, click About and then click Build Number 7 times.

Click on Developer Options.

Enable Bluetooth debugging.

2) Setting up a debug session

Open the Android Wear app on your Pocket PC.

Click the menu in the upper right corner and select "Settings".



Enable Bluetooth debugging. You should see a tiny summary of the status below the option:

    Host: disconnected

    Target: connected

      

Connect your PDA to your computer via USB and run: adb forward tcp: 4444 localabstract: / adb-hub; adb connect localhost: 4444

Note. You can use any available port that you have access to.

In the Android Wear satellite app, you will see the status change:

Host: connected

Purpose: connected

3) Debug your application

Your wearable should show up as localhost: 4444 when starting adb devices. To run any adb command use this format:

      adb -s localhost:4444 <command> 

      

If there are no other devices connected via TCP / IP (namely emulators), you can shorten the command to:

      adb -e <command>

      

For example:

      adb -e logcat

      adb -e shell

      adb -e bugreport

      

+2


source







All Articles