Skip to content

Latest commit

 

History

History
260 lines (247 loc) · 17.7 KB

TODO.md

File metadata and controls

260 lines (247 loc) · 17.7 KB

TODO

Open work, roughly in the order it should be picked up. Nothing here is a promise; the repo grows by PR and this file is where the loose ends go so they don't live in a chat log.

Rules that apply to everything below: the generated tables are never edited by hand (./scripts/check.sh), every change needs a teardown path, and a claim without a device observation stays labelled as a claim.

Now — correctness

  • Bug: native Home misses live input signal and custom/CEC labels on 50A51HUV (logged 2026-11-20 while WiFi is down; see findings 13 §10). Pre-existing in native-alvidaa.js (present in both the Nov 9 after-alvidaa-v3.png and Nov 19 captures — not introduced by the a937790 UI redesign): 1. Confirmed root cause (signal detection): stock operation-ui app.js reads camelCase hasSignal from all-inputs.getAllInputsData(), whereas native-alvidaa.js (signalOf()) only checks MQTT snake_case is_signal / has_signal (and uses a ternary instead of ORing them, violating findings/01-mqtt-bridge.md). Result: PlayStation / Fire TV / HDMI2 always render as no signal / standby on the native Home even when MQTT /api/sources reports signal: true, breaking LIVE badges, smartIndex(), and auto-switch on boot. 2. Offline patch landed, pending hardware check once WiFi returns: signalOf() now ORs hasSignal/isSignal/has_signal/is_signal/signal; sourceName() resolves displayname/displayName, case-insensitive sourceId in alvidaa_custom_names, and explicit TV rename over generic port echoes; deviceArtPngForInput() falls back to raw CEC fields (deviceName, displayname2, etc.) plus Amazon AFT* / PS3–PS5 patterns; native-platform.js subscribes to o2n://launcher/show. Once WiFi is back: dump raw all-inputs.getAllInputsData() + alvidaa_custom_names from .starboard.*.storage on 50A51HUV while PlayStation and Fire TV are connected, deploy via native-install.cjs, and confirm live LIVE badges + labels via tools/screenshot.sh.
  • scripts/report.py — a scaffolder for the report flow: prompt for model / firmware / SoC / region, validate the firmware string, append to inventory.json, run both generators, run check.sh. Turns a 40-minute review into a 2-minute one, and stops the three mistakes both #7 and #8 made (wrong tree layout, duplicate firmware row, mislabelled fields). (done 2026-11-05 — id grammar validated against all 10 recorded ids, duplicate guard mirrors check.sh, full scaffold demonstrated in a throwaway clone)
  • Duplicate-firmware detection in check.sh. Nothing currently says "this firmware already has a row" — which is how 43Q60SEVS nearly landed as a second entry for 09.60W.Q0612. Normalise the string and fail on a collision. (done 2026-11-05 — step 8/8: normalized-id collision + base-firmware model-alias layers; demonstrated exit 1 on a seeded duplicate, exit 0 on the clean tree)
  • 43Q60SEVS: record the serviceList.json backup path. The guide says rollback is "full overwrite + file zeroing" but never says where the pristine copy lives. Reversibility is the design law — write the path (or state that the original was captured and where) into docs/models/43Q60SEVS/V0000.09.60W.Q0612/README.md.
  • Fix the double-region render. 09.60W.Q0612 (EU_A) renders as … (EU_A) (EU_A (DEU)) in EXPLOITS.md because the id already carries the region. Rename the id to 09.60W.Q0612 and update the one firmware_ref that points at it. (Better: see Keys, not labels below.)
  • install.html success check. sw2ok = r.indexOf("true") !== -1 matches "true" anywhere, including inside a failure string. Have writeFile resolve {ok: r.ret, text: …} and test ok.
  • Name the two write primitives. TESTED-MODELS.md describes file_bridge_traversal / file_bridge_write as the browser bridge. The FaaS fetcher (basic/fetcher fetchFile) is a different surface with different gating — PR #8 mislabelled it and would have advertised "traversal open" on a build where traversal was measured closed. Add the distinction before the next reporter hits it.

Next — the launcher

  • Audio: the ALSA capture path was probed — the lane is dead on this model. Result 2026-11-06 (tools/audio/README.md has the full record): hw:0,0 opens, set_params and start succeed, then every snd_pcm_readi returns EIO. During playback all ten PCMs stay closed in /proc/asound/card0/pcm*/sub0/status — on optical (S-PDIF) and on the internal speakers alike. The TV's audio never enters a userspace ALSA stream: the mad_pcm nodes are the MStar decoder's internal interface, not the output mix. That kills snapcast and librespot through ALSA on this model — an architecture answer, not a build one, so the librespot task (issue #19) needs a different door or a different model. The probe and build script stay in tools/audio/ as evidence and may behave differently on another SoC. One path is untested and labelled as such: audio played in the TV browser — odin declares --alsa-output-device=default;hw:0,0;..., so a web page might open a PCM a native app does not.
  • Status app. Replace the recon tile's everyday job with launcher/status.html: bridge up, MQTT paired, Dropbear on 8008, hook version, OTA blocked, DNS sinkhole, TV IP/model/firmware, launcher version — one dot and one "what to do" per row. Keep recon.html as the full-dump tab behind ?debug (it is still step 1 of onboarding a new model, and TESTED-MODELS.md points at it). Read-only: no writes from the status page.
  • /api/status on the server, /health on the bridge. The page cannot open a raw TCP connection, so "is Dropbear listening" has to be answered server-side — the Go daemon can dial 127.0.0.1:8008. The Pi endpoint aggregates MQTT/pairing/hook state so the app still renders when the bridge is down. No key material, and remember the Pi port is LAN-reachable.
  • DirectFB launcher: live physical-remote hotkey verification on 55A7KAU. Remote hotkeys (native_hotkeys.hpp, Shell::hotkey, source_overlay_key, CECVolKey toast) are implemented, host-tested (test_native_hotkeys.py), and cross-compiled based on the live 55A7KAU capture (fmtv-20261202T100325Z; see finding 148). Still needs one short interactive TV run to confirm end-to-end: Source cycling, Settings toggle, installed app button launch/return, uninstalled app toast, CECVolKey toast with soundbar (and TV-speaker Volume/Mute), and hotkey wake from an unplugged HDMI input.
  • DirectFB launcher: live 55A7KAU verification of Group 3 C++ supervisor and boot-time install. The standalone C++11 root supervisor (backends/directfb-launcher/supervisor/, 245,708 B ARMv7 binary, ABI-verified against pinned TV libstdc++.so.6) and reversible installer (tv-runner/install-standalone.py, alvidaa-directfb-boot.sh, alvidaa-directfb-hook.sh) are implemented and offline-tested (test_supervisor_broker.py, test_supervisor_lifecycle.py, test_install_standalone.py; see finding 149). When ready to test on 55A7KAU (in order): 1. Run alvidaa-supervisor --self-check and --status read-only on TV. 2. Run one ephemeral /dev/shm session with alvidaa-supervisor --run (zero persistent changes) and verify UI startup, catalog, app launch/return, clean stop-file restore, and a forced fallback drill back to stock hisenseUI. 3. Check /var/local free space (totalBytes + 32 MiB reserve), test install-standalone.py install --no-enable -> status -> uninstall rollback before enabling boot-time startup or cold-boot testing.

Next — from the Android TV launchers

Two audits of dumbtv (Fire TV, ADB, no root) and CleanMyTV (Android TV / Google TV, Electron) on 2026-11-10. Neither supports VIDAA and neither is a port candidate — they are the design and operations reference. The comparison and the per-device data-model analysis are in EXISTING-LAUNCHERS.md; these are the items worth taking. The two audits were independent and ranked the same thing first, which is the strongest signal in the list.

  • Post-install verification gate. (issue #49) After install/switch/rollback, prove the candidate is actually the component in front: bundle md5 is the candidate's, the engine pid changed and is alive, and a HAL frame comes back non-black. On failure, roll back automatically and say so. (done — tools/launcher-host/verify-install.cjs wired into native-install.cjs)
  • Drift check: "what came back". (issue #50) One read-only command comparing live state against the last-known-good: bundle md5 vs stock vs candidate, watcher on/off vs expected, backup present, hook installed. Prints the named repair per failure. (done — tools/launcher-host/drift-check.cjs + native-install.cjs status)
  • Host-side recovery record, keyed by device. (issue #51) Keep a second copy of what was on the TV before alvidaa touched it (stock/candidate md5, watcher and bridge state) on the host, keyed by model+serial and refusing another device. (done — tools/launcher-host/recovery-record.cjs)
  • Setup doctor. (issue #52) native-install.cjs doctor: name the likely cause from what the host can observe — TV napping with every port closed, a second MQTT server already holding the paired identity, wrong IP, watcher on, dropbear with no PATH. (done — tools/launcher-host/doctor.cjs)
  • Enforced never-touch list. (issue #53) Turn AGENTS.md's hard rules (never /OAD, never a read-only partition, never the stock bundle without a backup) into a checked-in list that the install paths consult and refuse against. (done — tools/launcher-host/never-touch.json + never-touch.cjs)
  • Recently-used ordering in the apps overlay. (issue #55) Record launch timestamps to sdk.storage (lane 3 already writes on every launchApp) and sort newest-first with a stable fallback, behind a settings toggle. (done — alvidaa_recent / alvidaa_recent_order in native-alvidaa.js)
  • First-frame art discipline. (issue #54) Resolve the art of on-screen tiles before the first paint, or paint final-geometry placeholders, so tiles do not pop from letter badge to icon after the platform callback lands. (done — dock & saved favorite slot placeholders in native-alvidaa.js, d67a3c8)
  • Per-app colour extraction. (issue #56) Precompute a dominant-colour map host-side from allowlisted icons (same shape as AlvidaaNativeInputArt) and fade the background toward the focused app's colour. (done — tools/launcher-host/app-colours.cjs, 7606a3a)
  • Folders, or named rows, in the apps overlay. (issue #57) Config-ordered groups plus an automatic "Other apps" folder for apps with no art. (done — alvidaa_groups / overlayGroups() in native-alvidaa.js)
  • Idle screen that swallows the wake key. (issue #58) Wallpaper plus a big clock after N minutes; the transferable detail is that the waking keypress only wakes and does not also activate whatever it landed on. (done — drifting OLED-safe idle screen in native-alvidaa.js)
  • A fake TV for integration tests. (issue #59) A scripted TV that speaks the switch script's file protocol end to end — with failure flags like homeStuck and crashing — so the whole CLI can be tested with no hardware. (done — tools/launcher-host/fake-tv.cjs)

Next — research structure

  • Generate the contributors table in README.md from tested_by, the same way the matrix is generated. It is currently hand-maintained in two places (README.md, docs/models/README.md) plus the JSON — three copies that will drift.
  • Exploit catalogue refactor. EXPLOITS.md is one 190-line page and every PR regenerates all of it, which is why #7 and #8 both conflicted in the same place. Proposed shape, cheapest first: 1. Keys, not labels. Give each firmware a slug id (09.60w-q0612-eu-a) and a separate display label; firmware_ref points at the slug. Fixes the double-region bug and makes renames safe. 2. One source of truth per fact. capabilities.root duplicates the ipk-post-install observation, and they disagreed for 43Q60SEVS until it was fixed by hand. Either derive capabilities from observations, or make check.sh fail when they contradict. 3. Primitives as a layer. primitives.json: fetcher write, /function exec, superwatch socket, serviceList autostart, loader shadow, rc.local hook, USB key gate, browser bridge. Methods then declare requires: / yields: primitives. "Does it work on my TV" becomes "which primitives are present" — a much smaller test matrix, and it matches what the 43Q60SEVS dossier already argues: the load-bearing parts are framework-generic, the per-unit variables are few. 4. One page per method (docs/research/methods/<slug>.md, generated) with EXPLOITS.md as the index only. Stops the whole-file conflicts. 5. Validation in check.sh: enum membership, unique ids, firmware_ref resolution, and every local sources[].url actually exists (markdown links are checked today; JSON source paths are not). 6. A generated DEAD-ENDS.md from every outcome: failed observation plus limitations. The negative results are the most useful page for a new reader and they are currently buried in prose.

Later

  • CODEOWNERS + a written definition of "verified". Path ownership so regulars can merge their own model's docs; a short statement of what evidence clears the "verified" bar so reviewers are not re-litigating it.
  • Tag the launcher (launcher-v1.x) and keep a short CHANGELOG.md. There is no version anywhere today, so nobody can pin or roll back.
  • Site: split the matrix. The README table mixes verified rows with community reports; the site could render "verified" and "unconfirmed" as two tables from the same JSON, and the README could keep only the verified ones with a link to the rest.
  • Technique × build status view — build it when closed lanes start reporting. The matrix says what worked on each unit; it does not say whether a lane is still open on a newer build. A generated table (last build observed working, first build observed closed, vendor ticket) would answer that — but only once there are negatives to compare against. Trigger: the first technique with a positive on one build and a negative on another. Until then every row is unknown, which is the honest value anyway. Why not a hand-maintained "fixed" column: "fixed" is a property of a technique on a build, not of a firmware version, and OTA stagger means two units of the same model sit on different builds. A fix is only provable by a negative test on that exact build; absence of a report is not evidence of a fix. Map the vendor ticket to the technique, not the firmware — VIDAA-PSIRT-2026-005 covers two different things (the root path and the MQTT auth issue). Generate from inventory.json; the only manual field is the ticket map, which changes a few times a year. Cheap prep now: when a closed-lane report arrives, require the exact firmware string and the technique token in the row. That pair is the datapoint, and it is what the future generator reads. A "didn't work on my TV" comment without the build string is useless in six months.
  • 75UR9S OTA freeze. The record relies on the owner's settings-menu toggle. Write the router-side block down as the recommended steady state, and note that /var/local/etc/resolv.conf is a writable symlink — a control point and an attack surface for anything running as uid 314.
  • 75UR9S boot persistence. serviceList.json autostart was the answer: re_sshd JS service in the basic jsservice package re-arms dropbear via the superwatch trigger at every cold boot. Verified 2026-11-06 (armed on first attempt, dropbear uid 0). See the 75UR9S guide's Boot persistence section — including the nosuid-on-every-persistent-fs finding that rules out SUID on this build.
  • Launcher shadow package via the GET_PKG_DEST gateway (measured feasible on 43Q60SEVS, not enforced). SafeStart and the 63.8 MB payload are the constraints; see the 43Q60SEVS guide's open follow-ups.
  • EVIDENCE.md for 43Q60SEVS. The HE40 and 100U7Q pages carry a claim matrix with file:line basis; the new guide does not.