How to use an Android device as a Bluetooth headset for another mobile phone?

I want my Android device to work as a Bluetooth headset. I am looking for the Android API, but I just found some interface that can make the Android device work as a wizard, and not as a device (bluetooth headset). I am also ready to change the source codes of the Android OS and rebuild the OS. I hope that when Android devices connect to the mobile phone with Bluetooth, Android devices can work as a Bluetooth headset. I do not know if there can be interfaces, or should I change the Android OS? Thanks!

+7
source share
1 answer

You need to implement the HFP profile in your Android device, usually the role of the phone is AG (audio gateway), and the role of the headset is HF (Hands free), consider its server and client roles. Connect the RFCOMM channel to the phone using the UUID defined for HF, update the SDP record, changes will also be required to process AT commands. These will be the initial changes, after execution you will need to process audio packets (SCO packets) for voice calls

+1
source

All Articles