BlueCodec
An Android app that remembers your preferred Bluetooth codec per headset, with a Quick Settings tile that can block automatic reconnects.

Android forgets which Bluetooth codec you chose. BlueCodec remembers it per headset — aptX HD, LDAC, AAC — and reapplies it whenever that headset connects. It only offers codecs Android reports as available, checks what was actually negotiated, and stops retrying if the phone or headset refuses.
Its Quick Settings tile toggles Bluetooth and, in the wide layout, shows the connected device and its battery. An optional, experimental mode stops nearby headsets from reconnecting on their own when Bluetooth comes back on, so you choose which one connects.
It runs through Shizuku instead of root, with no internet permission, analytics or account. Early release, MIT licensed, with APKs on GitHub Releases.