Related
Does the Xiaomi Mi5s support Bluetooth Aptx?
I want stream music to my Digital Audio Player (Shanling M2s) and want to use it as DAC. The Bluetooth pairing work's without flawless, but i want use the full potential of the Mi5s to stream Highres music files.
Thanks in advance.
I have Mi5s too. Did you find the answer you were looking for? Does the Mi5s support AptX?
You can flash AptX zip file.
This is only for Lineage OS, right? Not for stock rom?
I didn't find anything on it but blackjeccat's suggestion of the zip file seems promising. I'm currently using miui however so I'll wait until I get lineageOS or that google pixel rom that may or may not come out before I try the mod.
bozy09 said:
I didn't find anything on it but blackjeccat's suggestion of the zip file seems promising. I'm currently using miui however so I'll wait until I get lineageOS or that google pixel rom that may or may not come out before I try the mod.
Click to expand...
Click to collapse
LOS already have aptX drivers in system folder. But I can't check is it works.
BlackJetCat said:
You can flash AptX zip file.
Click to expand...
Click to collapse
in addition to the above link there is also [MOD][PORT][5.0+] aptX™ HD Bluetooth Hi-Res Audio Codec | Any device!
BenG7 said:
in addition to the above link there is also [MOD][PORT][5.0+] aptX™ HD Bluetooth Hi-Res Audio Codec | Any device!
Click to expand...
Click to collapse
I think it will cause the device to go into bootloop, unless someone tested it and knows it's working
CrazyLegenD said:
I think it will cause the device to go into bootloop, unless someone tested it and knows it's working
Click to expand...
Click to collapse
No bootloop
So I have been trying to get LDAC or apt-X working on my razer phone but it has not worked. I am on the latest stock ROM rooted with magisk (via ADB not TWRP) and with the rayglobe magisk module installed but it just stays on AAC. My headphones are Sony WH-1000XM2 and LDAC was working when using the resurrection remix ROM from the development thread but I had to uninstall the ROM due to instability and no sign of progression. Any help would be appreciated.
Firebuster said:
So I have been trying to get LDAC or apt-X working on my razer phone but it has not worked. I am on the latest stock ROM rooted with magisk (via ADB not TWRP) and with the rayglobe magisk module installed but it just stays on AAC. My headphones are Sony WH-1000XM2 and LDAC was working when using the resurrection remix ROM from the development thread but I had to uninstall the ROM due to instability and no sign of progression. Any help would be appreciated.
Click to expand...
Click to collapse
They locked it down somehow I think. I have 2 threads in here asking for help but no one seems to be able to help me. For added reference, here is the error produced even when all the files are added with root to enable aptx or ldac
I installed the magisk aptx&aptxHD module and modified /system/vendor/build.prop then aptx got working.
(I couldn't test with aptxHD or LDAC cos I have no compatibe device with them.)
Code:
persist.vendor.bt.a2dp_offload_cap=sbc-aac
to
Code:
persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptXHD
This is the same parameter the magisk module set to /system/build.prop.
To guess, LDAC will may work if an appropriate value set to the prop.
ClubRaptor said:
I installed the magisk aptx&aptxHD module and modified /system/vendor/build.prop then aptx got working.
(I couldn't test with aptxHD or LDAC cos I have no compatibe device with them.)
to
This is the same parameter the magisk module set to /system/build.prop.
To guess, LDAC will may work if an appropriate value set to the prop.
Click to expand...
Click to collapse
This worked to enable switching to them however now Bluetooth just crashes. I changed it to persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-ldac
Edit:
Some interesting notes. I tried a few steps to debugging including readding AAC to the list which did nothing but if I only add aptx then the Bluetooth app no longer crashes however no sound plays so I'm guessing it's the lib files that are not correct? I just used the aptx package in magisk so if there's any other that I'm missing or other suggestions that would be useful
Firebuster said:
This worked to enable switching to them however now Bluetooth just crashes. I changed it to persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxhd-ldac
Edit:
Some interesting notes. I tried a few steps to debugging including readding AAC to the list which did nothing but if I only add aptx then the Bluetooth app no longer crashes however no sound plays so I'm guessing it's the lib files that are not correct? I just used the aptx package in magisk so if there's any other that I'm missing or other suggestions that would be useful
Click to expand...
Click to collapse
I still can't get it to switch to aptx (the one I want) or ldac. It still falls back to SBC usually or aac if I'm on a different speaker. Any idea what I'm doing wrong? I'm on slot a on my device, rooted with magisk and I have tried multiple aptx modules. Is there a specific build.prop editor you use? Both my speakers and headphones support it and work with other devices and I'm still getting the error I replied with above (page one)
I'm an experienced rooter, so don't be afraid to fully explain any steps I may be missing out!
manor7777 said:
I still can't get it to switch to aptx (the one I want) or ldac. It still falls back to SBC usually or aac if I'm on a different speaker. Any idea what I'm doing wrong? I'm on slot a on my device, rooted with magisk and I have tried multiple aptx modules. Is there a specific build.prop editor you use? Both my speakers and headphones support it and work with other devices and I'm still getting the error I replied with above (page one)
I'm an experienced rooter, so don't be afraid to fully explain any steps I may be missing out!
Click to expand...
Click to collapse
I used root explorer and changed the build.prop entries in system\vendor\. In the first place I used the root essentials build.prop editor which shows a different build.prop. other than that I literally just edited that line and that allowed me to change it. I can't think of anything else I did other than install a bunch of library files which I'm guessing you found the same ones as me because it was very limited on what was available and up to date
Firebuster said:
I used root explorer and changed the build.prop entries in system\vendor\. In the first place I used the root essentials build.prop editor which shows a different build.prop. other than that I literally just edited that line and that allowed me to change it. I can't think of anything else I did other than install a bunch of library files which I'm guessing you found the same ones as me because it was very limited on what was available and up to date
Click to expand...
Click to collapse
OK, awesome. You rock. That got it to select aptx - now my 2nd problem, no audio! I can see in dev options and bt settings that it's showing aptx, but I get no audio (well, I get an almost click click click noise) then my Bluetooth adaptor for my headphones crashes. And it forces my headphones to turn off. I tried 3 different magisk modules for the library files, any ideas - I was getting SBC audio before
manor7777 said:
OK, awesome. You rock. That got it to select aptx - now my 2nd problem, no audio! I can see in dev options and bt settings that it's showing aptx, but I get no audio (well, I get an almost click click click noise) then my Bluetooth adaptor for my headphones crashes. And it forces my headphones to turn off. I tried 3 different magisk modules for the library files, any ideas - I was getting SBC audio before
Click to expand...
Click to collapse
Sounds like the same problem I am having. Aptx doesn't work and aptx HD and LDAC just crash Bluetooth. Genuinely have no idea where to go from here. It must be a driver or library file. Real shame it's not working.
Edit: seems to be looping these messages in catlog
Firebuster said:
Sounds like the same problem I am having. Aptx doesn't work and aptx HD and LDAC just crash Bluetooth. Genuinely have no idea where to go from here. It must be a driver or library file. Real shame it's not working.
Click to expand...
Click to collapse
OK, so last night and this morning I have been just messing with things. I no longer crash my headphones and force them to turn off, but I still have no audio over aptx - though at least it's not crashing my headphones (Bluetooth in the phone was always OK). There is one error I'm getting and I'm not sure if its related of not, but is to do with a buffer failing to release. See my screenshots of logs (just documenting here for reference)
so basically i went your path a few days ago and dropped that idea. please post updates if you manage to get aptx\aptx hd\ldac working (Razer Phone + Sony WH-1000 XM2)
hatemosphere said:
so basically i went your path a few days ago and dropped that idea. please post updates if you manage to get aptx\aptx hd\ldac working (Razer Phone + Sony WH-1000 XM2)
Click to expand...
Click to collapse
Cc @Firebuster
So, I might be an experienced rooter (no 1 click toolkits here) I am NOT a developer. I've tried a combination of a bunch of things to try and get this to work, and nothing has!
I did however get it to work by installing a GSI (basically a rom) to the device, but even that was painful to get working (well, installed). Now running AOSP 8.1 GSI w/gapps and I flashed magisk for root. I then installed the Aptx magisk module from the built in repo and it works perfectly fine. Not sure if It's something in razer software as I'm technically more up to date now so it's not like I was using the wrong drivers.
Can't find a decent dolby atmos I can install that will work along side v4a, all the magisk modules are for android 7 or 6.
Otherwise that's the only way I have found so far, sorry guys! - benefit is, other than AOSP's ****ty camera app (use the gcam port instead), literally everything works fine, and I even get stronger vibration on a GSI
manor7777 said:
Cc @Firebuster
So, I might be an experienced rooter (no 1 click toolkits here) I am NOT a developer. I've tried a combination of a bunch of things to try and get this to work, and nothing has!
I did however get it to work by installing a GSI (basically a rom) to the device, but even that was painful to get working (well, installed). Now running AOSP 8.1 GSI w/gapps and I flashed magisk for root. I then installed the Aptx magisk module from the built in repo and it works perfectly fine. Not sure if It's something in razer software as I'm technically more up to date now so it's not like I was using the wrong drivers.
Can't find a decent dolby atmos I can install that will work along side v4a, all the magisk modules are for android 7 or 6.
Otherwise that's the only way I have found so far, sorry guys! - benefit is, other than AOSP's ****ty camera app (use the gcam port instead), literally everything works fine, and I even get stronger vibration on a GSI
Click to expand...
Click to collapse
Yeah I might move onto that too. To try to fix the Bluetooth issues. I can only assume razer excluded some of the functionality but since it's baked into android 8 I don't see why they would remove it.
Razer and their development team is already informed about this issue, and they have correctly addressed it, and all the Bluetooth issues (which were a few), in the upcoming update MR2. No ETA.
linuxct said:
Razer and their development team is already informed about this issue, and they have correctly addressed it, and all the Bluetooth issues (which were a few), in the upcoming update MR2. No ETA.
Click to expand...
Click to collapse
so i've just got a new update and now i'm wondering if we should try this again...
hatemosphere said:
so i've just got a new update and now i'm wondering if we should try this again...
Click to expand...
Click to collapse
Go ahead, I can't since I'm on a Pie GSI.
If anyone has an LDAC BT Headset please give this a try.
cc @Firebuster
Great news, I just spent 2 hours updating my phone, with flashing back to stock because the OTA did not want to update me since I had Magisk, then putting everything back like before.
The update did not change anything.
Tried to do my research on issues with the Razer phone before getting it, but I guess this is just one of those things you don't comprehend until actually having the device in your hands. I came from a Oneplus One on Lineage OS and am comfortable with flashing (but no experience with GSI yet).
My razer phone is stock and not rooted. Anything I can do to contribute to test getting Apt-X working? The settings says my phone is up to date (build number OPM1.171019.011-RZR-180803.6033).
Got the official Pie installed - no LDAC nor AptX still.
cubeover said:
Got the official Pie installed - no LDAC nor AptX still.
Click to expand...
Click to collapse
you installed the official pie update for the razer phone 1?
After I installed magisk module 'camera_mi5s_libs on lineageOS 15.1 I have no sound and restart didn't help , the mod says something about changing audio channels but I don't really have an idea about what I should do to fix this, when I delete module, sound works again...
KrecimStanove said:
After I installed magisk module 'camera_mi5s_libs on lineageOS 15.1 I have no sound and restart didn't help , the mod says something about changing audio channels but I don't really have an idea about what I should do to fix this, when I delete module, sound works again...
Click to expand...
Click to collapse
Hi, I had same issue you are experiencing with that module, what I did to "fix" the problem was to delete the "audio_platform_info.xml" files relate to audio modifications from the module; by doing that, no audio file will be modified hence, no audio problems.
This is not a fix; it's just a workaround
Hope it helps
KrecimStanove said:
After I installed magisk module 'camera_mi5s_libs on lineageOS 15.1 I have no sound and restart didn't help , the mod says something about changing audio channels but I don't really have an idea about what I should do to fix this, when I delete module, sound works again...
Click to expand...
Click to collapse
You can try tadi's original modules below
Is there a way to have LDAC bluetooth codec back?
I have Android 9, many months ago was available from Developer Menu, but with latest security patches, it does not work anymore: you can select LDAC from Developer Options but the settings disappear as soon as you get out from the menu.
Before it worked (I have Sony MD-1000X headphone which supports LDAC).
nicosea said:
Is there a way to have LDAC bluetooth codec back?
I have Android 9, many months ago was available from Developer Menu, but with latest security patches, it does not work anymore: you can select LDAC from Developer Options but the settings disappear as soon as you get out from the menu.
Before it worked (I have Sony MD-1000X headphone which supports LDAC).
Click to expand...
Click to collapse
Hello there I am Lacia the official maintainer of posp my latest official build includes the LDAC bluetooth codec so feel free to try it out! you can also join our telegram group over at https://t.me/pospdaisy
I have the same problem, and don't really care about installing a custom rom.
Any help?
nicosea said:
Is there a way to have LDAC bluetooth codec back?
I have Android 9, many months ago was available from Developer Menu, but with latest security patches, it does not work anymore: you can select LDAC from Developer Options but the settings disappear as soon as you get out from the menu.
Before it worked (I have Sony MD-1000X headphone which supports LDAC).
Click to expand...
Click to collapse
On stock, not even AAC Bluetooth can be selectable after like April 2019 update version (my father's Pioneer car system does have AAC BT mode). It can be selected in Dev Opts, but after you exit the option, it will revert back to SBC (normal) mode and also the audio did not changed too. I guess it's another bug by Xiaomeme that haven't fixed.
...and I have moved out to just using custom ROMs long ago, then these modes (AAC, APTX, etc.) works as intended.
RFD80M-75679 said:
On stock, not even AAC Bluetooth can be selectable after like April 2019 update version (my father's Pioneer car system does have AAC BT mode). It can be selected in Dev Opts, but after you exit the option, it will revert back to SBC (normal) mode and also the audio did not changed too. I guess it's another bug by Xiaomeme that haven't fixed.
...and I have moved out to just using custom ROMs long ago, then these modes (AAC, APTX, etc.) works as intended.
Click to expand...
Click to collapse
Could you tell me which custom ROM / ROMs are you using with Mi A2 Lite to have Aptx and LDAC back (and where to find these ROMs)?
Thank you
nicosea said:
Could you tell me which custom ROM / ROMs are you using with Mi A2 Lite to have Aptx and LDAC back (and where to find these ROMs)?
Thank you
Click to expand...
Click to collapse
On POSP (and I think many AOSP-based ROMs), it managed to activate the AAC Bluetooth automatically with my father's car stereo. On virtually any Android Pie custom ROMs, most can switch modes to APTX (when I did have the KZ Earphones Bluetooth module with APTX, now dead due to my KZ BT module's capacitor died suddenly).
Ok, I managed to keep stock rom and add at least aptx support with unlocked bootloader + magisk + magisk modules.
Just hope that Xiaomi will fix this with Android 10 update
Matyt said:
Ok, I managed to keep stock rom and add at least aptx support with unlocked bootloader + magisk + magisk modules.
Just hope that Xiaomi will fix this with Android 10 update
Click to expand...
Click to collapse
Any guide or instructions to do that? I'm not so experience with ROMs and magisk...
If I understood you well I need to:
- unlock bootloader
- install magisk and than magisk modules (I can Google)
But no need for root rights and a full custom ROM like POSP, correct?
And no support for Ldac anyway?
nicosea said:
Any guide or instructions to do that? I'm not so experience with ROMs and magisk...
If I understood you well I need to:
- unlock bootloader
- install magisk and than magisk modules (I can Google)
But no need for root rights and a full custom ROM like POSP, correct?
And no support for Ldac anyway?
Click to expand...
Click to collapse
Magisk is a rooting tool (like SuperSU) and using modules need root (but custom ROM isn't needed if you just want stock). You need an unlocked bootloader, Magisk manager APK, a patched boot.img (should be matched your stock version 10.0.x.0) and some steps to have it rooted.
https://forum.xda-developers.com/mi...gisk-proper-support-ota-t3836952/post77498252
I unlocked the bootloader using this:
https://forum.xda-developers.com/mi-a2-lite/how-to/guide-unlock-bootloader-losing-user-data-t4053743
Then installed magisk using this:
https://forum.xda-developers.com/mi-a2-lite/how-to/guide-install-magisk-proper-support-ota-t3836952 (scroll until the end of the thread to find the jan 2020 patched .img)
And then, installed a magisk module for aptx.
No LDAC for now.
Hi all,
have a motorola one zoom (parker), could test succesfully 3 GSI roms,
(Lineage, Havoc OS, and plain AOSP 10 222), in all of them, bluetooth audio
is not working, after pairing/connection with bt device, audio seems to move to
the device connected, but just after audio comes back playing on local cell phone,
as if bt is crashed.
I have found in this forum some threads saying to remove 2 specific file
from /vendor/overlay. None of those 2 files is there, and overlay just have
some subdirectories.
Changing codec seems not helping.
This is the only obstacle i have with GSI images, bt on stock image of course work,
would be great any help.
thanks !
Found this in the logs
A2DP_VendorLoadEncoderAptx: cannot open aptX encoder library libaptX_encoder.so: dlopen failed: library "libaptX_encoder.so" not found
I finally installed magisk aptX(HD) codec package, that was for Lineage, above error gone away, but i am now still getting
AD2P_VendorLoadDecodeLdac : cannot open ldac decoder.
libldacBT_dec.so not found
For android 10 posted my solution here
A2DP broken after updating to Motorola's Android 10 stock ROM · Issue #1404 · phhusson/treble_experimentations
I'm running the Android 10 vanilla GSI on a Motorola Moto G7 Play since February, while it was previous running Motorola's stock Android 9 ROM. To get A2DP working on the Moto G7 Play we had to dis...
github.com