Disable A2DP hardware offload - Sony XA2 Ultra Questions & Answers

Hey! Currently trying to disable A2DP since it provokes BT stuttering with almost any codec/earphones used. It's turned on and blocked (greyed out) in the Dev Options. I've already modified:
build.prop from /vendor
and removed "a2dp_in_audio_policy_configuration.xml" from /vendor/etc
...with no effect!!
How to disable A2DP hardware offload???
(Xperia Xa2 Ultra, lineageOS 18.1)

Related

Android Bluetooth Profiles not enabled in GUI

Hi All,
I am new to bluetooth module in Android.
I am working in Android Lollipop (5.1.1) customization. I am able to integrate the BlueZ stack (5.43) into Android 5.1.1. Since we disable default blueroid stack. I am able to TURN ON/OFF the bluetooth, pairing, sending some files/pics/data happening successfully (we are using default bluetooth app which is provided in Android 5.1.1).
Now I am working with A2DP and AVRCP profiles. I enabled these two profiles in bluez stack (5.43). i.e configure.ac., but I am not able to see enabled profiles or any other default Android profiles in GUI (settings/Bluetooth).
Questions:
We should do any modifications in the Android framework level to enable the profiles, if so, please send the required changes to be done.
Any other changes required to enable the Bluetooth profiles in Android 5.1.1.
As per my understanding, when pairing happens successfully with other devices, we are not able to pair the profiles (a2dp and avrcp).
What are the issues to cause the problem in Android Lollipop regarding the bluetooth profiles? I tried to search in many websites and Google but I did not succeed.

Oreo - Developer Bluetooth options discussion

Hi all!
I wanted to open up a discussion about the new Oreo features for Bluetooth codecs in the developer section. I haven't been able to find a comprehensive guide or info anywhere that covers how it actually should work, and I don't believe it's working correctly - I would like to explore more with you.
I'm on a Google (carrier free) Pixel, using a fresh install of OPR6.170623.012 - which is working brilliantly by the way.
It seems to me that I can't make the settings stick, if I for example change the Bluetooth Audio Codec to aptX, or modify any of the other settings when I go back in it always reverts to the 'Use System Selection (Default)' option. I'm typically trying this with Bluetooth off, changing the setting and turning Bluetooth on. I've also tried rebooting in-between, as well as different variations. The developer toggle is set to on of course.
It may be my misunderstanding of how this works, but it even if I stay on the developers screen and change the codec, if I turn Bluetooth on and it connects to a device, for instance my in-car Bluetooth audio, which I believe supports aptX, it doesn't care what the codec setting is and displays 'Streaming: SBC', which is of course what I'd expect would be overridden.
The only thing that seems to stick is the AVRCP version. I'm wondering if the Bluetooth HCI snoop log will provide any information?
Have any of you had any experience with this, or have anything to add to the conversation?
Many thanks in advance,
OK so it seems this codec list doesn't allow you to set a 'default', it just allows for modifying the codec during playback?
What I've experienced so far is that it does work with 'Use System Selection' to use the best codec available on the device you are connected to. It also allows you to change the codec to another while streaming/playing. The sub-text under Bluetooth Audio Codec does dynamically change from SBC to AAC.
Example: My headphones support SBC and AAC, the Pixel defaults to AAC on establishing a Bluetooth connection but does allow downgrading to SBC by picking from the list (as a test).
It however doesn't retain whatever you pick in the list if bluetooth is turned off then back on, it basically always defaults to system selection, then auto-picks on every connection. Perhaps this is by design, it is developer tools after all.
I haven't been able to get this to work with aptX in my car yet with my Pixel, even though it is apparently supported?
Also of note: To achieve AAC on my Bluetooth headphones I had to put them into a 'Priority on sound quality' mode and also turn off the Bluetooth phone (i.e. call connectivity, music ONLY) on the Pixel connection to achieve AAC.
are you sure that your car supports aptx? before this developer option it was very hard to actually see the codec being used.
I believe so, the Bluetooth product states that it supports EDR and aptX, but yes, I cannot be 100% certain.
Are you suggesting it should be possible with Pixel and the Oreo build as-is?

Improving car compatibility with Bluetooth AVRCP setting

If your car has an older head unit with Bluetooth compatibility, you may have seen that with Android O, some of the metadata won't show up when playing audio from the phone. I found a tweak in the Android developer options that fixes it:
http://www.androidpolice.com/2017/0...ight-developer-preview-2-adds-avrcp-selector/
On my Honda Accord 2014, I set it to AVRCP 1.4 or 1.5, and Bluetooth shows the artist/track/etc again. Pandora runs more reliably as well.
There's no way I can get the audio system in my 2017 Subaru Forester to show remaining time on individual playing audio tracks. I have tried the various different developer options settings and it doesn't seem to make any difference.
I can confirm that setting version to 1.4, do fix this issue for pioneer radios. (Tested on DEH-X8500DAB).
After changing this, I can now switch tracks over bluetooth in my Honda Fit. Thanks!
In my case, after upgrading to Android 8.1 (Xiaomi Mi 5 @ AOSPExtended.mod by DennySPB) track infos won't work.
It doesn't matter if I choose AVRCP 1.3, 1.4, 1.5 or 1.6. It's just "no time, no title" etc.
Any other suggestions to fix that - apart from downgrading to 7.0?
(post removed by author, as it was not directly applicable to thread)
In my case, this solution worked, but I only post it "as is", without any warranty, that it will work for you.
1. Unpair audio device.
2. Go to Applications > show systems apps
3. Find "Bluetooth" and "Bluetooth MIDI", clear data for both of them
4. Go to developer settings, change AVRCP to 1.5 or 1.6
5. Restart phone.
6. Pair audio again.
Hi, thanks for the information, just reporting that this didn't work for me.
Android V9
Peugeot 508 JBL 2013

Lagging when connected to bluetooth speaker

MIUI Global 17.0.7 Stable (official)
I'm using JBL Charge 4 speaker (it's not JBL's problem). I don't have this problem when I connect Samsung J7 Pro (which is older, model from 2017) and other Samsung, Huawei, Apple devices... I had this problem on my older Poco F1 too.
When I play music on it, it's lagging. Every 20-30s there are lags, like "cut" for ~1 second and it's so annoying. I watched some videos about it, I saw that a lot people have same problem with different Xiaomi devices. In Developer options -> Bluetooth audio codec...whatever I pick, when I close settings, it's back to "Use system preference (Default)" even if there is a lot of other options, for example: SBC, AAC, Qualcomm® aptX™ audio, Qualcomm® aptX™ audio HD, LDAC...
Only option that I can change about Bluetooth there is Bluetooth AVRCP Version.
If someone has solution, I would be very grateful. If it's not possible to fix this on offical software, is there any Custom ROM with tested options about this problem?
Thanks in advance!

Question S980U bluetooth codecs

Any way to enable all of the bt codecs that are supported by the processor but disabled by samsung?
Can only select SBC.
Bt device needs to support the codec.
Some apps use only sbc.
If the app and device use the blanked out codec try clearing system cache, a network reset, turning Developer options off then back on.
Make sure you didn't disable a needed service, turn off global power management.
The problem is Samsung disabled the high res codecs. Even with a supported device, it can not be selected.
LDAC and SCC should be available.
No APTX HD.
I got ldac working. Thanks
当你连接蓝牙设备后,这个会自动切换的
Translated by GT: When you connect a bluetooth device, this will automatically switch
bestbocai said:
当你连接蓝牙设备后,这个会自动切换的
Click to expand...
Click to collapse
"When you connect a bluetooth device, this will automatically switch"
Welcome to XDA
English only please per forum rules.
Best to check it in Developer options when connected and using to verify the codec in use if set to automatic detection.
Samsung also hides a toggle in Settings - Connections - Bluetooth - your Bluetooth device. This is how I got LDAC working on my Soundcore Liberty 3 headphones.

Categories

Resources