Repository navigation
Releases
OnePlus Buds 4 for macOS 1.1.3
A codec readout, and a decoder that now stops at a refusal.
The vendor SDK carries a table pairing each command id with the method that would have sent it,
and asking the getters in it one at a time turned up two things.
- The negotiated codec, read from the earbuds.
0x0114—getCurrentCodecType— answers
[00 02]. The ids are the vendor's own table (CodecVO.ktnumbers the "High audio" screen the
same way and highlights the entry equal to the reported type), so the app says AAC because
that is their label for the id the buds report, not because the audio was guessed at. It is a
row in the About card, refreshed with the state poll since the codec belongs to the link. - Read-only, deliberately. The command that would change it (
setHighAudioCodecType,
0x041a) is one the vendor's own SDK refuses to send, so no codec switch is offered — and
macOS does not expose its side of the negotiation, so the row reports the buds' word for it. - A fix, from the same sweep. A reply leads with
00when it carries an answer and01when
the firmware declines — and01is now measured: hearing enhancement and its filter data,
Zen mode and free-dialog recovery time all answer a bare01where this app's getters answer a
body. Nothing decodes past a00any more; a declined reply yields no update instead of
[01 03]being read as a counted table of three records. - The README says why the phone's screen has more switches. Their screen is built from a
per-model config fetched from their server (WhitelistConfigDTO.Function), and this hardware
declines the commands behind several of those rows: asked with the vendor's own request,
spatial type, game sound, tap level and the spine calibration state answer nothing, and
hearing enhancement, its filter data, Zen mode and free-dialog recovery answer01.
25 captured frames, 182 self-check assertions, 16 tests (12 protocol, 4 snapshot). The codec
readback is a real capture, kept verbatim in the corpus of record.
OnePlus Buds 4 for macOS 1.1.2
The linked-devices card now asks, instead of waiting to be told.
1.1.1 read the earbuds' device table from the push. This release also requests it: 0x12 with
an empty payload, exactly as the vendor SDK sends it — the first time that getter has been
answered on this hardware, and the reply is now in the corpus of record.
- Read back, byte for byte. The reply is the push's body behind a status byte, with the
request's sequence echoed. The two captures line up byte for byte apart from that status byte
and the phone's state, which had moved from not connected to connected between them — so the
decoder serves both and--selfcheck(154 checks) asserts the agreement. - Polled, because the push is not always timely. The table is asked for on the same cadence
as the battery and the wear report, so the card follows a phone joining or leaving rather than
freezing at what the connect-time push said. - Still read-only. No setter for connecting or disconnecting a peer has ever been seen on the
wire, so the card reports and offers no buttons.
One "not verified" entry narrowed as well: three replies each echoed the request's sequence, so
the README records the measurement instead of calling it unmeasured — one getter is not all of
them, so the app still does not use the byte to discard stale replies.
OnePlus Buds 4 for macOS 1.1.1
Linked devices, read from the earbuds' own protocol.
The phone app's Dual connection screen now has a counterpart: a Linked devices card that
reports what the earbuds say is linked to them — each entry by name, which one is this Mac, its
state, and whether it carries the audio.
- Read, not guessed. The layout comes from the vendor SDK's own multi-connect parser
(notification0x0204, event6→[count][address 6][length][state][flags][nameLength][name],
striding by7 + length), and the capture already in the corpus is what holds it to account:
read under that layout the two records end exactly on the body's last byte. A table that does
not add up yields no update at all rather than a half-read list. - Read-only, because the wire says so. No setter for connecting or disconnecting a peer has
ever been seen, and the SDK's getter has no captured reply, so the card reports and offers no
buttons for it. --selfcheckis now 144 checks; the stride is pinned as a test assertion, and two component
goldens pin the card and its empty state.
Also in this release: the find-my-earbuds Stop (the vendor's own exit-find frame, which their
app can never reach), and the case battery pill that says "Not reported" instead of drawing a
dash. See the README for the full protocol notes and what is still unverified.
v1.1.0 — full feature parity, and checks that can fail
The protocol self-check crash is fixed at its cause, the two surfaces now match the phone
app's own screens, and both are pinned by things that can disagree with them.
Fixed
--selfcheckno longer crashes. It died with a SIGTRAP and took the running app with
it, because every fixture was reconstructed by hand from decoded log lines and one carried
alenvarint that disagreed with its own payload-length field. The parser was right to
reject it; the check that followed indexed an empty array. Fixtures are now raw frames
captured off the wire, and a malformed one reports by name.- Noise control was wrong. The app sent
0x02for Transparency and0x08for ANC, and
the firmware stored Noise cancellation and Off. The mask table is rewritten and each mode
and level was set and read back on hardware to confirm it. - Unsolicited status pushes were ignored entirely. The check required the command byte to
be0x0c; the one notification this hardware sends unprompted carries0x04. - The Adaptive pill was blank.
waveform.badge.ellipsisis not a real SF Symbol, and
SwiftUI draws nothing at all for an unknown one. - Find my earbuds is in the menu-bar panel, and the panel can open the window.
Added
- Noise control: Noise cancellation (Low / Moderate / High / Auto), Adaptive, Transparency,
Off — plus Sound Master EQ and BassWave, Find my earbuds, touch-gesture remapping, firmware
readout. swift test: the protocol checks as tests, including the crash replayed as a regression
test, the setter ids checked against the acknowledgements the hardware sends, and the
property that every mode the UI can offer decodes back to itself.- Golden images at 340pt and 470pt, compared per pixel, so a change that clips the popover
fails a test instead of being noticed three commits later. --render-snapshots: the README images are the app's own output, drawn from a state seeded
with the captured corpus.
Not verified
Stated plainly so nobody mistakes it for settled: the find-my-earbuds tone was never confirmed
by ear; "slide = volume control" is from the write-up, not measured; custom EQ is read-only by
design; firmware OTA is out of scope; the charging bit rests on a single sample.
OnePlus Buds 4 for macOS 1.0.0
First tagged release.
Native SwiftUI controller for the OnePlus Buds 4: battery for each earbud and the case, noise control (ANC / Transparency / Off), in-ear state, and connect/disconnect — as a resizable window and a menu-bar item.
Install: open OnePlus Buds 4.dmg and drag the app onto the Applications shortcut. The build is ad-hoc signed, so the first launch needs right-click → Open.
Requires macOS 26 or later, with the buds paired to the Mac.
v0.1.0
Initial release: native macOS menu-bar controller for OnePlus Buds 4.