yashsingh1/xdaforums huggingface dataset:
[Magisk] ferry_ip:
PREMISE

Standard Bluetooth (BT) audio codec SBC is incorporated into all BT stereo audio devices as mandatory. It can work at arbitrary high bitrates but BT documents, however, recommend 328 kbit/s (44.1kHz/16bit) for high quality mode. This mode provides just acceptable audio quality.

Meanwhile a guy under the nick ValdikSS wrote the patch for Android and another guy, Pali Rohár for Linux; these patches unlock higher bitrates of SBC encoder. That patches then called as "SBC XQ".

It turned out that almost all modern BT headphones, speakers, receivers; support SBC bitrates up to 730 kbit/s just out of the box. And SBC XQ helps to encode BT audio on Android smartphones at the following bitrates:

(1) 452.0 kbit/s for 44.1kHz/16bit (BT EDR 2) Magisk_SBCXQ_452_A10.zip

(2) 551.2 kbit/s for 44.1kHz/16bit (BT EDR 3) Magisk_SBCXQ_551_A10.zip

Audio quality of SBC XQ BT EDR2 is comparable to aptX HD. And for BT EDR3 devices SBC XQ slightly surpasses aptX HD. It will be impossible to tell them apart in a blind listening test.

SBC XQ MODULES

SBC XQ has very simple concept. Higher bitrate, better quality. These modules will increase your SBC bitrate from 364kbit/s to 452kbit/s or 551kbit/s and perform high quality audio for traditional (budget) SBC BT audio receivers. These modules will replace your BT stack (libbluetooth.so arm and arm64). So, if it is not work, your BT will completely go off. In other word, your default SBC bitrate has been updated successfully, if your BT audio receiver function normally.

Obviously, you can only enable 1 Module at a time 452kbit/s or 551kbit/s.

Complete source of SBC XQ

Modification Sources

OPTIONAL MODULE

Dynamic Range Control (DRC) Deactivator Magisk_DRC_Deactivator_v1.00.zip

I found this Module from XDA, made by @zyhk

Basically it will set "drc_enabled = true" to "drc_enabled = false".

The original one, patch audio_policy_configuration.xml in vendor/etc folder.

My mod version will patch in vendor/etc/audio folder also.

ALL MODULES HAS BEEN TESTED

Source:

Xiaomi Redmi Note 8, MIUI v12.0.6 Global, Android 10

Receiver:

MPow X4.0 ANC (Bluetooth Headphone)

Clarion PE-4217N-A (Car HeadUnit)

JUST FEEL THE DIFFERENCE

DONATE

a cup of coffee will be nice :)
[Magisk] -CALIBAN666-:
Sounds great what about Android 11 and 12?

Anyway a good work.Cheers!!!
[Magisk] ferry_ip:
waiting for my crappy phone got A11 update 😁
[Magisk] -CALIBAN666-:
It doesnt matter for me i test it on my Android 11 Redmi 9 and gibe feedback soon.Cheers!!!
[Magisk] mindyabiznis:
This breaks Bluetooth for me, pixel 5 running protonAOSP and protonkernel.

After rebooting Bluetooth won't turn on, tries for about 10 seconds and then turns back off
[Magisk] ferry_ip:
I'm sorry it doesn't work for you.. I never test it, on custom ROM
[Magisk] pbanj:
Doesn't work on stock rom on the pixel 3a, does the same thing as it's doing for Mindy. I didn't expect it to work though as it's Android 11, figured it was worth checking though.
[Magisk] aqvyx:
not working on a11 poco F3, sadly
[Magisk] ferry_ip:
unfortunately A11 have a very different bluetooth stack
[Magisk] seffparker:
I have tried the both bit-rate versions on my Xiaomi POCO F1 MIUI 12 Android 10.

The Bluetooth connection works and devices are audible. Tested on the following peripheral devices:

SONY SBH24

SONY XB-01

Noise Air Buds Mini

No cracks or nothing. But, not able to scientifically tell the bit-rate or audio-quality is increased.

Pulled the HCI snoop-log. How to read the HCI log in Linux or Android?

[EDIT #1]: Decoded the HCI log using the command `hcidump -r btsnoop_hci.log`. It has the following lines:

AVDTP(s): Set config cmd: transaction 2 nsp 0x00
ACP SEID 1 - INT SEID 1
Media Transport
Media Codec - SBC
44.1kHz
JointStereo
16 Blocks
8 Subbands
Loudness
Bitpool Range 2-53

Its the standard negotiation for SBC codec I believe. Can anyone confirm the bitrate is increased?
[Magisk] loopypalm:
does it have an impact on the battery ? (Phone+headphone) ???
[Magisk] djdisodo01:
i'm using lineage os 17.1 with x522(leeco le s2)

it works but bluetooth file transfer is broken after installation
[Magisk] tomiasx22:
1. I tried Magisk_SBCXQ_551_A10.zip on Mi A3 Android ONE (11)

Bluetooth "works", no interruptions, but I cannot state if audio quality is better.

Someone wrote about differences in Android 10 and 11, but do you think this module may generally work on Android 11, or that's "placebo effect" and fortunately it didn't corrupt my Bluetooth?

2. Another question is depth, my phone supports 24bit (probably Sync in my Ford Focus 2019 also..) Can I in any way set it from 16bit to 24bit?

3. Interesting is that with module installed gabeldorsche mode is still active when I reenter the settings.. but does it work in fact?

4. Can installed module in any way influence battery draining?

Sorry for 2 more questions:

5. I noticed that even after uninstalling module from magisk sometimes there is problem with switching from 3G to LTE /H+ when I change area (eg leave the garage hall)

6. Can I in any way check in my Mi A3 (Android ONE 11) which bitrate is set as default for SBC?
[Magisk] Unn113:
I flashed it on OnePlus 8 pro using OxygenOS 11 and Bluetooth works fine, but I can't tell difference with my Sony wf-1000xm3's, nor with my car
[Magisk] DarkB055:
Doesn't work on a OP8 running lineageOS 18.1. I might need to go back to stock.
[Magisk] kamilchno:
There is possible to enable "disable a2dp hardware offload" ? Miui V12.0.6.0.QFCMIXM xiaomi mi 9 lite
[Magisk] few__:
Works on A11 crdroid miatoll
[Magisk] borisSweden:
I would not install if the phone only supports BT4.0-4.2. The extra bandwidth should help. ApTX HD overheats my phone so I use SBC only.
[Magisk] jDally987:
Good idea here, I tried this as well. I used termux at first and didn't find the `hcidump` command, and it didn't find that in any of its available packages (is it in a special repo or something?) but I figured out how to enable the HCI Snoop Log in developer settings, found it under `/data/misc/bluetooth/logs/btsnoop_hci.log`, and transferred it to my PC & opened up in Wireshark to check it out.

View attachment 5458647

Looks like the same results as what you got, aka the normal low-quality SBC profile.

I'm using the 551 magisk module and Plantronics Backbeat Pro headphones, which support APT-X (not HD) and enable that by default, so I had to change it to SBC in android developer settings after connecting.

I left the "HD Audio" toggle above the bluetooth codec settings there enabled... not sure what difference turning that off or on makes though. I'd guess nothing, as trying to change the sample rate & etc settings to "default" rather than the "44.1khz" (which was *actually* already set by default) didn't seem to do anything, I'd click it again and 44.1khz would still be the selected option.

And btw this is all on a Oneplus 8 (model IN2017) running EvolutionX 5.9.3, android 11.
[Magisk] rolarocka:
Really nice 🙂

Is there a way to make this simple flash in TWRP? Extract files and such?

I don't have magisk at the moment with GSI 12
[Magisk] YKS_Gaming:
Pixel 4 XL on Android 12 stock, module does not work and forces Bluetooth off
[Magisk] devnoname120:
Can confirm Bluetooth doesn't crash with the 452.0 kbit/s module on Xiaomi Mi Note 10, MIUI 13.0.1, Android 12.

Not sure whether it changes something or not for now.
[Magisk] pixel_peeper:
Works with Android 12 on OnePlus 9R. But is there any way to verify if the output bitrate has changed or not?
[Magisk] pixel_peeper:
Hi, does SBC XQ only work in dual channel mode? My headphones only support stereo is that why I'm not hearing any difference?
[Magisk] Christos_A:
Unfortunately yes, the module only supports sbc DualChannel connections. Lineage forces DualChannel on all bt audio devices so the module definitely works there, but i haven't found any way to force this in other roms. So for now im stuck with 328kbps audio at 44.1khz on my WF100XM3 as my rom defaults to JointStereo instead.
[Magisk] pixel_peeper:
Is there any way to force dual-channel on my ROM, or does that have to be done by the developer?
[Magisk] Christos_A:
From what I've seen no, either the rom or the bluetooth stacks have to be modified. Try asking the rom devs to implement this though, lots of users use Bluetooth audio devices
[Magisk] pixel_peeper:
I tried, to no avail :(

Thing is Dual Channel is available as an option in dev settings but it's permanently greyed out. From the BTsnoop log, my headphones definitely do support dual channel sbc but there just seems to be no way to enable it from my end. I tried it on PC too but same story.
[Magisk] Christos_A:
Yeah DualChannel needs a rom patch to work unfortunately. I asked my rom devs (Nameless for OP8 series) to implement this tho and they are looking into it

Edit: here's the link https://t.me/nameless_ophub/183916
[Magisk] pixel_peeper:
I'm on nameless too lol I've been asking on the forum and in the Telegram group but no acknowledgement so far
[Magisk] Christos_A:
Well the devs have acknowledged it as a bug now. Turns out this change was already implemented into the rom, but it broken in a way (Bluetooth devices still used JointStereo by default). Think we can expect a fix in upcoming builds.
[Magisk] pixel_peeper:
oh yay I hope so. Also, what exactly is the DRC deactivator module used for? What does deactivating the DRC do exactly? Do you know?
[Magisk] Christos_A:
From my understanding, t's some kind of audio dynamic range compression, eg it tries to maintain a consistent volume level for audio played on the device. People say this greatly reduces audio quality but i doubt we can notice a difference on Bluetooth buds. That said, i do have the disabler module installed on my device
[Magisk] pixel_peeper:
I see. Thank you.
[Magisk] nego.csv:
Tested on Realme 9i with A12, RUI 3.0, works fine, ty
[Magisk] seffparker:
I have continued to verify if it's actually changes the bitrate. The logcat shows no change in SBC bitrate:

# logcat | grep BTAudioProviderSession
02-03 08:37:08.484 1662 1727 I BTAudioProviderSession: OnSessionStarted - SessionType=A2DP_HARDWARE_OFFLOAD_DATAPATH, AudioConfiguration={.pcmConfig = {.sampleRate = RATE_44100, .channelMode = 0x10, .bitsPerSample = 0x9}, .codecConfig = {.codecType = SBC, .encodedAudioBitrate = 330000, .peerMtu = 659, .isScmstEnabled = 0, .isScramblingEnabled = 1, .config = {.sbcConfig = {.sampleRate = RATE_44100, .channelMode = JOINT_STEREO, .blockLength = BLOCKS_16, .numSubbands = SUBBAND_8, .allocMethod = ALLOC_MD_L, .bitsPerSample = BITS_16, .minBitpool = 2, .maxBitpool = 53}, .aacConfig = {.objectType = 0x1, .sampleRate = 0x1041001, .channelMode = MONO, .variableBitRateEnabled = 0x2, .bitsPerSample = 0x35, .frameControlEnabled = 0}, .ldacConfig = {.sampleRate = RATE_44100, .channelMode = STEREO, .qualityIndex = 0x10, .bitsPerSample = BITS_32}, .aptxConfig = {.sampleRate = RATE_44100, .channelMode = MONO, .bitsPerSample = 0x10}, .aptxAdaptiveConfig = {.sampleRate = RATE_44100, .channelMode = 0x1041001, .bitsPerSample = BITS_16, .aptxMode = UNKNOWN, .sinkBuffering = {.minSink
02-03 08:37:08.484 1662 1727 I BTAudioProviderSession: ReportSessionStatus - SessionType=A2DP_HARDWARE_OFFLOAD_DATAPATH has NO port state observer
02-03 08:37:08.485 1662 1727 I BTAudioProviderSession: OnSessionParamUpdate Update Sink Latency: 0

It shows the bitrate is still 330kbps either while enabled or disabled the module.
[Magisk] ArmanHayots:
The main point of trouble as I think is an existence of two concurrent bluetooth stacks — Gabeldorshe and classic. Gabeldorshe introduced in Android 11 but that's not meaning that any device with A11 and newer use it — as example on my Blackview BV9200 with Android 12 Gabeldorshe disabled by default (and looks like in current firmware it's resetting back to classic at reboot) so maybe this module can be used (I have no root so can't test).

Just some thoughts.
[Magisk] borisSweden:
How do you check is Gabledorche is active? Im on LineageOS 20 for Oneplus 7T. We did lose Adaptive because of BBK but I can see Opus and LC3 as a classic codec option.
[Magisk] ArmanHayots:
You have no switch in the developer options?

In my DokeOS I have this(excuse for non-English):

Spoiler content hidden.
[Magisk] vuittion:
I am running LineageOS 20 rooted with magisk on a Oneplus 8. Do I need these plugins or does LineageOS 20 already have them built into the rom.
[Magisk] Aleplus:
Is there a module that includes a bluetooth codec LHDC?
[About XDA developers] rajmagi:
http://xdaforums.com/usercp.php

You know, I tried to search link how to change operator profile on user cp..

somehow failed..

anybody know the link, and why is this not fixed up until now?

coz this bug is months old

the html code is:

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?do=editpassword">Edit Email & Password</a></td></tr>

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?do=editprofile"></a></td></tr>

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?do=editoptions">Edit Options</a></td></tr>

I think someone forgot to drop the text so the link is not visible.....

so it should be:

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?do=editpassword">Edit Email & Password</a></td></tr>

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?do=editprofile">--------MISSING SOMETHING HERE------------</a></td></tr>

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?do=editoptions">Edit Options</a></td></tr>

so if we click on the link, it should be redirected to:

http://xdaforums.com/profile.php?do=editprofile

and another missing:

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="calendar.php?do=viewreminder">Event Reminders</a></td></tr>

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?do=editlist"></a></td></tr>

<tr><td class="alt2" nowrap="nowrap"><a class="smallfont" href="profile.php?do=editattachments">Attachments</a></td></tr>

Miscellaneous

Event Reminders

----ANOTHER MISSING SOMETHING HERE------

Attachments

Find all your posts

Threads started by you

but

http://xdaforums.com/profile.php?do=editlist

won't fly you anywhere....

is this intentional???
[About XDA developers] DaveShaw:
I posted about this a while ago and notified the site admin.

IRCC a new skin is been worked on in which everything will be sorted... ;)

Dave
[LG V60 ThinQ Questions & Answers] 1031982:
So, if I play music through headphone jack with the QUAD DAC on for what seems to be at least five minutes, notification sounds no longer work until I reboot the phone.

By no longer work, I mean there is no audible sound at all. It's for all notifications, including the ringtone, and I can't play them by going into notification settings and trying to play them directly there.

If something comes in, the music will lower to allow the notification to play, nut no sound comes from it.

The weird thing, all music and in app sounds continue to work just fine.
[LG V60 ThinQ Questions & Answers] ajsorrentinojr:
I have the same problem. I think its a Android 10 issue. Not hardware related.

LG may have thought about this and made it default to not allow notifications to play over headsets to interrupt your experience....

I wish there was an option to enable or disable.
[LG V60 ThinQ Questions & Answers] 1031982:
Only issue with that theory is that I am running Android 11, and have been from the start. Got the phone, went through the setup just enough to get it updated. Then did a factory reset once there were no more updates.
[Samsung Galaxy A12] dreadmachine:
can anyone give me clear instructions on how to install twrp on my a12 127f?
[Samsung Galaxy A12] LAST_krypton:
Ask here https://xdaforums.com/t/i-will-build-twrp-for-your-device.4270211/
[Sony Xperia 1 III] eddiedimitris:
Hello

Is there any gcam apk which is tested that it is working on Xperia 1 iii ?

Beside this is there any way to have reliable call recording on Xperia 1 iii ?

Thank you
[Sony Xperia 1 III] jaseman:
Not sure about Gcam...native photo app seems great???

If you're in the US call recording is not allowed.
[Sony Xperia 1 III] WarVic:
I don't know a single Xperia phone with working Gcam mod camera. Ether developers don't bother to make it for few obvious reasons or Sony make it too difficult.
[Sony Xperia 1 III] DarthOps:
MGC_8.1.101_A9_GV1r_ENG is the closest I've managed to find. It's really REALLY buggy but it can take pictures. It's a shame nobody can take this and fix the issues it has :(
[Sony Xperia 1 III] WarVic:
No shame. Xperia phones aren't widely availabe (a handful of countries sell them officially) and very expensive. No wonder Gcam developers aren't interested in them. Also I'm pretty sure that Sony put some obstacles there as well.
[Sony Xperia 1 III] eddiedimitris:
Guys thank you very much for your answers
[Sony Xperia 1 III] ehehcku:
Greetings! I successfully use the conversation recording Call Recorder - SKVALEX
[Sony Xperia 1 III] hotcakes_shinku:
For GCam, use MGC stable build and turn on focus tracking for photo in global settings, it stops the freezing of the image. I'm not sure how it affects the focus/quality of the image so ymmv.
[Sony Xperia 1 III] bountyman334:
You can try this one it works the best so far. Only thing is front camera needs to be set or act as pixel 2xl in the module settings.

Also here my. Xml. That works with all 3 cameras

BSG: MGC_8.1.101_A9_GV1zfix

Download MGC_8.1.101_A9_GV1zfix by BSG.

www.celsoazevedo.com
[Sony Xperia 1 III] ennheng:
wow so nice status bar. how u did it
[Sony Xperia 1 III] Pandemic:
With this and you need root and it's not free

Project Themer · Android 12/13 - Apps on Google Play

Customize your Android!

play.google.com
[Sony Xperia 1 III] ennheng:
Wow thank you for your reply
[ZTE Nubia X Questions & Answers] Savenfall:
Hi guys!

Just bought Nubia X, and all I want now is to use Gapps.

My phone is not rooted and TWRP is not installed. I tried to do this by instructions on the internet but it seems I can't nail it.

Please maybe somebody can help me to do all the steps, or redirect me to meaningful instruction.

I'm a confident PC user, but new to all this flashing stuff.

I can provide any information as needed, thank you!
[Samsung Galaxy Tab S5e Questions & Answers] dougs99:
Hi guys, as we all know, this tablet boots natively to portrate orientation, to me, that's the failing of this model

does any of the ROMs on here boot to landscape natively ?
[P6500 Accessories] xmastree:
Has anyone here tried one of these cheap ones from Hong Kong?

They are cheaper than the nearest option, and come with the right plug too.
[P6500 Accessories] SloN:
It can't be expensive cause it consist only from ac/dc adaptor, usb plug and battery charger. I think it's right device.
[P6500 Accessories] xmastree:
I'm sure it is, I just wondered if it's likely to be good quality.

Tell you what, I'll order one and report back here once I've used it.
[P6500 Accessories] xmastree:
As promised, I bought it and here's the verdict.

Basically, it does what it says on the tin. There was a slight problem with the usb connection, but that was always the case with this computer unless I use a particular lead. Using the lead that came with it, it wouldn't connect. but using the one I normally use it works fine.

Having used cradles before, this one is slightly more awkward to connect but that's because it uses the usb connector. Previous ones have been spring loaded contacts and the pda would just drop into the cradle. This one requires a little force, but nothing major.

I've yet to determine if the charger works as fast as the original one.

All in all, well worth the money.
[P6500 Accessories] xmastree:
Hmm, seems I spoke too soon. The PDA won't charge unless the computer is on. :mad:

The 5V adaptor plugs into the back of the stand, as does the usb lead. Either of these will bring on the blue LED on the base, but the usb lead lights it brighter. I suspect there may be some problem with the 5V from the adaptor.

I shall investigate and report back (if anyone's reading this...)
[P6500 Accessories] carrot34:
charging with PC off

Hi -- I think I've got the same charger as you, and mine seems to charge fine with the computer powered off. . .

Alan
[P6500 Accessories] xmastree:
Having investigated further, it appears that the +5V from the charger and the +5V from the USB are linked directly. This means that with either one connected singly, it's fine, with both connected and the PC on, it's also fine.

But, with the PC off the +5V from the charger is fed back through the USB lead into the PC which pulls down the voltage somewhat.

I discovered this when I turned off the PC and noticed some front panel lights glowing slightly. I unplugged the cradle and they went off, and the blue LED on the charger became brighter.
[P6500 Accessories] alg3:
dock

hi,

i've got the same "hong kong" dock as xmastree.

I think this is a good dock, simple and cheap.

regards.
[Huawei Mate 30 Pro Questions & Answers] restored_life:
So I just got my first Huawei device, it's a mate 30 pro.. Absolutely love it! First day, I was deleting all the bloatware, or what I thought was bloatware, and I deleted the notepad app. Wanted it back, but can't find it anywhere in the app store. I have no idea how or where to get it back.. Any suggestions?
[Huawei Mate 30 Pro Questions & Answers] Oswald Boelcke:
@restored_life Thread closed as a subject matter related thread already exists, in which you've also posted:

https://xdaforums.com/t/huawei-notepad-app.4015899/

Please review the XDA Furum Rules with special emphasis on rule no. 5:

Regards

Oswald Boelcke

Senior Moderator
[Sony Xperia 1 III] bgenesis12:
Has anyone tried changin the chinese version xqbc72 firmware and able to enable the modem freqs for here in the US?

basically changing the chinese to a US model with 5g enabled.
[Sony Xperia 1 III] jaseman:
My understanding is that it is not just software that enables carrier bands, but it is also a hardware limitation along with the proper firmware. If possible I would recommend you stick with a US version for the US...besides you may need the warranty.
[Google Pixel 5a] keanon:
Anyone else seeing this behavior and have suggestions on a fix?

Voice typing works fine when not on car BT audio.
[Samsung Galaxy Note 20 Ultra Questions & Answers] Gramzz:
I bought a Note 20 from Amazon Warehouse (after consumer return). I check the battery status in "Phone Info" and it is 93.8%. On the other hand, the battery cycles "msavedbatteryusage" 1078. I would like to ask you for information about how it looks with you and how do you rate the condition of the battery? how long this phone could be used for?
[Touch Pro, Fuze General] Firann:
Greetings all!

I was wondering if anyone knows the solution to my problem.

When i try to access live messenger or the weather update on my TP through 3G i get the connection error. When using it through WiFi it updates in less than 5 seconds.

Anyone know of any prossible solutions?

Thanks in advance :)
[Touch Pro, Fuze General] christianxxx:
I had the very same problem, but it actually disappeared after a weeks use.

I really didn't do anything to solve it.
[Touch Pro, Fuze General] opensea:
I have the same problem with my TD2.
[Touch Pro, Fuze General] bigube:
Same here, works when I first soft reset but say a hour or two later it does not connect it says cannot connect to wap.cingular.com try again at a later time.
[Touch Pro, Fuze General] Bruce Inman:
If you are on AT&T your settings should be as such;

Go to Settings\Connections\Connections, click on "Advanced" and "Select Networks", in the drop down boxes, set both to MediaNet and "X" out of there.

Go back to the Tasks tab and select "Manage Existing Connections" then click "Proxy Settings". Make sure that "This network connects to the internet" is selected and "Uses a proxy" is unselected.

Also clear out any proxy servers already listed.

You should be all set.