alvidaa native Home
Our design, as a lane-3 component. Written against the shared scaffold; not yet run on hardware. Nothing here is verified by tests alone.
What it is
native-alvidaa.js is a Vue component that replaces only the /Launcher route
component, exactly like Free My TV. It is not a second product: the route swap,
the SDK adapter, the install/restore machinery and the rollback path are the
shared ones.
The design is the canvas launcher's r4 layout, ported to DOM:
| Piece | Where |
|---|---|
| clock and date | top right, quiet light-weight hours/minutes hierarchy (12h or 24h), uppercase date underneath |
| inputs dock | bottom edge, five sculptural 320Γ248 dark-glass cards per page with studio-lit connected-device PNG renders (ps5, switch, fire-tv, apple-tv, xbox, screen-share, audio, pc, disc, usb, av, tv, hdmi) and automatic input-name refresh on return + 10 s awake poll |
| big label | focused input's clean device name above the dock, connected / no signal + port tag + Press [OK] to switch cue |
| Apps row (view 2) | horizontally paged (5 per page) row of pinned favorites (Cobalt-safe backgroundImage icons inside squircle plates + brand monogram fallback) and studio-icon Apps, Settings, and Launcher doors |
| Apps overlay | dark-glass gallery drawer (1792Γ896) with focused-app editorial header, brand-tinted ambient spotlight, 7-column 8px-rhythm grid, framed squircle tiles, multi-row group navigation, pixel-budget windowing, and scrollbar |
| recently-used order | the apps overlay lists launched apps newest-first (alvidaa_recent); toggle in Home settings, on by default |
| Settings tile | opens the real stock TV Settings |
| Launcher tile | opens this component's own dark-glass Home settings surface (auto-switch, apps, input names, idle screen, clock format, gallery backdrop switcher, recently-used order) |
| toast HUD | bottom center, floating glass pill for action feedback and alerts (default 2500ms, timed expiry) |
| number hotkeys | remote keys 1-9 focus & activate dock tiles 1-9; key 0 focuses dock 0 without activating |
| auto-switch HUD | floating glass pill counting down boot switch when exactly one input has signal |
| idle screen | active backdrop + gently drifting OLED-safe clock after alvidaa_idle_minutes (wake key only wakes) |
Two views, panned vertically like the canvas: view 1 is the dock, view 2 is the apps row. ArrowDown pans, ArrowUp or Back pans back. Back at the dock is handed to the vendor, so the stock behaviour from Home still works.
No canvas, no iframe, no global CSS. Everything is inline style plus CSS
gradients and raster data URIs in background-image (findings 13 Β§8), which
paint reliably on Cobalt. Curated 1920Γ1080 gallery backdrops (Nordic Fjord
and Obsidian Waves, baseline JPEGs with procedural PNG fallback) plus the
16 studio hardware/door PNGs are inlined at build time so the candidate stays
one self-contained offline file.
The one network path is the vendor's own icon host, and only that host. See Icons below.
Data contracts
The component consumes native-platform.js, which is where builds differ:
- apps:
app-service.getCurrentShowApps("Launcher")on 55A7KAU builds,getAppList({sceneCode:"launcher"})on 75U8QTUK builds - inputs:
all-inputs.getAllInputsData() - input name order:
displayname2βrenameβnameβsourceId, with anLA####translation id resolved throughsdk.i18n.t(same order as the bridge, so the dock reads "PlayStation 5", not "HDMI2") - signal:
is_signal/has_signalas1,"1"ortrue - launch:
sdk.apc.startthrough the platform adapter; APC keeps PIN, EULA and hotel-mode checks - settings:
setting.open("settings")
Toast HUD
Feedback and error messages are displayed via a floating glass HUD pill rendered in the root layer above the stage:
toast(message text) andtoastUntil(epoch timestamp deadline) live in the component's reactive data.showToast(text, ms)sets the active message and deadline, defaulting to 2500ms if unspecified.- Action failures from
run(), empty overlay notices ("No apps reported"), and activation notices route throughshowToast. - The 1s clock interval drives toast expiry, clearing expired messages and triggering smooth opacity and transform transitions.
Remote number hotkeys
Hardware remote number keys 0 through 9 are mapped from sdk.key.KEYMAP (NUM_0 .. NUM_9), guarded against undefined values:
- In the dock zone, keys
1β9focus and activate the corresponding dock index (digit - 1) when it exists. - Key
0focuses dock index0without activating, resetting focus to the first input. - Out-of-range digits (or digits when no inputs exist) are not swallowed and pass through unhandled (
return false). - Digits do not fire when the app list overlay is open.
- Dock tiles render a subtle numeral keycap badge for inputs 1β9.
Boot auto-switch countdown
When opt-in preference alvidaa_auto_switch is enabled in sdk.storage (default false), the launcher monitors inputs on the first platform payload:
- If exactly one input reports active signal, a 3500ms countdown begins.
- The countdown renders in the floating glass HUD pill:
Switching to <name> in Ns - press any key to stay. - When the countdown reaches zero,
changeSourceautomatically switches to that input. - Any handled remote navigation or number key cancels the countdown and displays a toast notice (
auto-switch cancelled). - If no inputs or multiple inputs have signal, or if
alvidaa_auto_switchis false, no countdown starts. - The countdown cancels immediately on
stop().
Idle screen
A TV left on the Home burns the panel and shows the clock to an empty room
(issue #58). After alvidaa_idle_minutes of no key and no source change, the
Home fades to an idle layer: the build-time wallpaper, a large clock, the
date β no dock, no chrome, no HUD. State underneath is untouched, so wake
puts back exactly what was there, including an open settings layer.
- The wake key must only wake. While the layer is up,
handleKeyconsumes every key β ENTER, digits, BACK, anything β returnstrueand changes nothing. A wake that also launches an app is worse than no idle screen. - Any input change (a source going live) or an app launch cancels it. The platform callback compares the live-source set between payloads: a change wakes the screen and re-arms; an unchanged poll does not, because the platform re-reports periodically and re-arming on every poll would mean the screen never idles at all.
- Off by default. The
Idle screensettings row stepsoff / 1 min / 5 min / 15 min(Left/Right step in the direction pressed, OK steps forward), persisted asalvidaa_idle_minutesβ a JSON number,0= off. - One timer, not two. The deadline (
idleAt) is armed by anything that proves presence β a key, a source change, a launch, arriving at the Home β and checked by the clock interval that already runs every second. - Shapes and text only. The layer is divs: wallpaper, clock, date. No
<img>, no SVG data URI, no vendor icon font β this engine paints none of those from an injected component (findings 13 Β§8).
Per-app tint (issue #56)
The dark Home is deliberately flat, but it does not know what is on it β both
audits (dumbtv's FocusColor, CleanMyTV's tileTint) proposed tinting the
background toward the focused app's colour. The constraint that shapes the
implementation: lane 3 cannot sample icons at runtime (canvas reads on
cross-origin images are blocked, and the launcher must stay network-free), so
the colours are extracted host-side, at build time, by
app-colours.cjs β a dependency-free PNG reader (node:zlib,
the five scanline filters, 8-bit grey/grey+alpha/RGB/RGBA plus packed
palette) that picks the dominant colour per icon and caps its luminance.
- The map is build-time input.
install --app-colours <file.json>takes the extractor's JSON (icon basename β#rrggbb), validates it (basename keys,#rrggbbvalues, 64-entry cap β dropped entries are named in warnings), and the build bakes it asself.AlvidaaNativeAppColours, the same shape and the same absent-is-fine contract asAlvidaaNativeInputArt. No flag, no map, no tint layer at all. - The component fades the wash. When the focused favourite resolves to an icon whose basename the map carries, a full-screen layer above the contrast wash fades to that colour over 350ms; stepping to a door, an uncoloured app or back to the dock fades it out (the last hue is kept while fading, so the colour dissolves rather than cutting). The layer is always mounted at opacity 0, so both directions are ordinary CSS transitions.
- Two ceilings, on purpose. The extractor caps a colour's relative luminance at 0.5 and the tint layer's opacity at 0.22, and the component clamps again at render β the component-side clamp is the guarantee, because a map can also be hand-made. A white icon reads as a hue shift, never a wash-out.
- Missing colour means the current background. Non-PNG icons (JPEG/WebP are deliberately not decoded), icons the pipeline never had as files, and apps without favourites all keep the plain wash.
Input art: shapes, not images
Each input gets a device icon matched from the name the TV reports. The icons are drawn as divs (rects, bars, circles), not loaded as images, because this engine does not paint the image forms that would otherwise be obvious:
| Mechanism | Paints? |
|---|---|
SVG data URI in an <img> |
no |
the same SVG in background-image |
no |
| the vendor icon-font class the SDK reports | no, outside the vendor's components |
a PNG data URI in background-image |
yes (the wallpaper) |
a div with a border or background |
yes |
Measured 2026-11-11; the full table and the two related traps are in findings 13 Β§8.
Matching is by the reported name, most specific first, so Fire TV and
Apple TV reach the cast icon before the bare tv rule does:
| Name matches | Icon |
|---|---|
| nintendo, switch, playstation, ps4, ps5, xbox, gamepad, controller | controller |
| apple tv, chromecast, fire tv, fire stick, roku, streaming | cast |
| steam, mini pc, desktop, computer, pc | cpu |
| blu-ray, dvd, disc, player | disc |
| usb, stick, dongle | usb |
| monitor, display | monitor |
| tv, television, antenna, cable, satellite, tuner | tv |
| anything else | box |
Two facts that cost a day to learn:
- The TV reports the name, and the field name depends on the transport. The
vendor JS SDK (
all-inputs.getAllInputsData) calls itdeviceName; the MQTT sourcelist the bridge reads calls itdisplayname2. The native lane only sees the SDK. - The SDK's per-source
iconis an icon-font class name (v-op-ic-videoplay), not a URL. It does not paint from an injected component, so it is not used.
A configured bg/logo in config.inputs still wins where it exists, and is
baked into the candidate at build time by native-install.cjs; it is the only
path that puts a real photograph or wallpaper behind an input.
First frame: placeholder tiles (issue #54)
The dock paints before the platform payload lands, so left alone the tiles pop
from nothing to a shape once inputs arrive. The real shape is matched from the
name the TV reports (deviceArtName above), which only exists after the
payload β but the fallback silhouette is knowable before any of that. So
pre-payload the dock draws six placeholder tiles at the exact tile geometry β
same position, page pitch, size, chrome and 56px shape box as a real tile β
each carrying the fallback silhouette (or, with no silhouette table baked in,
the minimal hardware icon a nameless tile would draw). When the payload lands
the real tiles swap in at the same geometry: nothing shifts, only the shapes
resolve. The placeholders are decorative (aria-hidden), never focusable, and
strictly pre-payload: after a payload that reports zero inputs the dock says
no inputs reported instead, and a re-activated instance still holds its
sources, so placeholders never replace real tiles.
Icons: local files, then the vendor host
App records are checked in order for img, presetImg, icon, appIcon,
icon_local_url, iconLocalUrl, localIcon, httpIcon and icon_web_url.
A data:imageβ¦iconDownload<url> trampoline is unwrapped first, because some
builds wrap the URL that way.
Two kinds of value are accepted:
- local β
var/local/storeAppIcon/β¦,file:///β¦, an absolute path, or an inlinedata:imagePNG/JPEG/WebP - the vendor's icon host β
https://*.vidaahub.com/β¦only
Anything else is refused, so this cannot become a general web client. That is the same host the stock launcher and the 75U8QTUK port load, and it is what gives real app icons on builds that expose no local files.
When neither is available, the overlay draws a letter badge in the app's brand colour (Netflix red, YouTube red, Prime blue, Spotify green, Plex gold, and so on) rather than a random hue.
If you want zero network access, drop the vidaahub rule in allowedIcon().
Every app then falls back to its badge, which is the trade the first version
made.
Groups in the apps overlay (issue #57)
The reference TV reports 40 apps, so unset the overlay is a scroll, not a
menu. alvidaa_groups in sdk.storage turns it into named sections:
[{ "name": "Media", "apps": ["2", "1"] }, { "name": "Kids", "apps": ["7"] }]
- Order is the array order, for the groups and for the apps inside each one β explicit curation outranks the recently-used heuristic.
- Other apps is automatic: everything no group claims lands there, in the recent/vendor order, so the long tail has a home without anyone curating it. A group whose apps all fail to resolve (stale ids, hidden apps) renders nothing rather than an empty header, and the first group to claim an app wins β one app, one focus position.
- Navigation stays a single focus path over the flattened groups: Left/Right step within the group and stop at its ends; Up/Down step between groups, landing on the same offset clamped to the target group's length; OK opens the focused app. No second layer of focus.
- Unset or empty config means the flat grid, unchanged β no headers, no catch-all, the same flat behaviour as before this feature.
- There is no settings editor. The storage key and the rendering are the deliverable (issue #57); an editor row is future work. Until then the key is written by hand into the bridge config or over the storage lane.
The grouped render windows on the focused slots like the flat grid does. A group heading occupies an 80px band (40 above the label, 24 label, 16 below) β more air above than the 24px gap between rows, so the eye reads groups without a box around them. Launches still record recency and re-sort the ungrouped tail; the groups themselves re-resolve from config, so their members stay where the config put them.
Overlay treatment (visual pass)
The owner's read on the overlay was "looks cheap": the geometry was fine, the
treatment was flat β a 2px white ring, a rgba(255,255,255,0.10) fill, and a
header that was a label plus a floating hint. Four changes, all inside the
existing render and the box()/label() helpers:
- Focus is a lift, not an outline. The white 2px ring was the loudest
thing on screen and it was not the content. The focused tile now uses the
dock's own language: a
scale(1.03)lift on the same 140ms ease-out, a 1px hairline at low alpha (rgba(255,255,255,0.22)focused,0.05unfocused), a soft shadow (0 12px 28px rgba(0,0,0,0.5)), and an inner sheen β a low-alpha layer over the tile background but under the icon and label, transparent when unfocused. Every state change is plain CSS on one node, so both directions of the transition are free. - A real header. Title, the focused group's name when folders are in
use, and the count (
Β· 12 apps) on one line; the hint (OK to open Β· BACK to close) sits under the title on the same left edge at 16px / weight 400 instead of floating at the panel's right edge. - An 8px rhythm with a derived cell size. The cell width is computed
from the panel width, not hardcoded:
(1792 β 2Β·56 β 6Β·56) / 7 = 192. With 7 columns the only 8px-grid solution in a 1792 panel is gutters equal to the padding β one spacing value (56) everywhere, so the grid is centred and the gutters match. Header 32, hint 64, list 96; tiles 192Γ136 inside 160-tall slots, 24 of which is the gap between rows. - Seven columns, measured. Labels were probed at the current type size
(22px, host and TV-ish stacks, widest of the two) over 28 realistic app
names: 27 fit the 192px tile, worst realistic case 163px
("Nintendo Switch"); one outlier ("Chromecast built-in", 194px) hits the
existing 20-character ellipsis policy, which now also has a CSS
text-overflow: ellipsisbackstop. 28 apps visible (7Γ4) against 24 before β the scroll the owner complained about is shorter.
Everything else is untouched: focus index, scrolling, Back ownership, the folder navigation from #57, the number hotkeys, the per-app tint from #56.
Preferences
native-alvidaa.js reads β and, through the settings surface above, writes β
preferences backed by sdk.storage with safe defaults
and a no-op fallback when storage is absent. Preferences are loaded during
start() and re-read on activated(). Custom names explicitly override
vendor values (precedence: sourceId map -> lowercased trimmed name/label
map -> displayname2 -> rename -> name -> sourceId -> i18n translation);
note that static custom names can go stale if the physical device changes.
| Key | Type | Default | Description |
|---|---|---|---|
alvidaa_hidden_apps |
array of strings | [] |
App IDs or names excluded from the apps overlay. |
alvidaa_only_apps |
array of strings | [] |
Allowlist of app IDs or names; when non-empty, only matching apps are kept. |
alvidaa_custom_names |
object | {} |
Map of sourceId (or input label) to custom display name applied in sourceName(). |
alvidaa_last_used |
string / number | null |
Last activated input sourceId, persisted on dock activation and used as smartIndex() fallback when no input has signal. |
alvidaa_auto_switch |
boolean | false |
Opt-in toggle for automatic input switching on boot. |
alvidaa_idle_minutes |
number | 0 |
Minutes of no key and no source change before the Home fades to the idle layer; 0 is off (issue #58). |
alvidaa_clock_12h |
boolean | false |
When true, renders header and idle clocks in 12-hour format with AM/PM; default is 24-hour. |
alvidaa_recent |
object | {} |
Map of app id to last-launch epoch ms, pruned to the 40 newest; drives the overlay's recently-used ordering (issue #55). |
alvidaa_recent_order |
boolean | true |
When off, the apps overlay keeps vendor order and launches are not recorded. |
alvidaa_favorites |
array of strings | [] |
Pinned favorite app IDs in view 2 (max 5), launched directly. Stale IDs dropped silently. |
alvidaa_groups |
array of {name, apps} |
[] |
Named groups for the apps overlay (issue #57); array order is the display order, apps inside a group follow the config array, everything unclaimed lands in the automatic "Other apps" group. Unset = flat grid. No settings editor β the key and the rendering are the deliverable. |
Settings surface
View 2 ends in a Launcher door (β°, "Home settings") beside the stock
Settings door (β, "TV settings") β different glyph, label, sub-label and
accent colour on purpose: one opens the TV's own settings, the other opens
ours, and mixing them up is a support burden. The surface is a third DOM layer
(modal dark glass, rgba(3,5,9,0.86)), navigated by remote: arrows move
between rows, Left/Right changes a value, OK activates, Back steps back a page
and, at the root, closes the layer and returns to view 2. Back at the dock
still belongs to the vendor. Number hotkeys do not fire while the layer is
open; other unhandled keys pass through, the same contract as the apps
overlay. announce() speaks the focused row (or keyboard cell) for TTS.
- Root page β
Auto-switch on boottogglesalvidaa_auto_switchas a real JSON boolean (OK or Left/Right);Apps(N shown, M hidden) andInput namesopen their pages;Only-list activerenders only whenalvidaa_only_appsis non-empty and OK clears it (writes[]); theIdle screenrow stepsalvidaa_idle_minutesthroughoff / 1 min / 5 min / 15 min(Left/Right step in the direction pressed); theRecently-used orderrow togglesalvidaa_recent_orderthe same way β off, the apps overlay keeps vendor order and launches stop being recorded. The only-list overrides the hidden list, so the row says exactly that instead of growing a second allowlist editor β there is no UI to build an only-list, only to clear one. - Apps page β one row per valid reported app, taken from the raw
_lastData.appslist rather than the filteredthis.apps: a hidden app must stay reachable here or it could never be unhidden. OK toggles visibility (writesalvidaa_hidden_apps, the inverse list); Left/Right pins or unpins (writesalvidaa_favorites, capped at 5 β a sixth pin shows afavorites are fulltoast instead of dropping silently; unpinning always works). While the only-list is active the page says so in a footer line, and toggling an app the list excludes toasts instead of performing a write that would be a silent no-op. - Inputs page β one row per input showing the resolved
sourceName(), with acustommarker whenalvidaa_custom_namesholds an entry. OK opens the name editor; aReset namerow appears under each renamed input and clears that key, so undoing a rename does not mean retyping the vendor name. - Name editor β an on-screen keyboard:
AβZand0β9as a six-column grid, thenSPACE,BACKSPACE,CLEAR,DONE. Arrows move, OK presses, the draft is capped at 24 characters and rendered with a caret.DONEwritesalvidaa_custom_names[String(sourceId)] = draft.trim(); a draft that trims to empty deletes the key so the vendor name returns β an empty string is never stored.
Every write goes through writePref β readPrefs() β clamp(), so the apps
overlay, the favorites row, the apps grid and the dock labels all update live
without a restart. With sdk.storage absent the whole surface still renders
and navigates; writes are silent no-ops. None of this has been observed on a
screen yet β the on-TV checklist below exercises it end to end.
Parity audit against watcher UI (launcher/index.html r4)
Feature-by-feature walk comparing the canvas watcher UI (launcher/index.html r4) against the native Home component (native-alvidaa.js):
| Feature | Watcher UI (launcher/index.html r4) |
Native Home (native-alvidaa.js) |
Status | Notes |
|---|---|---|---|---|
| Clock and date | Top-left hours/minutes hierarchy (weight 300, dimmed :) and uppercase date |
Top-left 116px hours/minutes hierarchy (weight 300, negative letter spacing, dimmed :) and uppercase date with bullet separator |
parity |
Driven by 1s interval; scales with viewport |
| Inputs dock and signal dot | Bottom dock with 5 cards per page; emerald green dot & LIVE pill for active signal, STANDBY for no signal; display icon / glyph fallback |
Bottom dock with 6 cards per page; emerald green dot & LIVE pill for active signal, STANDBY for no signal; minimal hardware display icon or glyph fallback |
divergence |
Dock geometry differs (native displays 6 tiles/page DOCK_PAGE = 6 vs watcher's 5 tiles/page); card scaled for 1080p |
| Focused big label | Large 42px header above dock showing input device name with connected / no signal sub-label |
Large 84px header above dock showing resolved input name with connected (emerald) / no signal (slate) sub-label |
parity |
Follows focused dock selection |
| Name resolution | Server-driven name resolution falling back to port ID | Strict bridge hierarchy: alvidaa_custom_names -> displayname2 -> rename -> name -> sourceId -> sdk.i18n.t translation |
parity |
Custom names explicitly override vendor values |
| Apps overlay | Modal dark glass backdrop; 5-column grid; web/local icons with brand color fallback; keyboard navigation; Back/Esc closes | Modal dark glass backdrop; 6-column grid; appIcon() with local file + *.vidaahub.com vendor host allowlist; brand color letter badge fallback; Back closes |
divergence |
Grid geometry differs (native is 6-column grid OVERLAY_COLS = 6 vs watcher's 5-column OV_COLS = 5); native adds vendor icon host allowlist |
| Stock settings | Not present (watcher operates over remote MQTT) | Dedicated "Settings" tile in view 2 (β, "TV settings") opening TV settings via platform.openSettings(), plus our own "Launcher" door (β°, "Home settings") opening the settings surface |
native-only |
Calls setting.open("settings") for the stock door |
| Smart focus | Active signal input preferred; falls back to localStorage last-used; falls back to dock 0 |
Active signal input preferred; falls back to sdk.storage alvidaa_last_used; falls back to dock 0 |
parity |
Executed on routeFocus() (mounted, activated, route change) |
| Auto-switch countdown | 3500ms countdown when exactly 1 live input detected; bottom HUD; cancels on keypress; triggers source change | Opt-in via alvidaa_auto_switch; 3500ms countdown on first payload if exactly 1 live input; shared HUD pill; cancels on any handled key; triggers changeSource |
parity |
Disabled by default; cancel shows toast notice |
| Remote number hotkeys | Digits 1β9 focus & activate dock tile; digit 0 resets to dock 0 | Digits 1β9 focus & activate dock tile; digit 0 focuses dock 0 without activating; numeral keycaps 1β9 on tiles; guarded by sdk.key.KEYMAP |
parity |
Guarded against open overlay; unhandled digits pass through |
| Pinned favorites / shortcuts | View 2 displays shortcuts array (URL shortcuts with β
glyph) |
View 2 displays up to 5 pinned favorite apps from alvidaa_favorites; activates app directly without opening overlay; clamped safely |
parity |
Favorites render the app's real icon through appIcon() (same local-file / *.vidaahub.com allowlist as the overlay); the star glyph (β
) is only the fallback when no allowlisted icon exists |
| Recently-used ordering | Vendor order only | Apps overlay lists launched apps newest-first from alvidaa_recent (capped at 40 entries); apps with no record keep their vendor relative order behind the recorded ones; toggle row in Home settings |
native-only |
Off stops the recording as well as the sorting, so re-enabling starts from vendor order |
| Per-input wallpaper art | Daily rotating wallpaper images or ambient gradients; no per-input art mapping | Build-time map self.AlvidaaNativeInputArt (local/data URI only); two-phase stacked cross-fade (incoming 0->1, outgoing 1->0) over 300ms |
native-only |
Switching to an input without configured art fades the outgoing art 1 -> 0 over the same 300ms, so the wallpaper arrives as a cross-fade rather than a cut |
| Per-app background tint | Not present (flat dark background) | Build-time map self.AlvidaaNativeAppColours extracted host-side from allowlisted PNG icons (app-colours.cjs); the wash fades toward the focused favourite's colour over 350ms and back; luminance-capped at 0.5, tint opacity capped at 0.22 |
native-only |
Missing colour means the current background; the component re-clamps at render, so even a hand-made map cannot wash the screen out |
| Toast HUD | Viewport-fixed bottom glass capsule for action status and error messages | Viewport-fixed bottom floating glass pill HUD with opacity/transform transitions; drives action feedback, failure alerts, auto-switch notices | parity |
Replaced legacy raw status text line |
| App filtering and custom names | Server-side configuration | Storage-backed alvidaa_hidden_apps, alvidaa_only_apps, and alvidaa_custom_names with no-op fallback |
parity |
The settings surface (view 2 Launcher door) writes these keys in-launcher: hide/unhide apps, pin favorites, rename inputs, clear the only-list β no page injection needed |
| Last-used focus persistence | Saved to localStorage on activation; restored on cold boot |
Persisted to sdk.storage key alvidaa_last_used on dock activation; restored on cold launch |
parity |
Used as smart index fallback when no input has signal |
| Offline paint / cache | localStorage cold cache (alvidaa_cache_v1); shows reconnecting/offline indicator when disconnected |
Runs offline natively inside the TV browser runtime; bundled directly into vendor package; requires no network or server connection | parity |
Inherently offline by architecture |
| Diagnostics | On-canvas text line (NEXT r2+...), red composite pixel test square, error overlay banner, /api/probe beacon |
Old diagnostic line ("Native - N apps - M inputs", "Waiting for TV data") was deliberately removed with the toast HUD; errors surface as toast alerts; announce() provides TTS |
divergence |
Deliberate divergence: diagnostic text line removed in favor of clean consumer HUD |
| System setup / install tile | Row 2 "INSTALL AS APP" webapp installer calling HiUtils_createRequest / Hisense_installApp |
Not applicable; native Home is installed directly as the /Launcher route component in lane 3 |
missing |
Intentional divergence: lane 1 installer pattern not applicable to lane 3 |
Build
node tools/launcher-host/build-native-alvidaa.cjs \
<private-stock-app.js> <private-output.js> <expected-sha256>
Argument order is stock, output, hash β the hash is last (2026-11-10: this doc
had it second, and following it verbatim fails with "expected sha256 of the
stock bundle is required"). The expected hash is required. A build that cannot
state which stock revision it targets cannot be rolled back safely, so the
script refuses to guess. Output must stay under firmware/ or /tmp/, same as
the Free My TV build.
The candidate is: stock bundle, then native-platform.js, native-alvidaa.js,
native-entry.js. native-entry.js picks the variant from
AlvidaaNativeComponent, which native-alvidaa.js sets; Free My TV builds have
no such global and fall back to AlvidaaFreeMyTV.
On-TV verification checklist
[!IMPORTANT] Hardware Status Discipline: Every behavior listed below is a claim (pending hardware verification) until physically executed and observed on target TV hardware per AGENTS.md. Node VM tests verify state machines and contracts, not TV rendering or vendor driver quirks.
0. Preflight, bundle check and safety
- Root access & network preflight: Verify TV IP and root shell wrapper:
sh ./server/tv idClaim: Root shell responds with uid=0(root) gid=0(root). - Writable bundle verification: Check the target model's launcher bundle. On the
reference
50A51HUV/09.01O.P0813that is the writableoperation-uimodule, nothisenseUIβnative-trial.cjspinsAPPto it:sh ./server/tv 'ls -ld /APPS/channelA/operation-ui/apps/launcher/js'Claim: the build exposes a writable launcher bundle at that path. If it does not, lane 3 does not apply to that build. - Preflight and pin stock bundle: Record exact size, owner, permissions, and hashes before modifying:
sh ./server/tv 'md5sum /APPS/channelA/operation-ui/apps/launcher/js/app.js; sha256sum /APPS/channelA/operation-ui/apps/launcher/js/app.js'The reference build's pinned sha256 is046b41aee0242ced3d3fcd9d5e0c0adb68e17ea3bfe14efa13d6225b6050bfad(HASHESinnative-trial.cjs). A mismatch means the bundle moved: stop and re-pin rather than building against it.
Numbered verification sequence
-
First paint & layout structure - What to press: Restart the UI engine:
./server/tv 'killall -9 hisenseUI'(or reboot TV). - What to expect (Claim):- Screen renders deep obsidian OLED background (
#07080c) with wallpaper/ambient gradient and contrast wash (rgba(6,8,12,0.55)). - Top-left displays hours/minutes typography (
116px, weight 300, negative letter spacing, dimmed:) and uppercase date with bullet separator. - Bottom dock displays inputs horizontally with 28px rounded corners and 1px borders.
- Before the platform payload lands, the dock shows six placeholder tiles at the final tile geometry carrying the fallback silhouette (no
no inputs reportedline yet); when the payload arrives the placeholders swap to real tiles at the same geometry without a layout shift. (Claim, pending hardware verification) - Top-right displays no web status pill or reconnection banner.
- Legacy diagnostic text ("Native - N apps...", "Waiting for TV data") does NOT appear anywhere on screen.
- Screen renders deep obsidian OLED background (
-
Smart initial focus on active signal - What to press: Boot TV with one active HDMI source transmitting video (e.g., PS5 on HDMI2). Do not touch the remote. - What to expect (Claim):
- Initial focus automatically selects the active HDMI2 card without remote interaction.
- Focused dock card scales up (
scale(1.03)with 140ms ease-out). - Live signal badge displays emerald green dot with
LIVEpill; inactive cards showSTANDBY. - Big label above dock displays resolved input name ("PlayStation 5" via
displayname2) with emeraldconnectedsub-label.
-
Opt-in boot auto-switch countdown - What to press: In view 2, focus the
Launcherdoor (β°, "Home settings") and press OK. On the settings root page, focusAuto-switch on bootand press OK (or Left/Right) until it readson; press Back to close the layer. On this firmware the engine's--remote_debugging_port=9666never listens (findings 12), so this surface β not a console β is the supported way to write the preference. Restart the UI with exactly one live input connected. Do not press any keys. - What to expect (Claim):- Re-opening the settings layer shows the row still reads
on(Claim: the write landed insdk.storageas JSONtrue). - Shared floating glass HUD pill appears at bottom center:
Switching to <name> in 4s - press any key to stay. - HUD displays smooth countdown ticking down once per second.
- At zero, HUD disappears and TV switches to that source via
platform.changeSource(). - (pending hardware verification)
- Re-opening the settings layer shows the row still reads
-
Auto-switch cancellation on user keypress - What to press: Trigger auto-switch countdown (as above). During the 3.5s countdown window, press any navigation key (
ArrowLeft,ArrowRight,ArrowUp,ArrowDown,OK) or number key (1β9). - What to expect (Claim):- Countdown terminates immediately and source switch is cancelled.
- Floating HUD pill transitions to toast notice:
auto-switch cancelled. - Toast expires and hides smoothly after 2.5s.
- TV remains on Home without switching away.
-
Dock navigation, scaling and edge clamping - What to press: Press
ArrowRightrepeatedly across the dock to the end, then pressArrowLeftback to the start. - What to expect (Claim):- Focus shifts tile by tile with 140ms scale and border transition.
- Big label and connection sub-label update immediately with the focused input's resolved name.
- Dock smoothly pages 6 cards at a time when navigating past card 6 (
DOCK_PAGE = 6). - Pressing
ArrowLefton the first card orArrowRighton the last card clamps safely without throwing, vibrating, or losing focus.
-
Remote number hotkeys (1β9 and 0) - What to press: While on dock view, press digit keys
1,2,3on the remote control. - What to expect (Claim):- Dock cards 1β9 display small numeral keycap badges in their top-right corner.
- Pressing
1β9immediately shifts focus to dock indexdigit - 1, displays toastSwitching to <name>β¦, and activateschangeSource. - Pressing
0moves focus to dock index 0 without activating or switching sources. - Pressing an out-of-range digit (e.g.
8when only 3 inputs are present) does nothing and passes through unhandled (return false).
-
Per-input wallpaper art cross-fade - What to press: Build bundle with
self.AlvidaaNativeInputArtmapping two inputs to valid local/data URIs. Navigate between the two inputs on the dock. - What to expect (Claim):- Outgoing input art stays at opacity 1 while incoming art starts at opacity 0 and fades to 1 over 300ms.
- After 300ms, outgoing art layer unmounts cleanly from DOM.
- Switching to an input with no configured art fades the outgoing art 1 -> 0 over the same 300ms, so the wallpaper arrives as a cross-fade rather than a cut.
-
View 2 vertical panning (Apps row and pinned favorites) - What to press: From dock view, press
ArrowDown. - What to expect (Claim):- Stage pans vertically upward by 1080px over a 350ms ease-out transition.
- View 2 renders
APPSrow: up to 5 pinned favorite apps (real app icon through the allowlist, star glyphβonly as fallback, "Favorite" sub-label), followed by theAppsdoor card (β¦), theSettingscard (β, "TV settings") and theLauncherdoor (β°, "Home settings", sky-blue glyph) β the two settings doors visibly distinct. - Pressing
ArrowUporBackfrom view 2 pans stage smoothly back down to dock view.
-
Direct launch of pinned favorites - What to press: In view 2, focus a pinned favorite card and press
OK/Enter. - What to expect (Claim):- Toast HUD pill displays
Opening <AppName>β¦. - Target app launches directly via
platform.launchApp(appId). - The full apps overlay does NOT open.
- Toast HUD pill displays
-
Apps overlay grid & launch
- What to press: In view 2, focus the
Appstile (β¦) and pressOK/Enter. - What to expect (Claim):
- Full-screen modal dark glass overlay (
rgba(3,5,9,0.86)) fades in over the stage. - 6-column grid displays all installed apps with local/vendor icons or brand color letter badges.
- Remote arrow keys navigate the grid (UP/DOWN steps by 6, LEFT/RIGHT steps by 1).
- After launching an app and re-opening the overlay, that app sits first (recently-used ordering); apps never launched keep their vendor order behind the launched ones. With
Recently-used orderoff in Home settings, the vendor order returns and launches are not recorded. - Pressing
Backcloses the overlay and returns focus to view 2. - Pressing
OK/Enteron an app displays toastOpening <AppName>β¦and launches the app via APC.
- What to press: In view 2, focus the
-
Stock TV Settings door
- What to press: In view 2, focus the
Settingstile (β) and pressOK/Enter. - What to expect (Claim):
- Toast HUD displays
Opening Settingsβ¦. - TV opens real stock Settings menu via
setting.open("settings").
- What to press: In view 2, focus the
-
Storage preferences exercised through the settings surface
- What to press: Open the
Launcherdoor (β°) in view 2 and press OK. - On the
Appssettings page, focusNetflixand press OK β the row flips tohidden. Close the layer, open theAppsdoor (β¦) overlay and confirm. - Back on the settings root page, confirm the
Appsrow readsN shown, M hidden. - On the
Input namespage, focus HDMI2, press OK, typeNintendo Switchon the keyboard grid and pressDONE; then use theReset namerow to undo it and retype if desired. alvidaa_only_appscannot be built from the UI (by design); seed it externally as before if you want to see theOnly-list activerow, then clear it with OK from the settings root page.- What to expect (Claim):
- Netflix disappears from the apps overlay immediately β no restart, no re-entry into Home.
- While the only-list is set, the apps page shows its footer line and toggling an app the list excludes toasts instead of writing.
- The dock card and the big label above it read
Nintendo Switchwhile the custom name exists, and return to the vendor name afterReset name(or after aDONEon a blanked draft). - Clearing the only-list restores the hidden-list behaviour immediately.
- Every write lands in
sdk.storageas JSON (alvidaa_hidden_apps,alvidaa_favorites,alvidaa_custom_names,alvidaa_only_apps,alvidaa_recent_order) and survives a UI restart; every launch stampsalvidaa_recentwhile the ordering is on. - (pending hardware verification)
- What to press: Open the
-
Last-used focus fallback
- What to press: Activate HDMI2 from the dock (OK).
alvidaa_last_usedis written by that dock activation β unlike the other five keys it has no settings row, by design. Then turn off all HDMI video sources so no input has signal, and restart UI. - What to expect (Claim):
smartIndex()readsalvidaa_last_usedfrom storage.- Initial focus lands on HDMI2 instead of defaulting to dock index 0.
- (pending hardware verification)
- What to press: Activate HDMI2 from the dock (OK).
-
Back key ownership hierarchy
- What to press: Test
Backkey in these contexts: 1. Inside the settings name editor: pressBack. 2. On a settings sub-page (Apps / Input names): pressBack. 3. On the settings root page: pressBack. 4. Inside Apps overlay: pressBack. 5. In view 2: pressBack. 6. In dock view: pressBack. - What to expect (Claim):
1. Editor cancels the draft; the inputs page shows again.
2. The settings root page shows again.
3. The settings layer closes; view 2 keeps focus (
zonestaysapps). 4. Overlay closes; focus remains in view 2. 5. View 2 pans back to dock view (view 1). 6. At dock view,handleKey()returnsfalseβ key event is not consumed and reaches the vendor shell cleanly. - (pending hardware verification)
- What to press: Test
-
Idle screen and the wake-key contract
- What to press: In view 2, open the
Launcherdoor and setIdle screento1 min(the row persistsalvidaa_idle_minutesas a JSON number). Leave the Home untouched for a minute β no keys, no source changes. Then pressOK, then a number key, thenBack. - What to expect (Claim):
- After the timeout the Home fades (about 500ms) to the idle layer: the build-time wallpaper, a large clock, the date β no dock, no apps row, no HUD pill.
- The first keypress only wakes: the Home returns exactly as it was left (same focus, any open layer still open), and the key does not also activate what it landed on β no source switch, no app launch.
- Each keypress restarts the window; with the row set to
offthe screen never idles. - A source going live (or an app launching from another path) cancels the screen; the platform's unchanged periodic re-reports do not wake it.
- (pending hardware verification)
- What to press: In view 2, open the
-
Per-app background tint
- What to press: Build with
--app-colours <file.json>(the extractor's output for at least one favourited app's local icon), pin that app as a favourite, then step between it, theAppsdoor and the dock in view 2. - What to expect (Claim):
- Focusing the favourited app fades the background wash toward its colour over about 350ms; stepping away fades back to the plain wash without a cut.
- The tint reads as a hue shift, never a wash-out, even for a white icon.
- Built without
--app-colours, no tint layer exists and nothing changes. - (pending hardware verification)
- What to press: Build with
Rollback procedure
If any test fails or TV exhibits instability, execute the rollback immediately on the TV via the root wrapper:
./server/tv 'LD_LIBRARY_PATH=/lib:/usr/local/lib:/basic/lib /opt/pkgs/tv.vidaa.app.phoenix/bin/phoenix /var/local/alvidaa/native-home/native-home.cjs restore'
native-home.cjs restore is the single supported rollback path. It requires root execution on the TV (process.getuid() === 0), uses the variant's home directory /var/local/alvidaa/native-home, and restores files atomically from the state manifest backup (entry.backup in /var/local/alvidaa/native-home/state.json), then restarts the vendor engine.
Claim: Pinned stock bundle is restored byte-for-byte; stock VIDAA launcher restarts cleanly.
Tests
node --test tools/launcher-host/native-alvidaa.test.cjs
Covers start/stop idempotence, app and input filtering, storage preferences (hidden/only apps, custom input names, last-used fallback, pinned favorites, absent storage), name precedence, smart focus, dock and overlay navigation, Back ownership, action failures, toast HUD timing and expiry, remote number hotkeys (0-9), boot auto-switch countdown (firing, cancel, live input guards), per-input wallpaper art cross-fade (including the fade-out when the next input has no art) and URL rejection policy, favorite tiles rendering the real icon with the star fallback, the device-class silhouette matcher (keyword order, fire-tv/apple-tv precedence, fallback, SVG data-URI round-trip, vendored-icon licences), recently-used ordering (newest-first with records, vendor order without, live reorder on launch, the toggle, the 40-entry cap), first-frame dock placeholders (six tiles at final geometry with the fallback silhouette, unmounted by the payload, never replacing real tiles, verdict after a zero-input payload), the settings surface (door ownership, root rows, auto-switch toggle, hide/unhide, pin cap, keyboard rename, blank-draft delete, Reset row, only-list rule, absent-storage no-ops, hotkey suppression, TTS labels), the idle screen (off by default, fade-in on the clock tick, the idle layer rendering wallpaper/clock/date and nothing else, every wake key consumed without activating, source-change cancel versus unchanged poll, launch cancel, the settings row round-trip, stop() cleanup), the groups in the apps overlay (unset config keeps the flat grid, config-array rendering with the Other-apps catch-all, empty groups dropped, ordering against the vendor order, Left/Right within a group and Up/Down between them, OK launching the focused app, one focus path over the flattened list), the per-app tint (no map no layer, favourite focus fades the wash toward the baked colour and back, the render-side luminance clamp, malformed and missing entries, the build embedding the map only when given), the overlay visual pass (the focused tile lifts β hairline, sheen, shadow and scale asserted against the tree, the ring gone everywhere, the header title/count/hint placement, equal 56px gutters and a centred derived grid at 1920, the heading band's 64px air above versus the 24px row gap), render structure and scaling, the entry's variant selection, and the build's hash and output guards.