ThePsych

Engineering write-up · Samsung S95B · Tizen 6.5 · Zero root

Zero root libgio-2.0 → kdbus 481 → 29 AVOC methods 69/69 TCP security tests

Cracking zero-root avocd over Tizen 6.5 kdbus

Samsung hides OLED panel hours in the Service Menu and buries Game Bar toggles under layers of UI. Here is how an unrooted Public .tpk holding only the internet privilege talks straight to org.tizen.tv.avoc over /sys/fs/kdbus/0-system/bus.

Hardware verified: Samsung S95B (QN55S95BAFXZA, Tizen 6.5, armv7, PontusM). PanelPilot v1.0.0 requires zero root on your TV.

1. The goal: OLED diagnostics without the Service Menu or root

On a 2022 Samsung S95B (QN55S95BAFXZA, US, Tizen 6.5, armv7, Linux 5.4.77, PontusM platform), everyday OLED care has two friction points: reading panel hours and Pixel Refresh history forces you into the risky Service Menu, and toggling Game Bar / HDR10+ Gaming / HGiG / Peak Brightness takes too many remote clicks.

My target for PanelPilot was strict from day one: no Service Menu and no rooting requirement for users. Everything had to run inside a stock, Public-signed Tizen .tpk that anyone can sideload over SDB and control from their phone.

2. Hurdle 1: Getting Developer Mode & SDB alive without an IR number pad

Before writing a line of Tizen code, I had to unlock Developer Mode on a TV where I only had a phone remote — no physical IR number pad.

Blocker A · Apps 12345

SmartThings & soundbar remotes failed

Number keys sent through SmartThings or the soundbar remote never opened the Developer Mode popup. Worse, Smart Hub terms had never been accepted, leaving Apps in a reduced mode. Accepting only the required Smart Hub terms (declining optional ACR, ad, and voice toggles) let the popup trigger.

Fix · Raw-TLS WebSocket

Driving real remote keys over :8002

After enabling IP Remote and setting Access Notification: First Time Only, I drove real key frames over wss://<tv-ip>:8002/api/v2/channels/samsung.remote.control. Node 24's built-in WebSocket opened the socket without delivering TV frames, so a raw-TLS WebSocket client handled the handshake and keys.

Blocker B · Cold boot

Standby leaves sdbd dead

Turning Developer Mode on and cycling power with the remote is only a standby cycle — sdbd stays down and port 26101 refuses connections. It takes a true cold power unplug to bring sdbd up.

Blocker C · Cert signing

Privacy DNS blocks Samsung's CA

Samsung certificate generation failed with getaddrinfo ENOTFOUND svdca.samsungqbe.com. Privacy DNS blockers such as Proton NetShield block Samsung's certificate CA domain — temporarily bypassing it lets the three certificate commands complete.

3. Hurdle 2: Read-only D-Bus & namespace discovery on the S95B

With SDB connected, a stock Public app still can't inspect Samsung's internal audio/video output daemon — sdb shell returns empty stdout and sdb pull refuses system paths. After mapping what a custom Public-signed probe app could see on its own (SMACK label, library exports, and D-Bus policy directories), I brought up a temporary volatile root shell on my S95B (lost on every reboot) strictly for read-only introspection and mount-namespace inspection.

Zero-root boundary

We do not host root exploits or root guides here, and PanelPilot itself requires zero root — the volatile shell was used strictly for read-only D-Bus and namespace discovery so the final .tpk runs completely unrooted on a stock TV.

Introspecting org.tizen.tv.avoc at object path /org/tizen/tv/avoc (interface org.tizen.tv.avoc.AvOutputControl) returned a massive GDBus 2.62.3 XML surface: 481 total methods, owned by avocd running under SMACK System::Privileged.

Conventional wisdom says a third-party Public app can't call a System::Privileged daemon. Checking /usr/share/dbus-1/system.conf proved otherwise: the base D-Bus policy already allows <allow send_type="method_call"/> for all users, with zero avoc-specific deny policy anywhere. D-Bus policy wasn't the blocker at all.

4. The breakthrough: kdbus-only system bus + libgio-2.0 GDBus

When I first tested calling avoc getters from an unrooted Public .tpk using direct libdbus-1.so.3 P/Invoke, the probe crashed before ever reaching the bus.

Checking the TV's filesystem from both namespaces revealed why:

Instead of fighting libdbus-1.so.3 over P/Invoke, routing calls through libgio-2.0.so.0 GDBus (g_bus_get_sync + g_dbus_connection_call_sync paired with libglib-2.0.so.0 GVariant marshaling) speaks kdbus natively out of the box.

With that one change in TizenBackend.cs, an unrooted Public .NET ServiceApplication holding only the single http://tizen.org/privilege/internet privilege connects straight to /sys/fs/kdbus/0-system/bus and calls org.tizen.tv.avoc.AvOutputControl directly — spawning zero external processes.

Zero-root Tizen 6.5 kdbus call path and SafeSetters gate A stock Public .NET ServiceApplication holding only the internet privilege calls libgio-2.0 GDBus, which connects directly to the kernel system bus at /sys/fs/kdbus/0-system/bus and reaches org.tizen.tv.avoc (avocd). On the write path, PanelPilot's closed 29-method SafeSetters gate allows user-menu settings and returns HTTP 403 on calibration, white balance, NVRAM, or reset calls. STOCK PUBLIC .TPK .NET ServiceApplication internet privilege only Zero root libgio-2.0 GDBus g_bus_get_sync + GVariant calls No child processes kdbus SYSTEM BUS /sys/fs/kdbus/ 0-system/bus Visible in app NS org.tizen.tv.avoc avocd daemon 481 methods Open send policy SafeSetters (29) User menu only Int + readback HTTP 403 BLOCK Cal · WB · NVRAM 452 methods locked
Zero-root execution path: a stock Public .tpk calls libgio-2.0 GDBus over /sys/fs/kdbus/0-system/bus into avocd, while PanelPilot's closed 29-method SafeSetters gate blocks calibration and NVRAM writes with HTTP 403.
// src/Tizen/TizenBackend.cs — no unix socket, no shell-out, single internet privilege
IntPtr conn = g_bus_get_sync(G_BUS_TYPE_SYSTEM, IntPtr.Zero, out err);
IntPtr res  = g_dbus_connection_call_sync(
    conn, "org.tizen.tv.avoc", "/org/tizen/tv/avoc",
    "org.tizen.tv.avoc.AvOutputControl", member,
    param, IntPtr.Zero, 0u, 5000, IntPtr.Zero, out err);

5. Locking down 481 methods to 29 (PanelPilot v1.0.0)

Just because avocd exposes 481 methods doesn't mean a LAN bridge should expose them. Alongside harmless picture toggles, the same interface carries dangerous factory, calibration, and reset methods — including SetCalibratedValue, ResetWhiteBalance, ResetColorSpace, ResetPicture, and ResetAll.

In SAFETY.md and src/Core/SafeSetters.cs, PanelPilot enforces a closed 29-method SafeSetters allowlist. Any setter outside those 29 returns HTTP 403 before touching the bus, with no config flag, header, or override switch to expand it. At startup, the static constructor refuses to load if any method name in the table contains calibrat, whitebalance, nvram, anapeak, paneltiming, reset, service, or factory.

LayerImplemented guarantee in PanelPilot v1.0.0
Write allowlistClosed 29-method SafeSetters map in src/Core/SafeSetters.cs; integer-only arguments (int32 / byte), counted and paired with read-back verification.
LAN & CSRF gateServes RFC 1918 private LAN IPv4 subnets and loopback only; enforces IPv4 Host, exact Origin matching (zero CORS headers), JSON-only POSTs, and rate limiting.
TOFU pairing1-tap pairing issues a 128-bit token sent via X-Bridge-Token (constant-time check), locking automatically after the first pair or 10 minutes.
OLED watchdog10-second watchdog restores the default screensaver setting on timer expiry, TV standby, service stop, or next boot if interrupted.
Smart Hub tidyDownloads a JSON backup to your phone before writing launcher changes, with one-tap restore.
Clients & testsEmbedded web UI bundles gzipped under 12 KB, paired with a native Kotlin + Jetpack Compose Android companion and verified by 69/69 live TCP security tests.

Call for Tizen 7–10 testers: share a read-only /probe

PanelPilot v1.0.0 is hardware-verified on Samsung S95B (Tizen 6.5) and built against the Tizen 6.5 API so it can install forward onto newer sets. If you own an S90C, S95C, S90D, S95D, or S95F, sideload the release and open http://<your-tv-ip>:47812/probe.

GET /probe is strictly read-only, makes zero writes, and scrubs IP addresses, MAC addresses, and serial-looking strings before returning JSON — letting us map which avocd methods and panel counters match across Tizen 7–10.

Grab PanelPilot v1.0.0

Free, open source, zero root, and verified by 69/69 live TCP security tests.