docs / models / 75U8QTUK / V0000.09.60I.Q0813 / findings

Native Home replacement installed (operationui Launcher component)

Current state: the installed bundle is now v2 β€” merged apps/inputs and CSS wallpapers β€” see findings/10. Root SSH is now boot-persistent and the launcher has been verified to survive a real reboot byte-identically, in findings/11. This file is the canonical record of the first install, the preflight, the SDK contracts, the restart mechanics and the rollback path; its hashes describe the v1 candidate that findings/10 superseded.

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

Preconditions checked before overwriting anything

Architecture

SystemUI (/opt/hisenseUI/bin/SystemUI, uid 311, group 909) is launched by /opt/hisenseUI/startgui.sh with --url=file:///hisenseUI/index.html. The shell lives on the read-only rootfs at /opt/pkgs/tv.vidaa.app.ui/; the writable UI module is /APPS/pkgs/tv.vidaa.app.operationui/CHA/ (symlinked as current, exported as HI_UI_OPERATIONUI). The launcher bundle is /APPS/pkgs/tv.vidaa.app.operationui/CHA/apps/launcher/js/app.js.

app.js ends with (self._V_M_=self._V_M_||{}).launcher=()=>i("740m").Z. The appended wrapper replaces only route[0].component for /Launcher with our Vue component. beforeEnter guards, meta.sourceInfo, the other routes (/Launcher/myApps, /Launcher/secondaryPage, /KidsLauncher, …), vendor key dispatch and toast/bui services are untouched. This follows the proven 55A7KAU module-vs-root lesson; the 55A7KAU files remain unmodified.

SDK contracts on this build (source-verified, differ from 55A7KAU)

Concern 55A7KAU adapter 75U8QTUK (this build)
App list getCurrentShowApps("Launcher") me.req("app-service").getData("getAppList",{sceneCode:"launcher"}).result
Availability getAppInfoByAppId getData("getAppInfo",{appId,url:"",checkRange:1}).result (checkRange:1 β†’ visible allApps; returns an app object or null)
Inputs getAllInputsData same
Input switch changeSourceTo me.req("all-inputs").invoke("changeSourceTo",sourceId,"launcher")
Settings open("settings",{vk:"T"}) me.req("setting").open("settings") β€” no vk
App launch sdk.apc.start sdk.apc.start (=== stock MP; DSbq.MP is the SDK instance's apc) with {name,appId,url,storeType,startMethod,typeCode:"600002",rateInfo:""}
startMethod CMDMETHOD.REMOTECONTROL CMDMETHOD.LAUNCHER_RECOMMEND = "52" (home-tile equivalent); KEY_INPUT_START = "207"
storeType separate field app records carry storeType; feed tiles call the same value openMode (storeType: e.openMode in tileOpenAction). Adapter accepts either.
Icons local var/local/storeAppIcon/… https://img.vidaahub.com/… (feed tiles) and app-service img / httpIcon / icon_web_url / icon_local_url. Shared localIcon() rejects them β†’ model override accepts the vidaahub host.

Other measured facts:

Files added (all committed; shared 55A7KAU files untouched)

File Purpose
tools/launcher-host/native-platform-75u8qtuk.js model-specific data adapter (apps, inputs, settings, launch) with the 55A7KAU retry/event logic
tools/launcher-host/free-my-tv-native-75u8qtuk.js wraps AlvidaaFreeMyTV: vidaahub/local icon override, guarded announce and routeFocus
tools/launcher-host/build-native-75u8qtuk.cjs asserts stock sha256, appends adapter + shared frontend + override + native-entry.js, vm.Script parse-check, private-only output
tools/launcher-host/native-platform-75u8qtuk.test.cjs offline adapter contract test (5 groups)
tools/launcher-host/native-home-75u8qtuk.test.cjs load-time bundle smoke test (route replaced, icons, idempotent wrapper)
tools/launcher-host/switch-home-75u8qtuk.sh on-TV supervised restart: dry / install / rollback

Candidate bundle (private, gitignored firmware/75u8qtuk/): 344249 bytes, sha256 226ac863ea26842fed0bb9872d74c00303d80131456cf53deb119c73bb793da0, md5 1f465e9bd834cd98dfcdbe5c904bd02f. Built from the unmodified vendor bundle plus the four appended parts, with the MIT license header from third-party/free-my-tv/LICENSE.

Discoveries / traps (recorded same hour)

  1. /var/local is ext4 rw,seclabel,nosuid,nodev. A script placed there cannot be executed via its shebang: sh: …/switch-home.sh: /bin/sh: bad interpreter: Permission denied (exit 126). Invoking it as /bin/sh <script> works. The first detached dry-run attempt produced no log and changed nothing on the TV for exactly this reason; SystemUI stayed at PID 1524 and app.js stayed stock. Fixed by always invoking through /bin/sh explicitly.
  2. SSH sessions carry no PATH / LD_LIBRARY_PATH. The relaunch must reuse the vendor environment. We capture /proc/<pid>/environ before the kill and re-export it in the detached launcher. Without it, secure_exec could fail to resolve its shared libraries.
  3. secure_exec is safely testable. /usr/local/bin/secure_exec SystemUI /opt/hisenseUI/startgui.sh while SystemUI is live prints SystemUI is running, exit!!! and returns 1 β€” a no-op proof that execvp + uid/gid/groups/caps work from an SSH-spawned context. secure_exec is a small ELF using execvp and libsecure-processid.so.
  4. Restart mechanics. startgui.sh refuses to start when pidof SystemUI succeeds β†’ kill first. Its last line is exec "/opt/hisenseUI/bin/$PROCESS_NAME" …, so the new engine is reparented to PID 1. There is no APM/superwatch respawn on this build; the launcher must be started explicitly. /bin/sh is bash (//openbox/bin/bash), so read -r -d '' and export "KEY=VALUE" work.
  5. Cache scoping. Only compiled_js and uncompiled_js were reset (moved aside, recreated empty as 311:311 / 0751). All other Cobalt cache dirs (image, css, font, html, splash, service_worker_js, cache_api, other) were left intact β€” the 55A7KAU black-screen lesson. A new compiled entry 3005616565 (24804 bytes) appeared after the restart, proving the new bundle was compiled rather than served from a stale cache.

Dry run (stock-only, gate)

/bin/sh -c 'trap "" HUP; exec /bin/sh /var/local/alvidaa/switch-home.sh dry' run detached. No file or cache changes.

Install

Same script, MODE=install. Order: verify hashes β†’ capture env β†’ kill SystemUI β†’ mutate files while the engine is down β†’ relaunch β†’ verify.

Backups (both sides, private)

Verification (owner-confirmed + objective)

The owner reported the new Home, then confirmed app launch, the Inputs tab and the TV Settings button all work. Two HAL screenshots (/usr/local/bin/screenshot β†’ /tmp β†’ pulled over SSH, zero persistent TV writes) show:

Teardown / rollback

One command restores stock and restarts the engine:

ssh -p 8008 -i server/keys/vidaa_75u8qtuk_ed25519 root@<tv-ip> 'sh -s' <<'EOF'
PATH=/basic/bin:/bin:/usr/bin:/sbin:/usr/sbin; export PATH
D=/var/local/alvidaa
/bin/rm -f "$D/switch.done" "$D/switch.log"
/bin/sh -c 'trap "" HUP; exec /bin/sh /var/local/alvidaa/switch-home.sh rollback' \
  >/dev/null 2>&1 </dev/null &
i=0; while [ ! -f "$D/switch.done" ] && [ $i -lt 45 ]; do /bin/sleep 2; i=$((i+1)); done
/bin/cat "$D/switch.done"; /bin/cat "$D/switch.log"
EOF

MODE=rollback restores app.js.stock with 305:909 / 0640, restores both original JS-cache directories, and restarts SystemUI with captured vendor credentials. Manual equivalent: cp -p the stock file back, restore the two cache dirs from /var/local/alvidaa/backup/, then secure_exec SystemUI /opt/hisenseUI/startgui.sh from a detached, HUP-immune subshell using the saved /var/local/alvidaa/systemui.env.

At the time of this install the launcher had not been reboot-tested and root SSH needed the manual 83 + 82 re-arm (08) after a reboot. Both were resolved in findings/11: root SSH is now boot-persistent, and a supervised reboot confirmed the launcher, the merged list and the wallpaper survive byte-identically. If SSH is ever unavailable, the browser re-arm page remains the documented fallback.

Ground rules honoured