yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] jc monkeyballs:
Has anyone gotten this to work on a CM 10.2 build?
[Nexus 4 General] AdamUpNorth:
Update from my test on the drive home with the phone charging.

Basically, no difference. Still had a stutter. But only one (during an hour of music) and it was within the first few minutes. Then no issues the rest of the time.

It's not perfect but the improved audio quality is worth it.

Thanks again cbaronne!
[Nexus 4 General] cbaronne:
Glad I could help... Now I'm just terrified to see if I ever get this stutter myself. The phone is always charging while playing bluetooth in my case though.

Mostly I'm just looking forward to CM10.2 getting a little more polished and can start running that instead. I'm sure by then, they'll have patched up the audio thing just like 10.1
[Nexus 4 General] NishantM:
Absolutely no stutters at all during one and a half hour of listening music on my Sony MW1. Sound quality is almost equal to wired headphones. Thanks again!

PS: Phone is completely stock, only rooted.
[Nexus 4 General] itlnstln:
Cbaronne, I incorporated your fix (328) into my ROM/Kang (http://xdaforums.com/showthread.php?t=2389440). I hope you don't mind. It works really well. Thanks!
[Nexus 4 General] hitokiri.pr:
Could you create a new flashable zip using the new files with the DEFAULT_SBC_BITRATE=345? Thanks!
[Nexus 4 General] karnoff:
I can't figure out this Bluetooth problem at all. I'm on Jellybro (cm10.2) an when I connect to my car stereo the music is a constantly skipping, unlistenable, I tried both these zips and it just FCs the Bluetooth as soon as I turn it on... I seem to be the only one with this problem. But I tried wiping and reflashing, still does it. Gotta wait for a CM fix?
[Nexus 4 General] muff99:
I'm on the Jellybro kang too and I can't use these libs either. I tried both zips from the OP and the flashable zip and doublechecked the permissions: Whenever I boot up with these libs in /system/lib/hw, bluetooth constantly FCs. Not sure how the Jellybro maintainer compiled his kang, he might be using some optimizations that might cause the incompatibility.

I'll ask the Jellybro maintainer if he can incorpoorate / cherrypick the commit mentioned in the first post.
[Nexus 4 General] itlnstln:
It's not hard to do on your own. Take the one I made a few posts up* and replace the two *.so files in the zip with the 345 files from the OP. Otherwise, I'll create one on Monday.

* Be sure to use the zip I posted. The original had an incorrect updater script.
[Nexus 4 General] cbaronne:
I suppose so... from the sounds of this thread, I don't think anyone with CM10.2 has gotten it to work. I suspect there's incompatibilities making it impossible to just drop these files in. I wish I knew more about this stuff in general so I could help! x.x

I think I'm sticking with stock until they get all that stuff ironed out on their end. Though I can't imagine it'll be too terribly long.
[Nexus 4 General] karnoff:
Yea, when official CM comes out I'm going to see if that fixes it. I can live without Bluetooth for a little bit
[Nexus 4 General] kmandel:
Initial Stutter

I don't have a quality problem. What I do have is a stutter that persists for maybe 10 seconds after I switch from one bluetooth device (car) to another (headphone). It stabilizes after that interval and doesn't stutter until I switch devices again.

I do my switch by turning off one bluetooth device and then turning on the other. Generally it picks up the new device by itself, but then does the stuttering for a while.

Does this have anything to do with the issue being discussed in this thread, and at any rate is there a way to avoid it?

I run stock and had this on all of 4.2.1, 4.2.2, and now 4.3
[Nexus 4 General] cbaronne:
I've never swapped between devices (only have my one), so I'm not too familiar with this issue. But yeah, this thread was created for the issues with bluetooth audio quality degraded on stock android - especially noticeable in the highs on high quality sources. I'm sure there's a fix out there though! Waiting on people to get their hands dirty with 4.3
[Nexus 4 General] fczeuner:
I don't know how to do much other than flash other people's work. (Roms, Kernels and Fixes). So I'm not an expert on anything but I just want to add this.

In on 4.3 JSS15J with the stock Kernel, I flashed mako-4.3-BTFix-328-ItlnStln.zip from the thread and my Bluetooth is sounding and working perfectly.

Just want to thank the OP for fixing one of the biggest Nexus 4 issues. :)
[Nexus 4 General] leader288:
Does this work for the JWR stock ROM?

---------- Post added at 12:10 PM ---------- Previous post was at 12:09 PM ----------

Are you on JSS or JWR build?
[Nexus 4 General] fczeuner:
I'm on JSS15J
[Nexus 4 General] itlnstln:
It works on both; tested personally.
[Nexus 4 General] InfinitiGuy:
Do you have some sort of Toyota? Looks like the same stereo as my Toyota Auris rental car.
[Nexus 4 General] muff99:
Sharp eye. Yes, I got a 2011 Toyota Yaris.
[Nexus 4 General] MajorGaz:
Anyone found a solution that works with Trickdroid?

Got a new set of bluetooth headphones and they have the distortion problem :(
[Nexus 4 General] AdamUpNorth:
cbaronne, how difficult would it be for you to whip up a version for the Nexus 7 (2012). I'm off to the cottage on Saturday and was hoping to use it as my audio source. I don't think I can simply use the Nexus 4 files.
[Nexus 4 General] cbaronne:
Not difficult at all... can kick it off before bed and have something here in the morning.
[Nexus 4 General] MajorGaz:
Long shot but are you able to make the same fix for the HTC One (Sense or Google Edition version)? :eek:
[Nexus 4 General] AdamUpNorth:
Sir, you are a gentleman. Many thanks.
[Nexus 4 General] cbaronne:
I do not believe I'm able to (could be wrong, will check tomorrow). However, I'd encourage you to try the files I posted already. I do believe (for stock android at least) they should work for 4.3 regardless of device. I'm not ably to try that personally, it's just a hunch. As long as you backup your old files before you try replacing them, you should be alright.
[Nexus 4 General] MajorGaz:
No huge rush, just wanting to know if its possible.

As for using those files, im pretty sure i tried it (although might have been on the HTC Sense ROM not the GE).

Will flash a Google Edition ROM and replace the files and see how i go.

Hopefully it will work

Thanks for the reply!
[Nexus 4 General] cbaronne:
A bit later than I expected, but this day was nuts. Uploading this and running, but I meant to check if these were identical to the ones I posted earlier... I'm curious if there's truly a difference between platforms
[Nexus 4 General] AdamUpNorth:
Well, it looks like Google is still actively working on it. See post 263.

https://code.google.com/p/android/issues/detail?id=39632#c263
[Nexus 4 General] AdamUpNorth:
Works like a charm on the Nexus 7. Thanks again cbaronne.
[Nexus 4 General] drwolcot:
Copied the files to my VZW GNEX and there is a big improvement in sound quality but I still hear quality issues a little. This is in my wife's Chevy Cruise with Bluetooth and standard speakers. Can def hear it on my home stereo but it is still improved
[Nexus 4 General] xxspark89xx:
Is it possible to get a flashable fix like this to work on CM10.2? I have an unlocked droid RAZR HD Maxx and had tried CM10.2 to see if I could get AVRCP 1.3 to work with my car stereo, but the quality of the audio sucked... pops, distortion, audio sounded "down-tempo"
[Nexus 4 General] itlnstln:
Just from the filesizes, bluetooth.default.so is definitely different: N4 - 996KB, N7 - 788KB.
[Nexus 4 General] ventu08:
I use the carbon 4.3 ROMs, but if I go to replace the BT files does not work anymore.
[Nexus 4 General] Zirillian:
Anyone found a solution that works with CM 10.2?
[Nexus 4 General] starquake64:
I installed the fix but my phone says there's an update. Do you have a patch for the new version ?
[Nexus 4 General] cbaronne:
I do not yet, though can probably build one tomorrow. Afaik, the update was only very minor, and this should still work for it.
[Nexus 4 General] AdamUpNorth:
The version in the OP that was compiled for JWR66V works for JWR66Y. Been running it since JWR66Y came out.

However, before you do the update you'll have to put back the original files or else the update will fail.

Once the update is complete, put back the patched files.
[Nexus 4 General] Zirillian:
Has anyone been able to get this working with the latest CM 10.2 nightlies?
[Nexus 4 General] kadolf:
I had stutters every time I passed an area with a lot of wifi networks. Especially when there are any networks my phone tries to connect to I experienced stutter - driving at my campus roads leads to some serious stuttering. Have you checked if your stuttering issue is somehow correlated to your position/route?
[Nexus 4 General] skytbest:
I'm trying this now on my VZW Galaxy S3 (I know this is meant for nexus) and when I replace the files my bluetooth will not turn on (just switches to on really quick and then back to off). I am on an AOSP 4.3 ROM (Latest PAC-MAN nightlies). Do you think there is a quick modification to make this work with the S3? How would I go about this?

Or if anyone knows if the fix exists for the S3 that would be awesome, I've been searching far and wide with no luck.
[Nexus 4 General] Dragooon123:
CM10.2 already has the DEFAULT_SBC_BITRATE set to 328 (see https://github.com/CyanogenMod/andr.../blob/cm-10.2/btif/src/btif_media_task.c#L157)
[Nexus 4 General] passlogin:
:good: Huge thank you to OP. Ever since I got my nexus 4, it always had crappy bluetooth audio playback. For a while I wondered if my speakers in the car were damaged also but I tried your fixed and it worked flawlessly. Crystal clear and rich sound now. This is confirmed working on the latest stock nexus 4 jwr66y :D
[Nexus 4 General] yeeahnick:
i have the same problem on my s3 running CM10.1.3 d2tmo stable, what can i do?
[Nexus 4 General] skytbest:
Nothing, unfortunately, I have been searching for a fix for a long time and have never found one. Let me know if you ever do, outside of going back to TW.
[Nexus 4 General] yeeahnick:
ok ill let you know if i ever fix it, please do the same =)

Tonight i will try to replace the 2 files mentionned here on post 261 https://code.google.com/p/android/i...s Owner Summary Stars&groupby=&sort=&id=39632

If that doesnt work i will try to disable bluetooth calling and just leave bluetooth media enabled, i heard that fixes it but still not a good fix since i need them.

After that i will try to go back to CM10.0 (4.1.2) because i know it works good on TW 4.1.2

If that doesnt work well HUGE SHAME ON GOOGLE because the ticket has been opened for 1 year now and still no fix from google (all they really have to do is revert to 4.1.2 bluetooth settings or add a menu to choose the quality of samplerate)... Of course i can use AUX but id much rather use bluetooth and i just got a new 2013 car with bluetooth intergrated id love to be able to exploit it to its full potential =(

On that good luck and have fun!
[Nexus 4 General] skytbest:
Haha, I'm in exactly the same boat. I did try going back to CM10 with no luck though (actually it might have been 10.1) :( I did not try disabling bluetooth calling however. But I think that doesn't apply to me, the device I'm using is called a Tunelink Auto its just a device that plugs into a cigarette lighter and catches BT media audio only. And then outputs via an aux cable into my car.

Please do report back!
[Nexus 4 General] yeeahnick:
Ok so i rolled back to CM10.0 (4.1.2) and bluetooth is even worse... The static remains and i have no bass what so ever.... I guess im stuck like you and i have to go back to ****wiz =(

Disabling bluetooth calling did nothing. And changing the 2 bluetooth files did nothing as well.
[Nexus 4 General] bombstyle:
Galaxy Note 3

Any hope for Galaxy Note 3? (I'm guessing no.)
[Nexus 4 General] foxdanger:
MAN! Maybe u can help-me.

I'm trying to raise the volume of my bluetooth phone unsuccessful..

This is what i tryed:

First I root my Nexus 4 with stock rom 4.3

I tryed Viper's 4 Android (newest version) with all configurations and modes (including install like user and like system app), nothing works...

I tryed Volume+, same, didnt work. In fact is lowering the volume. I can hear a fast loud volume (less the 1 second when I activate the boost) then back to limited volume :/

Then I install Franco.Kernel last version too. With headphones and speaker, the Franco boost works...

The I tryed everything again, V4A, Volume+ and NOTHING. The bluetooth phone still almost inaudible.

So, i was almost trying this FauxSound and then I read something what looks really bad in his description at play store:

"NOTE: DOES NOT BOOST/CONTROL BLUETOOTH... BLUETOOTH is 100% DIGITAL... THIS APP WILL NOT CHANGE BLUETOOTH VOLUMES OR GAINS!"

What this means? There is NO WAY to boost Bluetooth volume anymore???

I dont know what to do... Is anyway to do this? A really working way to boost the bluetoth phone volume? Or this is not possible?!

Anyone trying the same? Anyone has an Nexus 4 with 4.3 with this working?

Please help-me!
[Nexus 4 General] kmandel:
Bluetooth Crash

I don't know if this has anything to do with the quality issue in this thread, or if the fixes here are at all relevant.

I'm running the latest 4.3 stock update, but I have been having related problems in 4.1 and 4.2.

While listening to mp3 audio over ad2p bluetooth the Nexus 4 occassionaly stops playing the audio and the next thing I see is the "X" on the startup screen. The system is not actually crashing as I can see from uptime. so I guess its just the android run environment that has crashed.

I had similar problems in 4.1 and 4.2, though I believe some of the time it would manifest as a hang with a black screen and I had to power down/up and really reboot.

I assume its the bluetooth since I'm using it when this happens, but to be fair listening to audio is the only thing I do with the phone for sustained periods. what ever apps or browsing I do is generally only for a few minutes at a time.

I have used a variety of bluetooth headphones and also the car bluetooth and it has happened with all devices. Switching bluetooth connections seems to be an aggravation, but it can happen without a swtich. This happens maybe once every couple of hours, Sometimes more sometimes less.

Any ideas on what the problem is, or how to do track it down? Could this be a hardware problem resolvable under warranty?
[Nexus 4 General] AdamUpNorth:
So it looks like they've finally implemented this fix into Android 4.4. Check out the 4th code commit in the screen cap.
[Nexus 4 General] skytbest:
Is this something that could get rolled into CM10.2? Or would this have to wait until CM (or any other rom) is using 4.4?
[Nexus 4 General] hitokiri.pr:
Audio quality degraded

I am running Android 4.4 KitKat in my Nexus 4 and even though the distortion in the Bluetooth audio has been fixed, the quality has degraded significally. This fix won't work on the new 4.4 build. Anyone noticed this too?

EDIT: I cleared the data of Google Music, and audio quility seemed to have improved...
[Nexus 4 General] skytbest:
Ugh, this is seriously disheartening. I was so looking forward to a 4.4 build on my S3 so I could go back to normal operations in my car. How do you know the quality has degraded? Is it really noticeable?

I'm really fed up with all this. It is such basic functionality.
[Nexus 4 General] kmandel:
Where did you get 4.4 for Nexus 4?
[Nexus 4 General] AdamUpNorth:
Cbaronne, looks like the problem still exists in 4.4 (on the Nexus 5 at least). Are you able to work your magic and the fix to the Nexus 5 Android 4.4 files?
[Nexus 4 General] yeeahnick:
i just tried a CM11 4.4 beta build for galaxy s3 d2tmo and bluetooth audio is HORRIBLE (static and poping noise) in my car, probably worse then on 4.2 and 4.3 roms =(
[Nexus 4 General] blackhartct:
Running 4.4 on my Nexus and the Audio quality is perfect...
[Nexus 4 General] devhnh:
It is Bluetooth problem. My 4.4 is a port final. Car Bluetooth disconnect every 10'. A fix please?
[Nexus 4 General] NishantM:
Glad that they have fixed it in the 4.4 update. Just flashed the factory image, bluetooth sound quality is as good as the quality of wired headphones.
[Nexus 4 General] Demonic240:
In all three of my music apps (Pandora, iHeart Radio and Google Music) I have a horrible volume issue when using my bluetooth headset. The volume stays at max, and every attempt to lower it causes it to go back to max.

Running on factory 4.4 Rooted.
[Nexus 4 General] yeeahnick:
your lucky mine sounds like ****! im stuck using aux cable =(
[Nexus 4 General] Mr. Janderson:
Yes hitokiri, I too can perceive a significant degradation in overall audio quality when streaming to my car's radio, although I no longer hear the horrible static/distortion I used to, so they have improved... but still it's not perfect. I tested using both Google Music and PowerAmp, I notice the same degradation on both.

I guess I'll just accept it as it is until PURITY ROM makes a KitKat release, in their 4.3 version the audio was perfect... although the music did always skip once within the first few seconds of the first song, but it never really bothered me enough.
[Nexus 4 General] yeeahnick:
for me its the oposite, the sound quality is better (bass etc..) but the static and poping is worse then ever =(
[Nexus 4 General] jbrizz:
I've been on stock 4.4 and Purity 4.4 and the SQ has the same low bitrate sound that 4.3 had before I flashed the fix in this thread. Dammit Google :mad:
[Nexus 4 General] skytbest:
Any idea if this fixed can be flashed onto a VZW Galaxy S3 running an AOSP ROM?
[Nexus 4 General] jlewisnj:
Same running 4.4 on my Nexus 4 and the bluetooth to my car stereo sounds perfect, much better than in 4.3 where I could hear cracks and pop at low volume areas of the songs..

I did a full flash of 4.4 using fastboot, and put TWRP recovery back on... Weird thing is I never lost root when I put 4.4 on.

But I went ahead and reflashed SuperSU just to make sure.
[Nexus 4 General] blackhartct:
FYI: Nexus 4 vs Iphone5s bluetooth audio quality

Guys I have a 5s from my job and i've been using it to stream to my car radio. After testing both i would have to say that the Nexus sounds about 1000000 times better than the 5s.

IT sounds even better after flashing BLEND and testing.

Honestly I think we are just spoiled :silly:

So in all kit kat does bring the quality above iphone level.

For those of you who are having issues (poping/bad audio quality) it honestly might be your car stereos bluetooth. Alot of the car manufacturers did not implement the bluetooth stack properly.
[Nexus 4 General] yeeahnick:
Wheres this bluetooth fix you speak of?

---------- Post added at 11:07 AM ---------- Previous post was at 11:05 AM ----------

weird, iphones sound perfect in my brand new 2013 car and Android sounds like crap. The last time android sounded good was in the ICS days, when JB was introduced bluetooth got broken =(
[Nexus 4 General] jbrizz:
Check post 1 in this thread :o

Edit: The fix for 4.3 I meant. I don't know of one for 4.4 yet.
[Nexus 4 General] yeeahnick:
Thx

Is there a fix for cm10.2 because the fix in post 1 is for aosp
[Nexus 4 General] HellBouy:
Waiting for the fix for 4.4 .. :D there is a hug difference with and without the fix in 4.3 .. as a result, i don't want upgrade to 4.4 before the fix is available xD
[Nexus 4 General] audiosmurf:
SQ via BT in 4.4 PSX is horrible. Possibly even worse than in 4.3 before fix. I had to go back to 4.3 again, because its impossible to use. Highs and high mids are completely crushed and crackle immensely. How do the folks at Google/LG not notice this. I find it hard to imagine that they tested this and didnt notice it. A fix would be fantastic.
[Nexus 4 General] DarsVaeda:
I had no problems in 4.3 and I think the sound is even better in 4.4 now with my Anker InEars (lovely piece of hardware btw).

Also I can control the volume of the headset with the phone now.

In 4.3 the sound of the N4 would always stay the same and the buttons on the headset would just lower its own volume, now the volume is linked.

I hope another bug is fixed thou. As sometimes notification sound would still play through the device instead of the headset even it is connected. Need to test this.

Anyway nothing wrong with playback at all, no static, no stutters :)
[Nexus 4 General] rajat_red:
I have a pair of Sony SBH20 bluetooth headphones and I can confirm the sound quality has improved by a huge margin going from 4.3 to 4.4 stock. I don't claim to be an expert, but the difference is clearly noticeable. No more crackle in the bass, treble too isn't as shrill. There's very little difference in the sound between BT audio and regular headphones using the same IEMs. I'm more than happy. :)
[Nexus 4 General] audiosmurf:
after the fix, SQ in 4.3 was amazing as well. Maybe the ad2p bitrate usually scales by device thats connected, and the above fix somehow gives it a fixed value. Because I have the same problem with the same Car Stereo in the N7. Just as well as the fix from this thread turned the quality all the way up to aux quality.

EDIT: this also isnt working anymore on the latest 4.3.1 roms like AOKP or AICP
[Nexus 4 General] HellBouy:
i just tried to listen music streaming with bluetooth in my car, with 4.4 and it's sounds ****ty !

so i reflashed in 4.3 and apply bugfix.. Hope it will be soon available in 4.4.
[Nexus 4 General] HellBouy:
Nobody on this? :/
[Nexus 4 General] drwolcot:
On my Nexus 5 SQ is marginally better when connecting to certain Bluetooth devices. In my wife's car with factory Bluetooth it sounds bad but connecting to 2 aftermarket units a Pioneer and Alpine the audio sounds amazing and has been through all the updates. No doubt something changed but it seems to effect only certain Bluetooth devices
[Nexus 4 General] AdamUpNorth:
Drwolcot, what are the models of the Pioneer and Alpine decks. After having this problem across 3 Nexus phones I'm honestly ready to throw any amount of money at the problem.

As an aside, I've asked someone from the Nexus 4 forum to try a fix that worked for that phone fit the N5. No ETA on it as he's doing this out if the goodness of his heart. If it works I'll post here.
[Nexus 4 General] drwolcot:
I can get the model numbers when I get home.

I do now its not just Nexus phones that have this issue. I had the HTC One on Verizon with 4.2.2 and it had bad SQ on some bluetooth devices as well. My wife also has the Moto X on 4.4 and its SQ issues are present as well.... but not as bad as they were. Once I connect them to other aftermarket units they work fine.

I tested this on a 2013 Chevy Cruze bluetooth and 2014 Silverado Bluetooth and BlackBerry Bluetooth audio receiver for connection via RCA to a stereo
[Nexus 4 General] audiosmurf:
Its the same for me. BT audio is vital for me for upgrading to kitkat and right now I'm staying with miui v5, witch which this fix works as well BTW.
[Nexus 4 General] HellBouy:
But still on 4.3 ?
[Nexus 4 General] audiosmurf:
not sure what youre asking, but miui v5 is based on 4.2.2.

Is anybody trying to solve this issue or working on a patch like this one, just for 4.4? Purity 4.4.2 as well as CM11 latest nightly, have this problem for me on 3 different car radios.
[Nexus 4 General] HellBouy:
Hi, i just put OmniRom which is on 4.4.2. It include the FLAC patch (about CPU usage while listening flac music) and bluetooth patch too :) quality is better than 4.4.2 stock, and the rom is smoothy and really similar to 4.4.2 stock !

You can find their rom on their website ..i can't put a link sorry

Don't forget to DL GAPPS ;)
[Nexus 4 General] audiosmurf:
youre either imagining the improvement or we're having entirely different issues. Latest Omni 4.4.2 ist just as terrible as any other KK rom. Currently on 4.3.1 CM10.2 stable and the crackly, scratchy highs are finally gone. Quality is great. Clean and thin highs and solid mids and lows.
[Nexus 4 General] HellBouy:
Quality with omnirom 4.2.2 ( 6 january) is the same as 4.3 with the patch on first page of this topic for me.
[Nexus 4 General] audiosmurf:
describe whats actually bad about the quality. Or how has it improved.