Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 270
Raju-san Avatar asked Nov 12 '15 02:11

Raju-san


People also ask

Why Android WiFi ADB plugin is not working?

There are many Android Studio plugins like Android WiFi ADB, Wifi ADB ultimate, ADB WiFi, etc. But sometimes those plugins will not work correctly due to your Android studio configuration, device issues or unknown errors.

How to connect to ADB server in Linux?

To connect use the device USB cable connector to the system. Then in above command prompt type command- It will display all list of all the connected devices. But, prior to this we should check that ADB server.

What is Android Debug Bridge ADB?

Android Debug Bridge (ADB) Connect to Device over USB, WiFi What is Android Debug Bridge (ADB)? Android Debug Bridge (ADB) is a command-line tool that allows you to communicate with a device. It is used to bridge communication between an emulator instance (Android device) and the background running daemon process (server).

How do I enable USB debugging in Android SDK?

Android SDK Platform-tools. Enable USB debugging option from ‘Developer Option’ in Android phone. Now, connect your Android device to the computer using USB cable. Open the local folder where Android SDK files has been saved ‘Android SDK >> Platform-tools’ eg: C:\android-sdk\platform-tools


2 Answers

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
like image 185
Gil Moshayof Avatar answered Oct 07 '22 03:10

Gil Moshayof


"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 ;)

like image 24
Thibault Fig Avatar answered Oct 07 '22 04:10

Thibault Fig