• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Discussion]bluetooth fix?

ortrigger

Android Expert
I'm creating this thread to hopefully encourage developer discussion on what we can do to fix bluetooth in ICS. I realize that most people have moved on to cm10/aokp41 but there are some that still want the stock-based roms. I will help with what I can but my technical knowledge on this is still woefully thin.

As far as the problem itself goes, is it that the LG rom doesn't recognize the bluetooth drivers in the custom kernel, or is it something different that I don't understand?
 
Not a kernel savy person (since the droid razr doesnt use kernels...) but im gonna have to say driver issue. Similar to adreno problems in some roms?
 
I tried the hcd file from cm10 and put it in my stock ics ROM but it didn't seem to fix anything with Bluetooth maybe I'll try it out again
 
Not a kernel savy person (since the droid razr doesnt use kernels...)

I am by no means a dev or even remotely knowledgeable to be one but how can an android device not use a kernal? isn't that required for it to work? No offense intended, just very curious.
 
I am by no means a dev or even remotely knowledgeable to be one but how can an android device not use a kernal? isn't that required for it to work? No offense intended, just very curious.


The Droid Razr has a locked bootloader so we use what is called Safestrap. This tool mounts the system as read/writeable and uses motorolas locked boot image as our one and only kernel. We have a way to create a virtual kernel but it causes alot of trouble if your system isnt built for it.

Anyways back on track
 
Would there be a way to rewrite the way ics calls bluetooth to make it work or would that take the actual source code?
 
I'm creating this thread to hopefully encourage developer discussion on what we can do to fix bluetooth in ICS. I realize that most people have moved on to cm10/aokp41 but there are some that still want the stock-based roms. I will help with what I can but my technical knowledge on this is still woefully thin.

As far as the problem itself goes, is it that the LG rom doesn't recognize the bluetooth drivers in the custom kernel, or is it something different that I don't understand?
The kernel Bluetooth works, so does the system drivers, just not together. In order to get the kernel to work with the system you would need to decompile most of the framework files and replace all the bluetooth info with stuff designed to interface with our kernel. Alternatively, you could convince LG to actually give us the real kernel source that properly boots ICS as their config does not and continues to not boot. Other then that, I doubt this will ever be fixable as you'd need someone with deep knowledge in both android and bluetooth to fix it.
 
Thanks for the info neph. Have you checked the source released by lg for a -Werror flag? The Samsung galaxy camera kernel source had that and it caused the build to fail.
 
Thanks for the info neph. Have you checked the source released by lg for a -Werror flag? The Samsung galaxy camera kernel source had that and it caused the build to fail.
The build doesn't fail, and that's part of the problem. We can build the source code and it seems to work just fine, but if you stick that zImage into a boot.img, it won't boot. I'm dealing with the same BS while trying to help the guys in the Lucid forum. It builds, no errors, and yet won't boot. I even had them pull the config.gz file and it matched what I was building against. I completely believe that LG modded the code or kept something out that we need to boot ICS.
 
The build doesn't fail, and that's part of the problem. We can build the source code and it seems to work just fine, but if you stick that zImage into a boot.img, it won't boot. I'm dealing with the same BS while trying to help the guys in the Lucid forum. It builds, no errors, and yet won't boot. I even had them pull the config.gz file and it matched what I was building against. I completely believe that LG modded the code or kept something out that we need to boot ICS.

Totally agree. LG needs to come clean on the kernel sources.
 
I see. Well, at least I know more now than I did before. Thanks for the input guys. Next step for me is to start learning more legitimate android development...and work out the kinks with my laptop not wanting to work 100%.
 
Back
Top Bottom