9

I am attempting to modify the AOSP android image for Nexus 5 to include support for Bluetooth A2DP Sink. I've found that Google was nice enough to include a hidden build target for the Nexus 5.

https://android.googlesource.com/device/lge/hammerhead/+/android-5.0.1_r1/car_hammerhead.mk

That includes modified Bluedroid configuration files that allow the device to advertise the A2DP Sink service over Bluetooth. It also changes the class of device to be a Bluetooth Automative Carkit and modifies the configuration of the Bluetooth.apk to support A2DP Sink and the AVRCP controls service.

This got me about 75% of the way there. I tested this much out by grabbing a KitKat phone and pairing to the modified build on the Nexus 5. It correctly advertises the A2DP Sink service and allows my KitKat phone to connect to the A2DP Sink Service. From the KitKat phone, it appeared to even allow me to stream music to the Nexus 5. But music is never heard on the Nexus 5. I even captured the HCI traffic on the Nexus 5 and found that the music is in fact getting streamed to the phone.

The issue is that the Bluetooth device receives the audio stream, but the audio is never routed to the speakers. Does anyone have any idea how I can route the A2DP stream to the Nexus 5's speakers?

andromation
  • 106
  • 1
  • 4
  • 1
    I was also looking into archieving this functionality, did you make any further progress? Please update me :) – PieterAelse Feb 03 '15 at 10:41
  • Nothing yet, I should get some time in a few weeks to really dig in and figure it out. In the mean time, please update me if you get any further with it! – andromation Feb 04 '15 at 15:53
  • I didn't look any further into this because, maybe in the future. Any updates on your side? – PieterAelse Mar 02 '15 at 09:06
  • 1
    See my answer here: http://stackoverflow.com/a/31458979/2327227 – nilo Jul 16 '15 at 15:57
  • 1
    @andromation currently i'm trying to achieve this functionality and have same problem, did you make any progress ? Please share ) – tchelidze Jan 27 '17 at 15:55

0 Answers0