docs / models / 50A51HUV / 09.01O.P0813 / findings

Native Home installed (operation-ui Launcher component)

2026-11-09, owner-authorized, LAN-local. The Free My TV native Home now replaces the stock Home on the 50A51HUV. This is a component swap inside the writable operation-ui module, not a SystemUI or root-page replacement. Stock UI lifecycle, other routes, key dispatch, toasts and vendor services are retained. Every change has a tested teardown path.

This is the third model with lane 3 working, and the first on the generic SDK contract rather than a per-build port.

Preconditions checked before overwriting anything

Architecture β€” and how it differs from the other two models

hisenseUI (/opt/hisenseUI/bin/hisenseUI, uid 311) is launched by /opt/hisenseUI/startgui.sh with --url=file:///hisenseUI/index.html. The writable UI module is /APPS/channelA/operation-ui/ β€” not /APPS/pkgs/tv.vidaa.app.operationui/CHA/ as on the 75U8QTUK, and not the hisenseUI tree that failed on the 55A7KAU.

app.js ends with (self._V_M_=self._V_M_||{}).launcher=()=>i("taIK").Z, the same shape as the 75U8QTUK (740m there). The appended wrapper replaces only route[0].component for /Launcher. beforeEnter guards, meta.sourceInfo, the other routes, vendor key dispatch and toast/bui services are untouched.

SDK contracts on this build: the generic set

Concern This build (09.01O) 75U8QTUK (09.60I)
App list getCurrentShowApps("Launcher") getAppList({sceneCode:"launcher"})
Availability getAppInfoByAppId getAppInfo({checkRange:1})
Inputs getAllInputsData same
Input switch changeSourceTo same
Settings open("settings",{vk:"T"}) open("settings"), no vk
App launch sdk.apc.start + CMDMETHOD.REMOTECONTROL LAUNCHER_RECOMMEND ("52")

So the generic native-platform.js is the correct adapter here; the 75U8QTUK port would be wrong on this unit. That is the whole per-model story in one table: the mechanism is identical, the contracts are not.

Two traps this build has that the 75U8QTUK does not

  1. APM supervises the launcher. /usr/local/etc/apm/application-config-na-sa.ini has [launcher] process_name = hisenseUI, isKeepAlive = true, restore_time_when_crash = 10. But it restores on a crash, not after a clean SIGTERM β€” a deliberate stop is treated as intentional. So the restart still goes through secure_exec hisenseUI /opt/hisenseUI/startgui.sh, exactly as on the 75U8QTUK. Do not wait for APM after a kill.
  2. pidof hisenseUI is unreliable. It also catches a short-lived child, so the first dry run captured the env of pid 5023, signalled it, and then correctly refused to continue because the real engine (352) was still alive. Match on /proc/<pid>/exe instead. This is why the dry gate exists.

Two smaller ones:

Install

tools/launcher-host/switch-home-50a51huv.sh, same shape as the 75U8QTUK script and run detached through /bin/sh (/var/local is seclabel, so a direct shebang exec fails):

/bin/sh -c 'trap "" HUP; exec /bin/sh /var/local/alvidaa/native-home/switch-home.sh MODE' \
  >/dev/null 2>&1 </dev/null &

MODE=dry restarts stock-only as the gate. MODE=install verifies hashes, kills the engine, stages the candidate, chown 305:305 / chmod 0755, mv -f, moves compiled_js and uncompiled_js into the backup and recreates them 311:311 / 0751, then restarts. MODE=rollback reverses all of it.

Candidate: 315765 bytes, md5 eba638da2ee81a9f9d4177598881b25b, built from the pinned stock bundle plus native-platform.js, free-my-tv-native.js and native-entry.js.

Verification

Not yet exercised on this unit: Inputs, TV Settings and app launch. Those are the three paths that actually prove the platform adapter, so they are the next thing to confirm.

Our own variant, same build

After Free My TV was confirmed live, the alvidaa design was switched in with MODE=switch (same swap, keeps the stock backup and the original cache backup so rollback still works).

The two variants are interchangeable on this build because they share the platform adapter and the entry. Only the component file changes, which is the shape the variant picker should preserve.

Quality pass (same day)

Three changes, deployed through native-install.cjs rather than by hand:

Verified from the frame: tile edges at 112β†’376 and 396β†’660 (264 wide, 20 gap), the focused tile extending ~4 px past its bounds (the 1.03 scale), and the wallpaper measurably brighter bottom-right than top-left. The app overlay's icons were not exercised on screen; they are covered by tests only.

Teardown / rollback

/bin/sh -c 'trap "" HUP; exec /bin/sh /var/local/alvidaa/native-home/switch-home.sh rollback'

restores app.js with 305:305 / 0755, restores both original JS-cache directories, and restarts the engine with the captured vendor environment. Backups live in /var/local/alvidaa/native-home/backup/ and, privately, in firmware/50a51huv/.

Ground rules honoured

8. What actually paints on this engine (2026-11-11)

Measured on the reference unit while chasing an input icon that would not appear. Four mechanisms, four answers. This is the expensive part of the finding: each one looked correct in the DOM and produced nothing on screen, and there is no DevTools on this build to say why.

Mechanism Result
SVG data URI in an <img> does not paint
the same SVG data URI in background-image does not paint
the vendor icon-font class the SDK reports (v-op-ic-videoplay, rendered as <i class="v-icon-op …">) does not paint outside the vendor's own components
a PNG data URI in background-image paints β€” the generated wallpaper has always rendered this way
a div with a border or background-color paints β€” this is how the fallback hardware icon was drawn

So: raster or shapes, never SVG, and do not count on the vendor icon font from a component we inject. The dock's device icons are now drawn as divs (rects, bars, circles) for that reason.

Two traps found alongside it, both in our own code:

Verification lane for anything visual on this build: tools/screenshot.sh, then a pixel diff against the previous frame to prove a change happened, and an ink-count over the region of interest to prove what changed. Both were run here; the diff is what showed that two earlier "fixes" had changed only the clock.

9. Key injection: two lanes measured, both dead (2026-11-13)

The CLI's alvidaa key was built to replace "press a key on the TV and tell me what you see" with a script. It does not work, and the reason is worth recording because the obvious fix is the wrong one.

Lane 1 β€” write to /dev/input/eventN: does nothing. Those nodes are read-only for consumers; the kernel discards writes to them. The CLI's first device lane did exactly this, so every key it reported sending was dropped. Its own output flags HOME and ENTER as guesses, and marks RIGHT and DOWN as "verified on the reference unit" β€” that claim is wrong for this lane and has been corrected.

Lane 2 β€” a /dev/uinput virtual keyboard: registers, then is ignored. A static armv7 emitter (tools/tvkey/tvkey.c, built with zig) creates the device and the kernel logs it:

input: alvidaa-key as /devices/virtual/input/input14

and it appears in /proc/bus/input/devices. But no key it emits moves the launcher: DOWN, RIGHT, ENTER and HOME each produced zero frame change over a 12-second sample, measured by pixel diff outside the clock band.

So the vendor's key handling reads its own physical devices (the Hisense BT device on event3, the MStar IR receiver on event1, the MTK keypad on event0) and ignores virtual ones. Injection has to arrive through a device the vendor already owns, or through the vendor's own API.

The lane that should work, and is untested: the MQTT ui_service sendkey action β€” the vendor's own path, the one the remote-now client uses. It needs either a running bridge that exposes it, or a direct MQTT session with the paired identity. Nobody has tried the direct session, because the one-session rule means it would kick whatever holds the identity; with the bridge down it is free to try.

What this cost: an hour of measurement, and one ambiguous moment where the apps drawer was open on screen and it was not clear whether a key had opened it or the owner had. The lesson is the same one the preview harness taught: a test that exercises the command builder is not a test that the command works. A hardware-gated check, or an honest "unverified on hardware" marker, would have prevented the claim.

10. Input signal & custom-label detection bug (2026-11-20)

Owner report from the reference 50A51HUV: custom input labels are missing, and the native Home does not detect when PlayStation or Fire TV is connected (leaving ports labelled HDMI1–HDMI3 with no signal and generic HDMI icons). Logged offline while LAN WiFi is down; checked statically against the pinned stock operation-ui bundle (firmware/50a51huv/operationui/apps/launcher/js/app.js) and prior hardware screenshots.

Pre-existing, not a UI-redesign regression: the Nov 9 capture (firmware/50a51huv/screenshots/after-alvidaa-v3.png) and the Nov 19 before/after captures all show every port as STANDBY / no signal and HDMI1–HDMI3, even while the bridge's MQTT /api/sources simultaneously reported TV, HDMI2, and MusicSharing as signal: true.

Confirmed root cause #1 β€” signalOf() reads MQTT field names, not the JS SDK's:

Suspected contributors to missing custom / CEC labels (to confirm once WiFi returns):

  1. SDK vs storage field coverage: sourceName() checks alvidaa_custom_names, then deviceName, displayname2, rename, name, sourceId. It does not check displayname / displayName (used on other VIDAA builds, e.g. 65U8HAU MODDING.md), and deviceName currently overrides rename even if deviceName is a generic port string.
  2. Missing launcher-show event & module refresh: stock app.js subscribes to o2n://launcher/show (LAUNCHER_HOME_SHOW) and exposes all-inputs.invoke("refreshInputsDataByOtherModules"). native-platform.js currently subscribes to inputs-data-changed / str-resuming / init-finished only.

Offline patch status (2026-11-20 β€” unit-tested, pending hardware verification):

Next steps once WiFi is back:

  1. Dump the raw JSON array from sdk.me.req("all-inputs").getData("getAllInputsData").result on 50A51HUV while PlayStation and Fire TV are plugged in and awake, plus read alvidaa_custom_names from .starboard.*.storage (verify whether refreshInputsDataByOtherModules or any extra field is still needed).
  2. Re-deploy via native-install.cjs and confirm live LIVE indicators, custom labels, and matched ps5.png / fire-tv.png art via tools/screenshot.sh.