Closed Demon000 closed 3 months ago
This is how the SDP record is constructed when using QT. For DBus you'd have to provide the ServiceRecord property as a string containing XML (basically what dbus-monitor outputs). Also, the Channel and Role needs to be provided when using DBus, so the RFCOMM server gets registered. QT uses a legacy method for that.
How does this help? I was under the impression (with some preliminary testing) that Android only reacts to HFP connection and looks for Android Auto service only if a HFP sink is connected. Does the extra attributes defined in this service record make it work without having to connect HFP? That would in fact be very beneficial if it works for all!
How does this help? I was under the impression (with some preliminary testing) that Android only reacts to HFP connection and looks for Android Auto service only if a HFP sink is connected. Does the extra attributes defined in this service record make it work without having to connect HFP? That would in fact be very beneficial if it works for all!
That's exactly the case.
I could maybe make a PR that would help you with the changes, but my C++ is rusty.
Fixed with #72
Hi. Having looked at your implementation, I think you'd be better off by not connecting using HSP (since you don't really handle it) but rather providing a complete ServiceRecord property when registering the AA profile.
This could also leave the door open for using ofono to handle HSP properly I guess, besides cleaning up the code and making it make more sense.
(output of
sudo dbus-monitor --system
attached)