Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I want to make my android device working as a bluetooth headset. I search the Android APIs, but I just find some interface which can make Android device working as a masters, not as a device(bluetooth headset). I'm also ready to modify the source codes of Android OS, and rebuild the OS. What I hope is, when Android devices connect to a mobile phone with bluetooth, the Android devices can work as a bluetooth headset. I don't know whether there are interfaces can do this, or I should modify the Android OS? Thank you!

like image 807
user2401226 Avatar asked May 20 '13 10:05

user2401226


1 Answers

You need to implement HFP profile in your android device, normally phone role is AG(Audio gateway) and headset roles is HF(Hands free) , think its as a server and client role. Connect RFCOMM channel to phone using UUID defined for HF , have SDP record updated,changes will be required to handle AT Commands as well. These will be the initial changes, once done you will need to handle audio packets(SCO packets) for voice calls

like image 62
ashish Avatar answered Oct 04 '22 20:10

ashish