HFP implementation for Android

1.1k views Asked by At

I want to implement HFP in Bluetooth for Android Marshmallow . Can anyone share the related document or provide me your guidance

1

There are 1 answers

0
Mahesh Mohandasan On

I have also tried to implement HFP or rather control HFP via an android app. The thing is HFP public api is hidden and you only get methods to get connected devices, connection states etc. and the connections is handled automatically. But if you want to get access to the hidden APIs, with which you could connect/disconnect HFP profile and get another set of features, you would need to use java method of reflections. You can use this android things code as a reference. Just refer to how they have implemented disconnect method in a2dp sink. For the hfp part I have only tried exposing connect and disconnect and nothing else. Also as far as I know, keep in mind that, google doesn't recommend using the hidden APIs and can withdraw them anytime so you need to keep a watch on the new releases. Hope this helps!