[GUIDE][OREO][8.0]Enable custom Bluetooth audio codecs in Mi A1 Stock ROM - Xiaomi Mi A1 Guides, News, & Discussion

What is AptX?
Click here to find out
I noticed that the custom bluetooth codecs( like the aptX, aptX HD, LDAC, etc.) are not working even if we have devices that support it( like earphones, headphones, soundbars, etc.) For example, I own a Samsung Level U wireless headset, which is compatible of aptX codec, but whenever I connect it with my Mi A1, the codec in Developer options switches itself to SBC.
So, I found a workaround for it on OnePlus 3/3T Device Forum. @theduke7 has created a Magisk module which enables aptX/ aptX HD on One Plus 3. I flashed that module, and Voila! The codecs started working on my phone.
How will this help you?
AptX increases the quality of audio transmitting over bluetooth considerably. So you will be able to hear nearly lossless, CD quality audio from your device.
Just flash the below given Magisk module in Magisk 14.0+ and reboot.
For those who can't find the option,
Go to Settings >> System >> Developer Options >> Bluetooth Audio Codec
Link to the thread
Just thank @theduke7
Before posting, please check whether your wireless bluetooth device supports any of the above mentioned codecs.

Screenshots:

Doesn't works for me...
Codec stills revert to SBC every time I connect my BT headset.
It's a Driftin DBE-301BGY. But I don't know if it's apt-X or apt-X HD compatibe.
No matter wich codec I choose, always revert to SBC....

Gurx said:
Doesn't works for me...
Codec stills revert to SBC every time I connect my BT headset.
It's a Driftin DBE-301BGY. But I don't know if it's apt-X or apt-X HD compatibe.
No matter wich codec I choose, always revert to SBC....
Click to expand...
Click to collapse
Your wireless earphones are not aptX/aptX HD compatible, mate. I googled them just now.
Also, the module is sometimes unstable. It reverts back to SBC even when we choose aptX or aptX HD. A simple reboot should solve that problem. After rebooting, before connecting the wireless, go to developer options and manually select the supported codec, and then connect.

guy_infinity said:
Your wireless earphones are not aptX/aptX HD compatible, mate. I googled them just now.
Also, the module is sometimes unstable. It reverts back to SBC even when we choose aptX or aptX HD. A simple reboot should solve that problem. After rebooting, before connecting the wireless, go to developer options and manually select the supported codec, and then connect.
Click to expand...
Click to collapse
Oh, I see... Thanks!

guy_infinity said:
I noticed that the custom bluetooth codecs( like the aptX, aptX HD, LDAC, etc.) are not working even if we have devices that support it( like earphones, headphones, soundbars, etc.) For example, I own a Samsung Level U wireless headset, which is compatible of aptX codec, but whenever I connect it with my Mi A1, the codec in Developer options switches itself to SBC.
So, I found a workaround for it on OnePlus 3/3T Device Forum. @theduke7 has created a Magisk module which enables aptX/ aptX HD on One Plus 3. I flashed that module, and Voila! The codecs started working on my phone.
Just flash the below given Magisk module in Magisk 14.0+ and reboot.
For those who can't find the option,
Go to Settings>> System>> Developer Options>> Bluetooth Audio Codec
Link to the thread
Just thank @theduke7
Click to expand...
Click to collapse
can you solve earphone noise

projectkom said:
can you solve earphone noise
Click to expand...
Click to collapse
Dude, I'm not a developer. I just found out that this module works for our device, and so I posted it here, giving necessary credits.
And I don't get any noise in my earphones. Can you try a fastboot rom flash without wiping data?

Does it work on custom ROM?

On Oreo 8.0 all works fine, aptx and aptx HD.
At Oreo 8.1 (July Update) - only aptx is working. U can select aptx HD in the Developer/Audio settings, but dos not have any effect.
Any suggestions?

it only works if the xiaomi was rooted. Without root the APT doesn't work even more if you installed the drivers and modified the build.prop

What do U mean? Pls explain.
Magisk 16 Up and running....
Think ist's a 8.1 Bug, HD get -1 priority
//666kb.com/i/ dvpuaig5thf0xk7vi. Png
Cant Post Image from Cat log here - U know how toll View Pic

Roadwuzel said:
What do U mean? Pls explain.
Magisk 16 Up and running....
Think ist's a 8.1 Bug, HD get -1 priority
//666kb.com/i/ dvpuaig5thf0xk7vi. Png
Cant Post Image from Cat log here - U know how toll View Pic
Click to expand...
Click to collapse
I did it manually and I added into the build.prop located in system:
persist.bt.enableAptXHD=true
persist.service.btui.use_aptx=1
persistent.bt.a2dp_offload_cap=sbc-aptx-aptXHD
Regards.

sidbyron said:
I did it manually and I added into the build.prop located in system:
persist.bt.enableAptXHD=true
persist.service.btui.use_aptx=1
persistent.bt.a2dp_offload_cap=sbc-aptx-aptXHD
Regards.
Click to expand...
Click to collapse
This way you have to flash stock system.img before ota will work again. Just to keep in mind.

Does this work for Pie? I recently updated my MiA1 to Pie a few nights ago.
I'm trying to use this on my Sennheiser 4.5BTNC headset.

can anyone confirm whether it's working on latest Pie STOCK rom for mia1 or not? I want to install this, can anyone confirm & help me?

Xiaomi mi A1..aptx or ldac on Pie
Anyone got a guide for getting aptx or ldac working on Pie...

Related

HTC U11 Bluetooth Audio Quality Issue on Android 8.0

Hi, last week I installed the OTA Android 8.0 update on my HTC U11.
Since this update the audio quality when streaming to my car's audio system or to my pioneer hi-fi system at home is a lot worse than on Android Nougat. Especially on tracks with a lot of high tunes. There's always a slight 'clink' noise. I don't know how to explain this in English..
Have you noticed this issue as well? Is there something I can do about it? Thanks
question are you using any sound mods?
6th_Hokage said:
question are you using any sound mods?
Click to expand...
Click to collapse
No, I don't use any sound mods.
joscht said:
No, I don't use any sound mods.
Click to expand...
Click to collapse
Same for me. Since this update, the quality of phone call when connected to Bluetooth to my car is really bad. No problem with music stream connected to the same car.
I tried managing the new bluetooth options in developper mode menu but it doesn't solve the problem.
The codec used is all the time SBC even is I change it to AAC or aptX or AptxHD.
Fredz said:
Same for me. Since this update, the quality of phone call when connected to Bluetooth to my car is really bad. No problem with music stream connected to the same car.
I tried managing the new bluetooth options in developper mode menu but it doesn't solve the problem.
The codec used is all the time SBC even is I change it to AAC or aptX or AptxHD.
Click to expand...
Click to collapse
I have the same issue, it seems it was fixed in 42 version for US market(at least for LDAC)
I have 2 issues with Bluetooth connections with the car. The first is that it picks up interference from the noise of the wheels and engine while driving, and the sound quality suffers and it sounds unclear, unless I mute the vehicle.
The second is that it has a lot of trouble connecting to the car at times. Or, more often, it would not connect the media through the car. Don't know what's up with that.
I know how you feel
I've got exact same problem like yours. Although I'm using HTC u11 plus. My new pair of Bluetooth headphones have the same not OK audio quality. You're right especially the high tunes. I'm desperate, trying to reset everything, but doesn't help. If you find the solution, please let me know. Thank you.
joscht said:
Hi, last week I installed the OTA Android 8.0 update on my HTC U11.
Since this update the audio quality when streaming to my car's audio system or to my pioneer hi-fi system at home is a lot worse than on Android Nougat. Especially on tracks with a lot of high tunes. There's always a slight 'clink' noise. I don't know how to explain this in English..
Have you noticed this issue as well? Is there something I can do about it? Thanks
Click to expand...
Click to collapse
Same issue here. I have the U11 as well and just updated to Oreo and I have the same issue as well. Music over BT was ok on Nougat but after the update, music sounds as if there is digital clipping. And it's there with both my headset and car audio system.
Got the same issue, hope they fix it soon. The only solution seems to do a RUU right now.
Btw. I am on a custom rom (LeeDroid), gonna go full stock and try again.
I would suggest looking in developer options and trying some of the different options for bluetooth in there!
Settings > about > software information > more > then tap the build number till it says you are a developer.
Then
Go to developer options and check under networking, there are some settings to toggle in there.
You may find something you are looking for! I personally haven't tried bt since the update so I don't know if it is a common issue. Good luck!
Thank you!
Thank you very much.
Playing around with the bluetooth options in the developer's menu solved this issue.
The audio quality through bluetooth is now pretty much the same as it was with the previous android os
joscht said:
Thank you very much.
Playing around with the bluetooth options in the developer's menu solved this issue.
The audio quality through bluetooth is now pretty much the same as it was with the previous android os
Click to expand...
Click to collapse
Share what settings you stuck with so it may help the other people with the same problem
Hey there!
Same problem for me since updating my U11 to Oreo - very poor bluetooth audio quality...
I tried using different bluetooth settings under the developer options but the thing is: no matter what I choose, it keeps switching back to the default values not affecting anything at all.
If it switch back to default SBC it means your headset/BT device doesn't support other codec.
Alpert3 said:
If it switch back to default SBC it means your headset/BT device doesn't support other codec.
Click to expand...
Click to collapse
That's not necessarily true. On 7.1 both Bluetooth devices which I use can support either AAC, SBC and aptX. My understanding is this issue occured because of the removal of AVRCP 1.3. I think Google added 1.3 back to Android 8.q because of this.
yournamehere484 said:
That's not necessarily true. On 7.1 both Bluetooth devices which I use can support either AAC, SBC and aptX. My understanding is this issue occured because of the removal of AVRCP 1.3. I think Google added 1.3 back to Android 8.q because of this.
Click to expand...
Click to collapse
Yours is not necessarily true either. I'm on 8.0 and I can still use aptX if I want but only if my BT device supports aptX.
Alpert3 said:
Yours is not necessarily true either. I'm on 8.0 and I can still use aptX if I want but only if my BT device supports aptX.
Click to expand...
Click to collapse
I'm not arguing that aptX and other codecs aren't working on 8.0. What I'm saying is that with certain devices, we are no longer seem to be able to use certain codecs that we could use prior. It's obviously device dependent, but to say their isn't a problem and blame it on the Bluetooth device is incorrect. Infact the same problem has occurred on non HTC devices when they've upgraded to 8.0 such as the OnePlus.
yournamehere484 said:
I'm not arguing that aptX and other codecs aren't working on 8.0. What I'm saying is that with certain devices, we are no longer seem to be able to use certain codecs that we could use prior. It's obviously device dependent, but to say their isn't a problem and blame it on the Bluetooth device is incorrect. Infact the same problem has occurred on non HTC devices when they've upgraded to 8.0 such as the OnePlus.
Click to expand...
Click to collapse
Fair enough, I didn't understand.
Does anyone know how to make the bluetooth options under developer options stick? I'm on stock unlocked Oreo, and they go back to defaults as soon as I change them. I've tried changing them whilst connected in the car, but no change. The only thing that could make a difference is that I'm running Pitch Black Substratum theme. Anyone else got them to stick?
In my Audi a3 2015 before oreo i can able to skip the track with entertainment commad and in the display i saw name of the track. After update i have lost all funtionality and the car see my device only like esternal suorce . Can i do something?

AptX codecs on Android 10

Hi.
I've seen barely any mention of this issue.
I've tried several ROMs like Bliss, Havoc and Evolution, all of them Q.
I have an EarStudio E100 DAC which supports AptX and AptX HD, which were working perfectly well on Android 9.
I was able to select the right codec from Developer Options and the sound would be much better and SBC or AAC, but now on Android 10, there is no difference whatsoever. I can select AptX HD it does not stick and reverts back to the lowest quality codec.
Any idea on how to solve this?
EDIT:
On Reddit, from user CoolGeek71, I found out that selecting the capabilities FIRST and only after that selecting AptX HD inside Developer Options, Android will use the requested codec. So, instead of selecting AptX HD only as it was on Pie, I have to select before the "Bluetooth Audio Sample Rate" to 44.1kHz or 48kHz and "Bluetooth Audio Bits per Sample" to 24 bits. Only then, stupid Android 10 will use it.
Once again, Google making simple things harder to use.
I noticed that if I change the developer settings for Bluetooth codec it automatically changes it back to defaults after I close out of the settings.
Sent from my GM1917 using Tapatalk
This stupid problem is also present with LDAC quality settings as well. I use the Fiio BTR5.
Interestingly, Beta 8 fixed this issue. However this bug has reared its ugly head on the newest 1.0.3.1 again.

Not able to change bluetooth codecs in developer mode

Hi Guys,
I have a headset with qualcomm's qcc5124 chipset, which supports multiple aptx codecs.
But whatever i try in developer mode to change the codec as soon as i leave the menu it changes to default. I also noticed in my phone i only have aptx and aptx hd. I am missing codecs like aptx LL and aptx adaptive.
I have searched the internet and found similar threads but not a solution that works for me.
Ksar10 said:
Hi Guys,
I have a headset with qualcomm's qcc5124 chipset, which supports multiple aptx codecs.
But whatever i try in developer mode to change the codec as soon as i leave the menu it changes to default. I also noticed in my phone i only have aptx and aptx hd. I am missing codecs like aptx LL and aptx adaptive.
I have searched the internet and found similar threads but not a solution that works for me.
Click to expand...
Click to collapse
I think the 7 Pro can't use aptx LL and adaptive, thats why you can't enable it.
Ksar10 said:
Hi Guys,
I have a headset with qualcomm's qcc5124 chipset, which supports multiple aptx codecs.
But whatever i try in developer mode to change the codec as soon as i leave the menu it changes to default. I also noticed in my phone i only have aptx and aptx hd. I am missing codecs like aptx LL and aptx adaptive.
I have searched the internet and found similar threads but not a solution that works for me.
Click to expand...
Click to collapse
If the manufacturer of the headphone says that it supports aptX then by default it will be switched to it when connected.Manually changing them will reset after you exit settings.

How to enable AptX Codecs for Bluetooth ear buds? It doesn't work! :(

Hey Folks,
Can any one help me figure out How to enable AptX Codecs on my OnePlus 7 (GM1900 running OOS 10.3.3.GM57AA)?
I tried many times in Developer settings, but they get reverted the next moment always. Any workaround???
I bought a pair of Earbuds but cannot enjoy this feature. Any help is appreciated. Thanks in advance.
jeticson said:
Hey Folks,
Can any one help me figure out How to enable AptX Codecs on my OnePlus 7 (GM1900 running OOS 10.3.3.GM57AA)?
I tried many times in Developer settings, but they get reverted the next moment always. Any workaround???
I bought a pair of Earbuds but cannot enjoy this feature. Any help is appreciated. Thanks in advance.
Click to expand...
Click to collapse
They are auto tuned if your hardwares(earbuds) are not supporting AptX codec then it always uses default codec you can't do anything about it...
At least not in Oxygen Os
Soundpeats Trueair earbuds are equipped with QCC3020 which is capable of AptX codecs. It must be a bug in OOS. I tried to force use AptX codecs in Developer settings but only to fail.
Link to buds features here: https://www.soundpeatsaudio.com/en/true-wireless-earbuds-trueair.html
jeticson said:
Soundpeats Trueair earbuds are equipped with QCC3020 which is capable of AptX codecs. It must be a bug in OOS. I tried to force use AptX codecs in Developer settings but only to fail.
Link to buds features here: https://www.soundpeatsaudio.com/en/true-wireless-earbuds-trueair.html
Click to expand...
Click to collapse
Maybe you are right
have you tried the magisk modules to enable aptx and other codecs?
jeticson said:
Soundpeats Trueair earbuds are equipped with QCC3020 which is capable of AptX codecs. It must be a bug in OOS. I tried to force use AptX codecs in Developer settings but only to fail.
Link to buds features here: https://www.soundpeatsaudio.com/en/true-wireless-earbuds-trueair.html
Click to expand...
Click to collapse
for me only AAC codec worked because my earbuds only supports AAC codec you can see in the screenshot my earbuds is AAC enabled,check yours also if it is AptX enabled after connecting to phone or not. i thought that you want to switch to AptX codec to remove latency issues...or may be i am wrong ?
Danaosthedemon said:
have you tried the magisk modules to enable aptx and other codecs?
Click to expand...
Click to collapse
Am not rooted.
Prinçe çharming ap said:
for me only AAC codec worked because my earbuds only supports AAC codec you can see in the screenshot my earbuds is AAC enabled,check yours also if it is AptX enabled after connecting to phone or not. i thought that you want to switch to AptX codec to remove latency issues...or may be i am wrong ?
Click to expand...
Click to collapse
I do not get this extra option in ear buds settings.
But I got the AptX enable menu when I connected the same buds with a Oppo Reno device. So it's a Op7 device OS issue. I have taken the issue up to the OOS Team in OP forums. They have taken logcats and said they are working on this issue. Hope to get it solved.

Question Ldac codec

Hi, Can i use LDAC codec with s22 ultra and Sony WF-1000XM4 ? In the developer options i can't, even if I select LDAC, it remains on AAC ? Any ideeas please ? Thanks a lot
You don't need to go to developer options. Open Bluetooth settings, find the XM4, tap the settings wheel and select LDAC codec (you need to have the headphones connected to activate this option)
That stumped me as well when I first tried activating LDAC as well on my Soundcore Liberty 3 earbuds. xsam123 is correct
Perfect, it works ! Thanks !
Hi!
If you have any other problems with LDAC, even with using developper option, don't waste you time any further.
(I've spent so much time to correct the issue in this way)
Developer solution's won't work.
And you'll not have the choice to enable LDAC in Bluetooth normal user setting
Reboot your Xiaomi with hard reset.
Everything will become clear and operational.
LDAC Choice will appear correctly again.
Best regards
Be sure HD audio is enabled as LDAC codec in the bluetooth device info, in the bluetooth connection app.

Categories

Resources