Raju-san
Raju-san

Reputation: 166

Getting "Connecting over ADB to localhost:5277...failed"

Hi all i am trying to launch Desktop Head Unit(DHU) using android ADB. I have followed all steps what mentioned in installing DHU steps. But i am getting following error.

enter image description here

Please some body help me how to resolve this.

Upvotes: 8

Views: 11357

Answers (3)

Gil Moshayof
Gil Moshayof

Reputation: 16771

Make sure you perform the following steps:

  1. Make sure developer mode is enabled on your phone.
  2. Install Android Auto on your phone.
  3. Enable developer mode by tapping on the title in the app several times quickly.
  4. Once in developer mode, tap on the 3 dot menu on the top corner and click "Start head unit server".
  5. Connect your device to the computer.
  6. On your computer now, enable tcp forwarding via "adb forward tcp:5277 tcp:5277" (if this fails, you may need to call adb kill-server). You will need to perform this step any time you disconnect then reconnect your phone to the computer.
  7. Start the DHU by calling desktop-head-unit.exe

Upvotes: 17

Burak Karasoy
Burak Karasoy

Reputation: 1690

First connect your phone to computer then open android auto on your phone click menu icon(you need to enable developer mode on app first) click start head unit server.Try to open DHU on your computer.

Upvotes: 0

Thibault Fig
Thibault Fig

Reputation: 21

"Developer Mode

Finally, a note about developer mode, since a few people will certainly ask. It's still there and accessible in basically the same way. Instead of tapping several times on the lead image, you'll want to give ten quick taps right on the words "Android Auto" in the action bar. Just like before, a toast message will confirm that it worked. But don't expect anything new in the developer options screen, it's identical to the previous version." AndroidPolice

Enjoy your Android car development ;)

Upvotes: 1

Related Questions