How to change the Bluetooth codec on Xiaomi: improve the sound quality in headphones

Sound quality issues in Xiaomi wireless headphones? Maybe it's the wrong Bluetooth codec. By default, smartphones often use outdated SBC, which limits bitrate and degrades sound. In this article, we'll discuss how to manually switch the codec to more advanced AAC, aptX or LDAC, depending on the formats your headphones support.

Itโ€™s important to understand that not all codecs are compatible with every Xiaomi model, for example, aptX requires support from the chipset, and LDAC is only available on flagships with Qualcomm Snapdragon 8xx. Weโ€™ll detail how to check compatibility, activate hidden settings, and avoid typical errors when changing the codec.

Why Change the Bluetooth Codec to Xiaomi

A codec is an audio compression algorithm that determines how sound is transmitted over Bluetooth.

  • ๐ŸŽง Sound quality โ€“ bitrate, sampling frequency, support for Hi-Res Audio.
  • ๐Ÿ”‹ Latency โ€“ critical for games and video (e.g., aptX Low Latency reduces lag to 40ms).
  • ๐Ÿ“ถ Communication stability โ€“ some codecs work better in jamming environments.
  • โšก Battery consumption โ€“ complex codecs (for example, LDAC) They can put the battery down faster.

By default, MIUI and HyperOS choose SBC, a versatile but outdated codec with a bitrate of up to 328 kbit/s. For comparison, LDAC supports up to 990 kbit/s, and aptX Adaptive dynamically adjusts to communication conditions. If your headphones support advanced formats, changing the codec can radically improve the sound.

๐Ÿ“Š What Bluetooth codec are you using?
SBC (default)
AAC
aptX/aptX HD
LDAC
I don't know.

What Bluetooth codecs support your Xiaomi

The list of available codecs depends on the chipset and Bluetooth version in your smartphone. Below is a compatibility table for popular Xiaomi models:

Xiaomi modelChipsetBluetoothSupported codecs
Xiaomi 14 UltraSnapdragon 8 Gen 35.4SBC, AAC, aptX, aptX HD, aptX Adaptive, LDAC, LC3
Redmi Note 13 Pro+Mediatek Dimensity 7200 Ultra5.3SBC, AAC, LDAC, LC3
POCO F6 ProSnapdragon 8+ Gen 15.3SBC, AAC, aptX, aptX HD, LDAC
Xiaomi 12TDimensity 8100-Ultra5.3SBC, AAC, LDAC
Redmi 10CSnapdragon 6805.0SBC, AAC

To find out which chipset is in your device, go to Settings โ†’ About Phone โ†’ All Specifications โ†’ Processor. If your model is not in the table, check the specifications on the official Xiaomi website or through the CPU-Z app.

โš ๏ธ Note: Headphones must also support the selected codec. WH-1000XM5 work LDAC and AAC, a AirPods - only with AAC. Check the characteristics of your headset!

How to check the current Bluetooth codec on Xiaomi

Before you change the settings, make sure that the codec is the problem.

  1. Connect the headphones to your smartphone.
  2. Open Bluetooth Settings (Settings โ†’ Connections โ†’ Bluetooth).
  3. Click on the icon. โš™๏ธ near the name of your headphones.
  4. Scroll down to the section Additional settings or Sound Quality.

If there's no codec, it's hidden in the engineering menu, and to see it, you need to activate the developer mode.

Click 7 times on the MIUI version in Settings โ†’ About Phone |

Return to Settings โ†’ Additional โ†’ For Developers |

Turn on the Bluetooth | debugging switch

Reboot the phone.-->

After the reboot, the Bluetooth settings will have Codec or Sound Quality, and if it's not there, use the ADB method (described below).

Method 1: Change the codec through hidden MIUI/HyperOS settings

On most Xiaomi smartphones, you can change the codec without root rights, through the engineering menu.

  1. Open the phone app and enter the code: ##4636##
  2. In the menu that appears, select Phone Information.
  3. Scroll down to the Bluetooth block.
  4. Click on the Audio Codec and select the desired option from the list.

If #4636### is not working, try an alternative method:

  1. Install Bluetooth Codec Changer from Google Play (Android 10+ is required).
  2. Run it and give permissions to change system settings.
  3. Select connected headphones and an affordable codec.

โš ๏ธ Note: HyperOS (the new firmware Xiaomi) may not have an engineering menu. ADB Apps like Developer Quick Settings to access hidden settings.

๐Ÿ’ก

If the sound starts to break after changing the codec, go back to SBC or AAC โ€“ your headphones may not support the format you choose.

Method 2: Change the codec through ADB (for advanced users)

If standard methods donโ€™t work, you can force codecs to be set via Android Debug Bridge (ADB), which requires a computer and basic command line knowledge.

Steps:

  1. Download ADB Tools and unpack the archive.
  2. Turn on the smartphone debugging by USB (Settings โ†’ For developers).
  3. Connect your phone to your PC and in the command line (in the folder with adb.exe) do: adb devices (the name of your device should appear).
  4. Enter the command to view the current codec: adb shell settings get global bluetooth_a2dp_hw_codec_priority
  5. To install a new codec, use: adb shell settings put global bluetooth_a2dp_hw_codec_priority "AAC,SBC,aptX,LDAC" (List the codecs in order of priority, starting with the desired).

Example of commands for popular codecs:

  • For aptX. HD: adb shell settings put global bluetooth_a2dp_hw_codec_priority "aptX-HD,aptX,AAC,SBC"
  • For LDAC: adb shell settings put global bluetooth_a2dp_hw_codec_priority "LDAC,AAC,SBC"

โš ๏ธ Attention: Wrong commands ADB Before experimenting, back up your settings via adb backup.

What if the ADB canโ€™t see the device?
Make sure that Xiaomi USB Drivers are installed (you can download it on the official website). Also check that the developer settings have enabled the Allow Debugging over USB (Safe Mode) option and the MTP data transfer mode is selected when connecting.

Solving problems after changing the codec

Sometimes, after a codec change, there are problems. Let's look at the typical cases and how to fix them:

Problem.Possible causeDecision
The sound is interrupted or lost.Incompatibility of codec with headphonesReturn to SBC or AAC, update the firmware of headphones
High latency of soundUsed by LDAC or AAC with low bitrateSwitch to aptX Low Latency or LC3
Poor sound qualityBitrate is limited to Bluetooth settingsEnable high quality audio in headphone settings
Bluetooth shuts down on its ownConflict with energy conservationAdd headphones to exclude battery optimization

If the problems persist, try:

  • ๐Ÿ”„ Reboot the phone and headphones.
  • ๐Ÿ“ฑ Reset Bluetooth settings (Settings) โ†’ Connections โ†’ Bluetooth โ†’ โ‹ฎ โ†’ Reset the settings).
  • ๐Ÿ”ง Update the firmware of the smartphone and headphones.

๐Ÿ’ก

On HyperOS, after changing the codec, you may need to reconnect the headphones again โ€“ remove them from the list of devices and pair from scratch.

The Best Bluetooth Codecs for Different Scripts

The choice of codec depends on your tasks:

  • ๐ŸŽต Music (Hi-Res Audio): LDAC (990 kbps) or aptX Adaptive (up to 420 kbps) Suitable for Tidal, Apple Music Lossless.
  • ๐ŸŽฎ Games and Videos: AptX Low Latency ~40 ms) or LC3 (Bluetooth 5.2+).
  • ๐Ÿƒ Sport/street: AAC (a) good stability; or SBC (maximum compatibility).
  • ๐Ÿ”‹ Battery savings: SBC or AAC (less processor load).

On Xiaomi smartphones with Snapdragon 8xx chipsets, the LDAC codec only works when the Sound Quality mode is turned on in Bluetooth settings. To do this, after selecting the codec, go to Settings โ†’ Sound โ†’ Bluetooth Sound Quality and select High Quality.

If you use Sony headphones (e.g. WH-1000XM4/XM5), you can manually prioritize your LDAC in their companion app (Sony Headphones Connect) and select a bitrate (44.1 kHz / 990 kbit / s for better quality).

FAQ: Frequent questions about Bluetooth codecs on Xiaomi

Can I change the codec without root rights?
Yes, on most Xiaomi models, this is possible via the engineering menu (#4636##) or ADB. Root is only required to force uncertified codecs (e.g., LC3plus on older chipsets).
Why is there no Bluetooth code in the settings?
This may be due to: Lack of developer mode (enable it as described above); firmware limitations (some versions of HyperOS for China do not have this item); outdated Bluetooth (on Bluetooth 4.2 only SBC and AAC are available); Solution: use ADB or third-party applications like Bluetooth Auto Connect.
Which codec is best for AirPods on Xiaomi?
AirPods (including the Pro 2 and Max) only work with AAC. Other codecs are not supported. To improve sound: In Bluetooth settings, select AAC. Enable Transparent Mode in AirPods settings (reduces latency). Update your headphone firmware via iPhone (sometimes improves Android compatibility).
Why did the codec change to LDAC sound worse?
Possible reasons: LDAC requires stable connection โ€” if the signal is weak, the bitrate automatically decreases. The headphones have power saving mode on (turn it off in their app). Uses a suboptimal sampling rate (try 48 kHz instead of 44.1 kHz). Solution: go back to aptX Adaptive or check the settings in the headphone application.
Can I use aptX on Xiaomi with a MediaTek processor?
MediaTek chipsets (e.g. Dimensity) 700/900/1200) It doesnโ€™t officially support aptX, but some models (e.g. Redmi) do. K50 Pro) can work with it through ADB. Install the codec through the command: adb shell settings put global bluetooth_a2dp_hw_codec_priority "aptX,AAC,SBC" Restart your phone and check if aptX is displayed in Bluetooth settings. If there is no sound, go back to the Bluetooth settings. AAC, As there is no hardware support.