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:
- macOS Application Firewall: "blocking all non-essential incoming
connections", stealth mode on, and Python listed as
Block incoming β two launcher URLs produced Chrome
ERR_EMPTY_RESPONSE(-324) on the TV. socketfilterfw --unblockappβ "Firewall settings cannot be modified from command line on managed Mac computers." The Mac is MDM-managed (Microsoft Defender network + endpoint security extensions active).- Symptom shape: TCP connects, then the accepted socket dies
(
getpeername: EINVAL,readline: ENOTCONN). Even a self-connection to the Mac's own LAN address fails, while127.0.0.1is fine. This is not the TV and not the server. /usr/bin/ruby(Apple-signed) was auto-allowed when it listened, so the block is policy-shaped, not per-binary β but Python, and every other app, stayed blocked.
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
- Self-signed probe cert:
SSLError: TLSV1_ALERT_UNKNOWN_CA. Matches the 55A7KAU / 65U8HAU shape, not the 50A51HUV "any cert completes TLS". - Official keystore from
com.universal.remote.multi1.09.06.003.1 (res/raw/client_mobile_android.p12, 2565 bytes; the XAPK from APKPure was fetchable this time β the earlier session's Cloudflare block did not apply) βCN=VidaaAppAndroidV01,issuer CN=RemoteCA, valid 2024β2034 β TLSv1.2ECDHE-RSA-AES256-GCM-SHA384. server/pair.py,modernprofile, colon-formatted MAC, PIN from the TV:vidaa_app_connectβ PIN dialog βauthenticationcode {result:1}βtokenissuance(access valid 2 days, refresh 30).- One PIN dialog, one submit. Re-triggering rotates the code.
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})})
{ret:true, msg:"download finished"}Γ 4 variants (args as string or object; overvowOSorhttps://localhost:9888).- Landed in
/APPS/and/APPS/pkgs/tv.vidaa.jsservice.basic/CHA/. - Needs
basic/fetcherstarted first:wss://localhost:9888+{path:"phoenix://service/basic/fetcher", method:"start"}. - First attempt failed with
404because theurlpointed at a file that did not exist on the serving host β worth remembering:fetchFileis an HTTP GET from the TV, so the source must be reachable from the TV, not from the workstation.
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:
data.tar.gzwas empty β "Failed to extract data files".install_app_configsrejected the control file. The vendoropkg(181 KB, patched) carries the stringsAppId,AppName,Invalid appId: %s,Failed to convert appId '%s' to a valid uidandinstall_app_configs. It reads/APPS/pkgs/pkgAppInfo.jsonand 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:
sendkeyand the power/standby actions are ignored β consistent with findings 13's conclusion that the vendor does not consume synthetic input. The vendor app's key lane is not a usable remote here.launchappdoes not wake the panel fromfake_sleep_0; it only works while the TV is already awake.- WoWLAN is the one lane that woke it. Attribution is not fully proven β the sendkey probes and the magic packet were minutes apart and the state was sampled after both β but the sendkey attempts produced no state change at any point, so WoL is the likely cause. A controlled A/B (wake by one lane at a time, from a known-off state) is still owed.
- Standby cannot be forced remotely through the documented actions. The TV has to reach its own idle timeout, or be switched off by hand.
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:
- standby / wake by MQTT action β dead (above);
- halt / reboot by root β works, and is the only reliable way to turn the unit off or restart it remotely.
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.