ut seems Mozilla did some work on that for FirefoxOS. So, it may be worthwhile looking into that? https://wiki.mozilla.org/B2G/Bluetooth-bluedroid