MDR-1RBT bad sound with XPERIA Z2 over BT - Xperia Z2 Accessories

hi, I've recently bought a pair of SONY's MDR-1RBT Bluetooth headphones. the sound over the bundled cable is very good, but when I connect them by bluetooth, things get much worse, it's like the FLAC files I listen to get compressed to some 128 or even 64 kbps... but on my friend's xperia z3 Compact they work just fine. so here's my question. is it possible that the custom rom that I use (existenz MM latest version) causes these problems? I also use Viper so that may be the case. if you don't have any solutions, I'll flash stock and see what happens.

I've no idea what the problem could be, sorry. You may find answers over at the eXistenZ thread. Even though the ROM is no longer being updated there's still many using it.

Probably the rom has no aptX and aptX HD support.
To check:
Start catlog (or an other logcat app)
Connect you Bluetooth device
Start playing music (probably not necessary)
Pause catlog
Search for aptX
If the libraries are missing you should fine some line that says so missing libraries.
Search for bt_btif_media
If the libraries are missing there will be a line that shows: Selected Codec SBC
If there libraries are not missing but the selected codec is still SBC I don't know what is wrong.
To fixed this on LineageOS I installed the aptX (and aptxHD) codec from here:
https://forum.xda-developers.com/oneplus-3/themes/mod-aptx-codec-t3521228
I used the Magisk module, but of course for that you need Magisk.
After that I also installed the aptX-HD module from here (again the magisk moduel):
https://forum.xda-developers.com/android/software/mod-aptx-hd-bluetooth-hi-res-audio-t3501991
Now do the same logcat procedure.
If there now is aptX support you should find something like Selected Codec aptX
Good luck!
Oww was this post that old... Still hope it helps (someone).

Related

[Request - Porting LDAC from XPeria Z3+/ Z4 / Z4V to Z3]

Here is LDAC if anyone wondering what it is.
http://www.sony.net/Products/LDAC/
I was understood this software enable bluetooth to transfer audio at higher rate for hi-Res audio receiver but unfortunately it only available for Xperia line up post 2015. Some Walkman series release 2014 receive an update and got this function so I conclude it is possible for Z3 too.
So anyone here can help out or give some tips on this?
Also to z2 please
rayzy22 said:
Here is LDAC if anyone wondering what it is.
http://www.sony.net/Products/LDAC/
I was understood this software enable bluetooth to transfer audio at higher rate for hi-Res audio receiver but unfortunately it only available for Xperia line up post 2015. Some Walkman series release 2014 receive an update and got this function so I conclude it is possible for Z3 too.
So anyone here can help out or give some tips on this?
Click to expand...
Click to collapse
if you know how to edit a build prop put this in if not don't. Take a backup just in cause I don't want anybody getting pissed at me so.. . P.S. this may or my not work for you I have z5 libs if you use this and it works hit thanks.
# Added system property for LDAC
ro.somc.ldac.audio.supported=true
Which libs are you referring to? Bluetooth ones?
Tigerhoods said:
if you know how to edit a build prop put this in if not don't. Take a backup just in cause I don't want anybody getting pissed at me so.. . P.S. this may or my not work for you I have z5 libs if you use this and it works hit thanks.
# Added system property for LDAC
ro.somc.ldac.audio.supported=true
Click to expand...
Click to collapse
Sent from my D6603 using XDA Free mobile app
Tigerhoods said:
if you know how to edit a build prop put this in if not don't. Take a backup just in cause I don't want anybody getting pissed at me so.. . P.S. this may or my not work for you I have z5 libs if you use this and it works hit thanks.
# Added system property for LDAC
ro.somc.ldac.audio.supported=true
Click to expand...
Click to collapse
er... build prop? I'm not that good or expert. Have u ever tried this yourself? or anyone you know manage to get this working?
rayzy22 said:
er... build prop? I'm not that good or expert. Have u ever tried this yourself? or anyone you know manage to get this working?
Click to expand...
Click to collapse
well if you put this in your prop then go to audio settings look at screen shot below. You have to have ldac supported device to connect it to. Which hardly exist at this point so I have not tested it.
Anybody tried this ? ro.somc.ldac.audio.supported=true
so I tried this tonight. I have a pair of MDR-1ABT's that support LDAC and a Xperia Z3 Tablet Compact running stock rooted .264.
First I flashed the Z5 libs from here
http://forum.xda-developers.com/crossdevice-dev/sony/soundmod-ported-z5-sound-files-libs-t3240319
Then added the line to build.prop.
My accessory settings page looks the same as post 6 when I have the tablet connected to the MDR-1ABT. Wireless playback quality is grayed out.
Also logcat says its still connected by APTX.
So seems like theres more needed to port LDAC besides the libs and modifying the build.prop?
tonysunshine said:
so I tried this tonight. I have a pair of MDR-1ABT's that support LDAC and a Xperia Z3 Tablet Compact running stock rooted .264.
First I flashed the Z5 libs from here
http://forum.xda-developers.com/crossdevice-dev/sony/soundmod-ported-z5-sound-files-libs-t3240319
Then added the line to build.prop.
My accessory settings page looks the same as post 6 when I have the tablet connected to the MDR-1ABT. Wireless playback quality is grayed out.
Also logcat says its still connected by APTX.
So seems like theres more needed to port LDAC besides the libs and modifying the build.prop?
Click to expand...
Click to collapse
dam I guess so..hmm I wasn't sure I added a different line from from a z5 build and it gave me a working bravia toggle so I hoped this would work the same...I will look into it more...
Its is also chip related for the LDAC !
Bbut does it work if we add the lines in build.prop ?
i am curious about that, any changes ?
Yeah seems like you need to do more than just add that line to the build.prop to enable LDAC support. Unless theres something that needs to be done on the headphone end?
If you devs need me to test anything just let me know! I have a z3, z3 tablet compact, and a MDR-1ABT headphone that supports LDAC.
Pandemic said:
Its is also chip related for the LDAC !
Bbut does it work if we add the lines in build.prop ?
i am curious about that, any changes ?
Click to expand...
Click to collapse
Sent from my D6603 using XDA Free mobile app
messaged a guy on Head-Fi who has an Xperia Z5 and LDAC headphones. Asked about how he knew they were being connected via LDAC and not aptx. Heres his response
From what I recall, I have a status message in the android notification area, that said it was connected by LDAC. Since it didn't really show up in the bluetooth settings, I connected it using NFC smacking together with the Z5 ... which connected instantly.
Ok, here is how this looks here: http://i.imgur.com/nu34yjZ.png .. you can touch it and it leads to a menu of the settings where, you can select between "Prefer Audioquality", "Standard" and "Prefer Connection".
Click to expand...
Click to collapse
so theres probably more than just the libs and build.prop line that needs to be ported? There must be something in the sound settings app or something else
There is a thread with sound mod (From Z5) http://forum.xda-developers.com/cro...deodex-xperia-z5-themes-home-widgets-t3207016
I don't know if that could help us.
I got LDAC partially working on the Z3 by using Bluetooth.defualt.so hw lib from Xperia X as well as the build.prop edit. However the audio is very choppy no matter which level of ldac is selected. Any suggestions?
UPDATE 1:
Using the bluetooth.defualt.so from the z5 lp and the z3 on an lp rom makes LDAC work perfectly. I hypothesize that the bluetooth files which I was using from the z5 6.0 release were causing the shuddering as reported by some users in the z5 fourms. Im gonna try the latest z5 6.0.1 release and see if that works. In short LDAC IS POSSIBLE TO PORT AND HAVE FULLY WORKING ON THE Z3 AND Z2 it just about finding working files for mm.
Great find kansasboy.
Im trying to get a pair of LDAC headphones - Sony MDR-100ABN - to work with a rooted 'Z3 Tablet Compact' running Lollipop 5.11 at the moment - I have edited the build prop and the LDAC settings are greyed out.
Im going to root my Z3 Compact when I see that LDAC works with the tablet.
Could you share the bluetooth.defualt.so from Z5 that you are using ?
How do you replace the default bluetooth.defualt.so ? just using ES file explorer ?
Had any luck getting it to work with 6.01 ?
Ok, got it working
I think you need both:
/system/lib/hw:
audio.a2dp.default.so
bluetooth.default.so
from the Z5 for it to work.
I took the files from a Xperia Z5 5.11 firmware and using ES file explorer I placed them in the /system/lib/hw folder of my rooted Z3 tablet compact running 5.11 (saving the originals as .bak) - restarted the tablet and could connect my Headphones using LDAC
I'm using xperia z3c with android 6.0.1, if I put Bluetooth.default.so, I got Sound stuttering every sec. Connection works LDAC options are available, but it looks different than on my friends z5.
It looks different probably because your friend is using a different version of system/app/soundenhancement. Ldac has been available through that app for at least 9 months. So there is multiple versions available. You guys could maybe try the working 5.1.1 Bluetooth files and 5.1.1 sound enhancement on 6.0.1 it may work probably not. worth a try though...
Have done some more tests and LDAC works on Z3 (stock rooted .264) with the following setup:
1. Edit /system/build.prop and add "ro.somc.ldac.audio.supported=true"
2. In /system/lib - add the file 'libldacBT_enc.so'
3. In /system/lib/hw replace 'bluetooth.default.so' and 'audio.a2dp.default.so' (backup the originals)
The 3 files needed are from a Z5 stock .264 (5.1.1) rom
When you are connected to a pair of LDAC headphones you get a notification and you can press that notification for further options.
I have this working on a Z3 Compact and a Tablet Z3 Compact.
Have tried it on a Z Ultra too - but it does not work.
When I tried it on 6.01 with files from a Z5 6.01 - the sound is stuttering (same as for the others) and the Z5 5.1.1 files did not work.
Currently bt audio on mm is screwed up and barely works for aptx. I get studdering sometimes with my mdr100abn and my fugoo Speaker using aptx. The bt audio on mm can not handle ldac even on connection preferred if you are using a z3 or z5 sound enhancement. Hopefully in the next official mm release Sony fixes these issues with BT playback. If they don't we will be sol. Currently the only way to get decent ldac on mm is forcing the min cpu frequency to anything over 1000mhz and disabling mdception. But even that isn't reliable. We are at sony's mercy to fix bt issues which they may not because it works well enough for what is officially supported. The bt stack has not changed in mm but there is a known bug with BT in the MM kernel. Sony has fixed this for the z5 and X. Even in first mm release z5 had issues with ldac on high quality.

APT-X flashable for LOS 14.1 from dh.harald

I've flashed the aptx.zip from the thread https://forum.xda-developers.com/oneplus-3/themes/mod-aptx-codec-t3521228.
As far as I can see it's working fine with my UE 9000 headset on the a2017g with official LOS 14.1.
Unfortunately the Jaybirds X3 and Blubuds that I'm using does not support APTx, but this is great addition, thanks for posting it.
Did you check the logs to see if its really working?
I can't tell if it's working. I have some TaoTronics ear buds which say they do aptX.
I can't tell if it's working based on the logs and because I listened to a song before, installed via recovery, and when I played the song again it's to late to remember what it sounded like before.
jawz101 said:
I can't tell if it's working. I have some TaoTronics ear buds which say they do aptX.
I can't tell if it's working based on the logs and because I listened to a song before, installed via recovery, and when I played the song again it's to late to remember what it sounded like before.
Click to expand...
Click to collapse
It works like a charm! Each of these log lines tell you whether you're using aptX or SBC:
aptX = I bt_btif_media: btif_a2dp_encoder_init Selected Codec aptX
SBC = I bt_btif_media: btif_a2dp_encoder_init Selected Codec SBC
If you have ARISE sound mod installed aptX is already working.
Browns said:
It works like a charm! Each of these log lines tell you whether you're using aptX or SBC:
aptX = I bt_btif_media: btif_a2dp_encoder_init Selected Codec aptX
SBC = I bt_btif_media: btif_a2dp_encoder_init Selected Codec SBC
If you have ARISE sound mod installed aptX is already working.
Click to expand...
Click to collapse
Good news. Thanks.
I did try the ARISE sound mod Aroma installer yesterday for its other audio stuff but then I removed it. All it did was put 7 apps on my phone, the Dolby ATMOS one force closed, and V4A didn't sound any different. I'm sure it works but those guys spend so much time embellishing I can't read their threads to find troubleshooting steps... or clear instructions. Obviously still teenagers.
Hi,
Sorry if this is a stupid question, but how do I obtain a log to verify aptX is working? I am using a set of LG Tone Active (HBS-A80) headset that has aptX support. Sound is phenomenal, but I can't tell if it's due to the newest LOS update or this mod as I haven't listened to them in a few days.
For me the traditional linux way worked. Open a terminal and type "dmesg |grep apt" or "dmesg |grep apt-x". But first you have to start a audio session with your headset.
tron1 said:
For me the traditional linux way worked. Open a terminal and type "dmesg |grep apt" or "dmesg |grep apt-x". But first you have to start a audio session with your headset.
Click to expand...
Click to collapse
Thanks, I ended up installing MatLog. I assume it's working.

[USB-Audio] LineageOS: Sound Problems with USB-Audio-Interface

Someone using LineageOS with a USB-Audio-Interface??
I recently had my Xperia Z5 Compact rooted and swapped from Sony Stock-ROM to the latest 7.1.2 Lineage OS 14.1 Official Suzuran because I have been using CyanogenMod on my old Phone and I just loved it!
:good: BTW: Big Thanks to all you Devs and Maintainers!
But since my Z5 Compact is running LineageOS I have troubles using audio output via USB OTG. On the output of the external USB soundcard you can hear audio glitches like lags, clicks or drops. These dropouts are very annoying when listening to fine music...
When using Sony Stock-ROM everything worked fine with the same setup.
I have also tried LineageOS 14.1 Berni's alternative builds but this build obviously has the same USB-Audio problems.
Why don't use the built-in audio? Because an external Soundcard/DAC sounds so much nicer!
Any Ideas to try out or how to fix it?
Can you help!?
Thx.
What I have already tried:
- setting "performance profile" to: Power Safe / Efficiency / Balanced / Quick / Performance
- setting up "battery optimization" to not optimize: CM Audio Service, USB OTG, Music Player.
I don't know if these settings could influence audio output in any way or cause these clicking noises but it did not help anyway.
Found this post: https://forum.xda-developers.com/showpost.php?p=76139796&postcount=291
suggesting to edit build.prop file in /system in order to improve audio quality.
-> The recent build (suzuran 14.1 2018-06-24) was already setup that way.
Still I tried some playing with the setting audio.offload.buffer.size.kb=32 and setting it up till to 512 did not bring any improvement.
Also found a report which states that audio glitches and clicks disappeared when using the ViPER4Android Audio Effects app but I could not get it running. It needs to install some sort of driver (root needed) which did not work after all.
BTW: This is what they write at the Spotify Community about Android and USB Audio. -> Some Apps which depend on high quality sound output seem to bypass the Android driver and use their own.
Looks like a common problem with Android audio
As Sony USB-drivers or audio drivers from StockROM seem to work fine. Would it be possible to use the original Sony-drvers for the LineageOS suzuran build???
At the moment I would not recommend ViPER4Android for our phone because it seemed to wreck some drivers/settings when installing root-driver which made my sensors stop working.
Is somebody using ViPER4Android on Xperia Z5 Comact with LineageOS??
Any experiences???
Sill searching for better audio output via USB-Soundcard/-DAC . . .

Aptx HD?

Our phone was announced to be capable of aptx and aptx HD. I own two different bluetooth receivers with aptx HD enabled. But when I connect the phone to them, it uses only aptx, as the connection info on our device and the LEDs on the receivers reveal. This behaviour did not change from Android 9 to 10.
My wife has a Mi A2, and with this device aptx HD works on both devices under Android 9 and 10. Is there a hidden way to activate aptx HD on our phone? Meanwhile I think our phone is heavily neglected by Xiaomi because such features present in a Mi A2 mysteriously vanished.
zapper19 said:
Is there a hidden way to activate aptx HD on our phone?
Click to expand...
Click to collapse
It's on developer settings.
Also, if forcing aptx HD is not working or has bugs, remember to report it.
This was the first thing I tried, but predictably switching to aptx HD in developer settings has no effect (I wonder what use these settings have - I never heard that someone succeeded in activating codes this way which his phone didn't choose automatically).
Update: I changed to crdroid 6.6 - and now aptx HD works flawlessly.
Hi sir, today I've got issue with connection to Fii0 BTR3K - no sound from PowerAmp which I was using for weeks without problems before. I did security update from May yesterday (yep late a bit) and got this issue. Fortunatelly to me I have SBH50 from Sony to test everything on low profile SBC connection. Lucky to me, I did another update to August security patch for Android 10 today.
Now I have Aptx LL ([email protected]) working with BTR3K (purple indication on LED). What I learned from today: Do not touch Dev settings! By misstake Dev settings could store your input as wrong data in 'system default' for application (PowerAmp in my case) and lead to missfunction. In my case PowerAmp was reading [email protected] even from non-aptX device. Second: actual condition of connection could be changed during SW initialization. So test your player SW and try to reset it as I did.
For specified [email protected] I am using Hi-Res output of PA. I am pretty sure in numbers as I can hear the difference between SBC and aptX, and hear difference with 16 to 24 bit resolution change (by enabling\disabling tone processing in ounput pipeline). To enable 24 bit in PA you should disable \reset to default dithering method.
I think AptX-HD isn't fully supported by 2 reasons: no real benefits over LL profile + licensing catch.
Hope you will learn something from my evidence
I have haylou gt1 plus earbuds. Apart from bad connection , the buds are aptx-HD compatible, one of their selling points. When i go to developer settings to check, aptx is used. When I change it to HD, it detects the change, nothing happens, and when I go back, and enter dev settings again, it is still on aptx . I think that's time to throw it in the sea... it's already blue
Sapper Morton said:
Your earphone doesn't support AptX-HD, that's why when your manually change to it using Developer Options, the codec isn't selected; use AptX or AAC, as advertised by Haylou.
Source:
https://haylou.info/gt1-plus.html
Click to expand...
Click to collapse
It's weird cause all reviews I read, specifically said aptx-HD, but you are right. It's only aptx. Nevermind. My mistake !
JaKats said:
I have haylou gt1 plus earbuds. Apart from bad connection , the buds are aptx-HD compatible, one of their selling points. When i go to developer settings to check, aptx is used. When I change it to HD, it detects the change, nothing happens, and when I go back, and enter dev settings again, it is still on aptx . I think that's time to throw it in the sea... it's already blue
Click to expand...
Click to collapse
Are you on android one?
Cause I'm on miui 12 and i have lots of issues. First left and right connects to the phone at the same time and then i have volume problems

I need help to mod a system apk

Hi, aptX bluetooth audio codec is now widely available on android, both devices (smartphone and headphone) must support aptx so that it can use the codec, however , there is no way to tell if the codec is actually in use But I searched a lot to find something and finally got my hand on an apk I extracted from sony xz3 stock pie rom , it shows a brief toast notification when the aptx codec is being used over bluetooth.
so I tried to copy the apk to my device (LG V30 stock pie) to this location >> system/app/AptxNotifier/ which was the original location on sony xz3 device (stock pie)
and changed permissions to 0644 and reboot
but it did not work it and I could no longer turn bluetooth on/off , but it can be reverted by simply deleteing the apk and everything back to normal
I can play around easily with apktool but I don't know what to edit
Is there a way to mod this apk so that it could work on my device ? any help would be appreciated
@Bronnel
AptX is an alternate Bluetooth audio codec from Qualcomm which aims to feature higher audio quality. You need a Bluetooth enabled device to pair with., what have a driver installed that sits on top of its Bluetooth stack. The mentioned APK - as it name implies - doesn't enable AptX: it simply notifies you whether AptX is in use or not. Just about all phones with the Android Oreo OS and higher support aptX HD which is really easy to activate.:
In Android -> Settings -> Developer Options select Audio Codec’. You will get a list of all the codecs your phone supports (including aptX HD). Now, simply select aptX HD, connect your (aptX HD-enabled) headphone and enjoy high-quality audio in no time.
jwoegerbauer said:
@Bronnel
AptX is an alternate Bluetooth audio codec from Qualcomm which aims to feature higher audio quality. You need a Bluetooth enabled device to pair with., what have a driver installed that sits on top of its Bluetooth stack. The mentioned APK - as it name implies - doesn't enable AptX: it simply notifies you whether AptX is in use or not. Just about all phones with the Android Oreo OS and higher support aptX HD which is really easy to activate.:
In Android -> Settings -> Developer Options select Audio Codec’. You will get a list of all the codecs your phone supports (including aptX HD). Now, simply select aptX HD, connect your (aptX HD-enabled) headphone and enjoy high-quality audio in no time.
Click to expand...
Click to collapse
thanks
I think you misunderstood me , I do not need to enable aptx , both my devices already support aptx , (LG V30 and my headphoone iDeadusa s204) and I already know that aptx is being used (because I easily notice the difference in sound quality) , what I want is toast notification to tell me that aptx is being used , this apk is doing just that but it needs to be modded so that it work on my V30, I hope I'm clear.
anyone out there to help with this?
KarlaPatton said:
I also need something like you
Click to expand...
Click to collapse
you can test the file and see if it works, but you need root, root explorer, which device do you have? which firmware version?

Categories

Resources