whatisgithub

What is melodycodectweaker?

andrea-lyz/melodycodectweaker — explained in plain English

Analysis updated 2026-06-24

16JavaAudience · generalComplexity · 3/5LicenseSetup · moderate

In one sentence

MelodyCodecTweaker is an Android module for OPPO and OnePlus phones that unlocks hidden Bluetooth audio settings, codec selection, sample rates, and LE Audio, directly in the built-in headphone app.

Mindmap

mindmap
  root((melodycodectweaker))
    What it unlocks
      Codec selection SBC AAC LDAC
      Sample rate 44 48 96 kHz
      LE Audio toggle
      Connection priority
    How it works
      LSPosed module
      Injects into headphone app
      Reads Bluetooth stack
    Diagnostics
      Module load status
      One-click feedback bundle
    Setup
      Install APK
      Enable in LSPosed
      Restart headphone process
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Switch OPPO or OnePlus earphones to LDAC or LHDC audio mode from within the stock wireless headphone app.

USE CASE 2

Choose the exact sample rate your Bluetooth earphones use on a compatible OPPO or OnePlus phone.

USE CASE 3

Enable LE Audio and LC3 mode for supported earphones through a toggle in the headphone control panel.

USE CASE 4

Use the diagnostics page to check if the module loaded correctly and bundle logs for troubleshooting.

What is it built with?

JavaAndroidLSPosed

How does it compare?

andrea-lyz/melodycodectweakerfwilldev/portasplit-trackerstpavel/tspu-probe
Stars161616
LanguageJavaJavaJava
Setup difficultymoderatemoderateeasy
Complexity3/52/52/5
Audiencegeneraldeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires LSPosed framework installed and three specific scopes enabled, plus restarting the headphone process after setup.

Use freely for any purpose, including commercial use, as long as you keep the copyright and license notice.

So what is it?

MelodyCodecTweaker is an Android module for OPPO and OnePlus phones that adds audio quality controls to the built-in wireless headphone app. OPPO and OnePlus devices come with an app called Wireless Headphones (the package name is com.oplus.melody) that manages connected Bluetooth earphones. The official app shows basic information but hides the deeper audio settings that the phone's Bluetooth system actually supports. This module surfaces those settings so you can see and control them directly from the headphone panel. The module runs through a tool called LSPosed, which lets certain apps modify other apps' behavior at runtime without changing their installation files. When enabled, MelodyCodecTweaker injects a new audio quality section into the headphone control panel. You can see which Bluetooth audio format your earphones are currently using, such as SBC, AAC, LDAC, LHDC, or LC3. Where the earphones and phone support it, you can also switch between connection priorities, balance modes, audio quality modes, and different sample rates like 44.1, 48, or 96 kHz. The module reads these options directly from the phone's Bluetooth stack rather than using a fixed list, so it only shows what your specific earphones actually support. If your device supports LE Audio, a newer Bluetooth audio standard, the module adds a toggle for that too. Turning it on switches the earphones to LC3 mode and hides the classic Bluetooth quality options that no longer apply. The module remembers your choices per device, so when you reconnect a pair of earphones it restores your last settings automatically. There is a built-in diagnostics page accessible from the app icon on your home screen. It shows which parts of the module are loaded and working correctly. If something is not injecting properly, the diagnostics page tells you whether the problem is with the scope loading, the page hook, or the Bluetooth bridge. The same screen has a one-click option to bundle up a feedback package, which collects device info, module version, and recent logs to help the developer track down problems across different phone models and app versions. Setup requires installing the module APK, enabling it inside LSPosed, checking three specific scopes, and restarting the wireless headphones process. The project is open source under the Apache-2.0 license.

Copy-paste prompts

Prompt 1
I have an OPPO phone with LSPosed installed and want to use MelodyCodecTweaker to switch my earphones to LDAC, walk me through installing the APK, enabling the module, and selecting the right scopes.
Prompt 2
Show me how to use MelodyCodecTweaker's diagnostics screen to check whether the page hook and Bluetooth bridge loaded correctly on my OnePlus device.
Prompt 3
I want to enable LE Audio and LC3 mode on my earphones using MelodyCodecTweaker, explain what settings change and how to toggle it back if it causes problems.

Frequently asked questions

What is melodycodectweaker?

MelodyCodecTweaker is an Android module for OPPO and OnePlus phones that unlocks hidden Bluetooth audio settings, codec selection, sample rates, and LE Audio, directly in the built-in headphone app.

What language is melodycodectweaker written in?

Mainly Java. The stack also includes Java, Android, LSPosed.

What license does melodycodectweaker use?

Use freely for any purpose, including commercial use, as long as you keep the copyright and license notice.

How hard is melodycodectweaker to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is melodycodectweaker for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.