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
git log: branchu8qtuk-75, three unpushed commits at the time, no PR opened./var/local: no/var/local/alvidaaand no/var/local/otaTest*backups β no other agent session had state on this TV./var/local/alvidaawas created by this session only.- OTA already frozen on this unit:
/OAD/AppUpgradeSwitch.jsonhasupgradeFlag: "0",nightupdate.inihasdcm_update=0anddcm_standby_update=0, and/OAD/pkgs/{download,backup}hold no staged update package. No OTA endpoints were poked. - Stock baseline pinned and verified on both sides:
/APPS/pkgs/tv.vidaa.app.operationui/CHA/apps/launcher/js/app.js- size
318127, owner305:909, mode0640 - md5
46bdee5a72955cda19fd361bf2954f80 - sha256
380d337ecbfa08487768b18cb8342630db1c2880c6e6c14811e6f7d1c72f2c8f - private copy:
firmware/75u8qtuk/operationui/apps/launcher/js/app.js - Root lane armed and uptime continuous (~460 s at start); root SSH on
<tv-ip>:8008withserver/keys/vidaa_75u8qtuk_ed25519. No reboot was performed during this test because root SSH has no boot persistence (08).
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:
- Exact events (present in the vendor bundles):
o2n://sdk/init-finished,o2n://app-service/all-apps-changed,o2n://all-inputs/inputs-data-changed,o2n://sdk/str-resuming,o2n://sdk/str-suspending.sdk.messageis an EventBus withon/off/once/emit. sdk.key.KEYMAP:BACK:8,BACKSPACE:8,ENTER:13,HOME:36,EXIT:27,LAUNCHER:547,SOURCE:505,KEYPAD_INPUT:610,ALLAPP:615.KEYMAP.RETURNdoes not exist β the sharedhandleKeycomparison againstundefinedis harmless.sdk.tts={t,speak,cancel,isEnable,setState};sdk.storageis awindow.localStoragewrapper with a prefix. SDK instances are cached by name (Tt[e]), sonew SDK("launcher",{storagePrefix:"Alvidaa"})returns the stock instance (prefixLauncher) β prefs are stored under that prefix.sdk.router.isCurrentPathEqualTo("/Launcher")resolves correctly:MODULE_ROUTE_MAPmaps module names to numeric route prefixes, andgetRealPath()prepends that prefix.getCurrentPage().pathmatches._V_SDK_.vre.SDKis the correct SDK class;M2O5=_V_SDK_.vre.
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)
/var/localisext4 rw,seclabel,nosuid,nodev. A script placed there cannot be executed via its shebang:sh: β¦/switch-home.sh: /bin/sh: bad interpreter: Permission denied(exit126). 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 andapp.jsstayed stock. Fixed by always invoking through/bin/shexplicitly.- SSH sessions carry no
PATH/LD_LIBRARY_PATH. The relaunch must reuse the vendor environment. We capture/proc/<pid>/environbefore the kill and re-export it in the detached launcher. Without it,secure_execcould fail to resolve its shared libraries. secure_execis safely testable./usr/local/bin/secure_exec SystemUI /opt/hisenseUI/startgui.shwhile SystemUI is live printsSystemUI is running, exit!!!and returns 1 β a no-op proof thatexecvp+ uid/gid/groups/caps work from an SSH-spawned context.secure_execis a small ELF usingexecvpandlibsecure-processid.so.- Restart mechanics.
startgui.shrefuses to start whenpidof SystemUIsucceeds β kill first. Its last line isexec "/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/shis bash (//openbox/bin/bash), soread -r -d ''andexport "KEY=VALUE"work. - Cache scoping. Only
compiled_jsanduncompiled_jswere reset (moved aside, recreated empty as311: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 entry3005616565(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.
- SystemUI
1524β19933;PPid: 1;Uid/Gid 311:311;CapEff 0000000000a05000and supplementary groups identical. - Uptime continuous (no reboot);
app.jsmd5 still46bdee5aβ¦,305:909/0640. - A second, independent SSH session confirmed PID 19933 alive with
PPid 1after the launching session closed β the relaunch survives SSH teardown (the detached subshell setstrap "" HUPand redirects all stdio to/dev/null). - Owner confirmed stock VIDAA Home returned.
Install
Same script, MODE=install. Order: verify hashes β capture env β kill
SystemUI β mutate files while the engine is down β relaunch β verify.
- SystemUI
19933β32471;PPid: 1; credentials identical. app.js:344249bytes, md51f465e9bβ¦, still305:909/0640(staged to<app>.alvidaa-tmp,chown/chmod, thenmv -f).compiled_js/uncompiled_jsmoved to/var/local/alvidaa/backup/; fresh empty dirs created311:311/0751.- Log:
OK mode=install old=19933 new=32471 ppid=32382 wait=1s.
Backups (both sides, private)
- TV:
/var/local/alvidaa/backup/app.js.stock(md546bdee5aβ¦),compiled_js/,uncompiled_js/,js-cache.tar(md511217a0bβ¦). - Mac:
firmware/75u8qtuk/backup/app.js.stock,js-cache.tar(gitignored). - Screenshots:
firmware/75u8qtuk/screenshots/native-home*.png(PNG despite the HAL's.jpgfilename; 1920Γ1080).
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:
- "For You", top nav (Home / All apps / Inputs / TV Settings / Preferences),
dark auto theme, clock
22:54,Fri Nov 06 2026, "Your apps. Your TV. No feeds, no ads.", and the favorites shelf. - Real vendor icons from
https://img.vidaahub.com/β¦(YouTube, TV Channels+, Kids, Ads Privacy, APP STORE, Art Gallery, browser, media, E-MANUAL, VOD). - Status line
Native Β· 10 apps Β· 10 inputs(later11 appsafter anall-apps-changedrefresh), proving both services and the event logic. - A vendor toast "Optimised for Game settings" overlaying the launcher β proof the stock UI lifecycle still runs underneath.
- Favorites persisted through the edit view (
sdk.storageworks), and arrow/OK/Back key handling works.
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
- Owner's own TV, LAN-local, no DRM circumvention, no OTA writes.
/stayserofswith dm-verity green; only/APPS(writable module) and/var/localwere written. Verified boot untouched.- One MQTT server per TV: Sidee holds the pairing/control session;
server/pair.pywas not run. - Device ID, Netflix ESN and serial are not committed; root key stays in
server/keys/(gitignored). Private vendor bundles and screenshots stay in gitignoredfirmware/75u8qtuk/. - No push, no PR.