GSI images - bluetooth audio issue - Treble-Enabled Device Questions and Answers

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

Related

LDAC 8.1

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?

Bluetooth LDAC

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.

Question Bluetooth song metadata not showing on custom roms

I've had this issue that is stopping me of fully enjoying any custom rom:
on MIUI roms (miuiVN, XiaomiEU) my car is showing song metadata when connected through BT. but on every custom rom it will not. I tried to mimic the BT setting in developer options, tried to play with the different BT avrcp options, but nothing works.
any help will be highly appreciated
thanks
Hi,
could you fix this issue?
Just updated to another rom or recent version.
Currently using latest crDroid and it works for me

Question Audio crackles after ui 3.0 update!!!

Guys hel pme!
I had a crackles audio problem when I bought the phone like 6 months ago. I discovered that was a problem of ui 2.0 c05 or so. Everybody had it. After updating at last c. 09 ui2.0 it disappears and everything was perfect. Now I update to lares 11 ui 3.0 and I have same issue of crackles in calling!!!! Not again!!!! Anyone same problems? In case I have to roll it back because its nonsense. Can i down grade?
well i have to roll back...****...is the a chance to go back to 2.0 ui?
Because it seems any kind of file of roll back tells me verification failed...
So bo chance to rollback?
Its weird because i have same update indian version but no issues with audio i make full format after install the update
Explain the issue u are the one who hear the crackles or the other side
You can rollback via rollback package search on Google for it it not working then open the bootloader and rollback via recovery
outdated apk's on the updated interface . i use only sq flac and wav formats for audio files , in my experience no integrated music player excells at decoding sq formats and stream over bt , so this means you have to buy professional software if you are in search of professional sound . look for realme's dedicated telegram apk update channel

Question GSI on G30

hello, a few months ago I put a GSI on my moto G30 (ArrowOS), I actually liked this GSI a lot... but I can't use some phone functions like bluetooth and headphones on the P2 output...
I use headphones a lot and I was using one with a USB Type-C output but this headphones is having some problems and I want to go back to using my JBL bluetooth headphones that I stopped using because it doesn't connect with my cell phone...
But I don't remember how to put a GSI and I don't even know a good one that I can have a good performance on battery and in games...
Can someone help me?
Hi. GSI performance doesnt varry that much if at all so pick any you like best.
Look at phhusson's GSI List to find a GSI that is compatible
(Must be a higher or equal Android version to the one your phone has stock and the GSI shoud be A/B and arm64)
Your problems sound quite generic and are mentioned in the GSI Troubleshooting FAQ
Such as:
Wired headphones not getting detected.​Solution 1​Enable alternative headphones detection in phh settings and reboot
This one ^ worked for me and should work for you too i believe.
Bluetooth connecting to device and then disconnecting​Try disabling A2DP offload in phh settings
I've tried this too but cant remember if it worked, what works for me is going to the Bluetooth settings for the device and disabling HD Audio.
You can find more fixes on the link above.
About installing the GSI first flash the stock ROM and then follow Sammm77's GSI Flashing Guide.
You can try ArrowOS again with the fixes above and see if they work or pick another GSI.
If you need any clarifications i would be more than happy to help!
KAN7A said:
Hi. GSI performance doesnt varry that much if at all so pick any you like best.
Look at phhusson's GSI List to find a GSI that is compatible
(Must be a higher or equal Android version to the one your phone has stock and the GSI shoud be A/B and arm64)
Your problems sound quite generic and are mentioned in the GSI Troubleshooting FAQ
Such as:
Wired headphones not getting detected.​Solution 1​Enable alternative headphones detection in phh settings and reboot
This one ^ worked for me and should work for you too i believe.
Bluetooth connecting to device and then disconnecting​Try disabling A2DP offload in phh settings
I've tried this too but cant remember if it worked, what works for me is going to the Bluetooth settings for the device and disabling HD Audio.
You can find more fixes on the link above.
About installing the GSI first flash the stock ROM and then follow Sammm77's GSI Flashing Guide.
You can try ArrowOS again with the fixes above and see if they work or pick another GSI.
If you need any clarifications i would be more than happy to help!
Click to expand...
Click to collapse
man, you really helped me alout...
i tried these two methods
-Enable alternative headphones detection in phh settings and reboot
-Try disabling A2DP offload in phh settings (in this case I restarted the phone too)
and both starting working again

Categories

Resources