Originally Posted by Talbes
Talbess here from miui-au.
just wondering if you are able to get Spirit Radio working with MIUI GB release. The FM radio has been absent from all MIUI GB releases as is hcitool.
I have tried putting hcitool back but it won't run and when I install Spirit Radio it doesn't connect to anything.
Just wondering if its some other missing modules or is it something MIUI have removed from CM7 that is stopping it.
Hi Talbess. I haven't tried, but I hope it's possible some how.
Some time back I tried to get hciattach, hcitool etc running on a sense ROM (Blayo) based on the stock HTC ROM for the Legend, but I was not successful after a few days of trying. I'm not too experienced with the innards of Bluetooth however.
Basically, I just need some way to get direct HCI access, even if root is required (but preferably not).
I trawled through MANY threads over many days trying to find someone who managed to do this on Android but found nothing. Supposedly the PyBluez guys did it, but I tried their scripts and they didn't work, except I think on CM with root. I tried some fancy tricks with the handles from the Java BT APIs but no go.
Even on CM, from NDK code I could not access the parts of HCI I needed. Android seemed to let me run the equivalent of "hcitool cmd 4 1" (Get BT version), but wouldn't allow me to talk to the FM.
I WAS able to write a daemon that could be started by my app, and the daemon could talk directly to the Bluez stack and FM just fine. But this only worked on CM, and with root to install the daemon (Although I think I know the trick to avoid this now).
AFAICT, hcitool is pretty simple and just talks directly to the libbluetooth stack like my daemon did. So if it won't run, then my daemon wouldn't either. I considered D-Bus APIs but never looked too far into it and couldn't see any HCI api there.
But assuming we have root and can modify the kernel or whatever, there has to be a way to do this.
Over the next few days I'm going to put a stock, or other Sense ROM back on my Desire HD and will be looking for some way to get my app running there. If anyone can recommend a Sense/Stock like ROM suitable for this, please let me know.
Perhaps I'll find some way for stock and hopefully your MIUI GB as well.