The source is available under the apache 2 licence
https://android.googlesource.com/platform/external/bluetooth/bluedroid/
And it looks like it is a linux kernel plugin. If you haven't already, I would suggest reading up on those.
That said, why? The effort of porting the full android bluetooth stack is going to be daunting. The main reason you would do it is because you want to avoid rewriting some app that uses it. However, that could easily end with you needing to pull in most if not all of the android ecosystem onto the embedded system to avoid rewriting some app.
You would likely be better served creating an abstraction layer over the bluetooth service and then maintaining two implementations for the specific embedded platform (which should already have drivers and documentation for their bluetooth chip) and the android bluetooth service.