Skip to content

URI on webOS 5+: admit firmware majors 6, 7 and 9, bracketed, no tester run - #1397

Merged
GLinnik21 merged 2 commits into
mainfrom
uri5/bracket-6-7-9
Nov 14, 2026
Merged

GLinnik21 merged 2 commits into
mainfrom
uri5/bracket-6-7-9

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

URI on webOS 5+: admit firmware majors 6, 7 and 9, bracketed, no tester run

What changes for a viewer

EXPORTED_STRATA (rust-modules/play-uri/src/backend.rs) listed majors 5 and 10. It now lists 6, 7 and 9 too, each as "bracketed,
no tester run". On a set whose firmware reports major 6, 7 or 9, a viewer who chose Experimental, for a direct play of an original
file that the existing route accepts (a single audio track, no subtitle stream of any kind, quality Original, or Auto on a local
link, and a file Standard itself would direct-play), now plays through the TV's own media pipeline in the exported window, with this
app's player screen and controls on top. The boot line on such a set reads
uri: product binding=Exported { canvas: (1920, 1080) } mode=2 ... major=7 evidence=table (or major=6, major=9). The line does
not say that no tester ran it. No set on firmware major 6, 7 or 9 has run this.

Everything else is as before: Standard remains the default and the handoff target on any failure; originals with several audio
tracks, subtitles, a server-side conversion, a relay link or a non-1x speed still play in Standard; major 8 plays Standard
(major=8 evidence=none) because no 8.x image has been read, so it has no (a); majors 11 and later play Standard; a 4.x set keeps its
ACB path; majors 5 and 10 keep the entries #1331 and #1377 gave them.

The rule, and the maintainer's decision

The maintainer decided on 2026-11-13 that bracketing is yes: majors 6, 7 and 9 are admitted as "bracketed, no tester run" once major 10 has
landed (#1377 landed it), that major 8 needs a firmware image first (no 8.x image has been read, so 8 has no (a) and stays Standard),
and that docs/uri-mode.md must spell the rule out as "nearest admitted major on each side". The text on main was narrower: it asked
for BOTH neighbouring majors, major - 1 and major + 1, so nothing between 5 and 10 could qualify. This PR rewrites the two places
that said so (the EXPORTED_STRATA doc comment and the exception paragraph of docs/uri-mode.md) to the maintainer's rule: a major with
(a), its own image showing the same windowId load path, but no tester run is admitted when the nearest admitted major below it and
the nearest admitted major above it were both admitted on tester evidence. Here those are 5 (the 5.6.2 product run, #1331) and 10 (the
2026-11-14 product run, #1377). A major admitted only as bracketed is skipped when looking for a side and never extends a bracket, so 6, 7 and 9 each stand
between 5 and 10, not between one another. The sentence "nothing else is inferred from a neighbouring major"
stays.

Evidence: (a) per major, read from each major's own image

I used no television and pulled nothing from one. Each image is unpacked under /Volumes/DAS/lgfw/x/; the version is the image's own
/etc/os-release. In each image's libplayerAPIs.so.1.0.0 I found the string option.windowId with strings, took its one
cross-reference with decomp.sh xref (Ghidra headless, strings and xrefs only), read the code around it with objdump -d, and
resolved the PC-relative literal by hand to confirm that it lands on the string. Addresses are file VAs (Ghidra's are +0x10000).

firmware major image (version, release) binary, sha256 prefix option.windowId string read in StarfishMediaAPIs::parseLoadMessage at stored at then
6 HE_DTV_W21O_AFABATAA (6.5.3, 6.5.3-47) libplayerAPIs.so.1.0.0, 0b0f6654 0x874bc 0x41556 MediaApiPrivate+0x90 virtual call, slot +0x74 of the object at +0x5c
7 HE_DTV_W22P_AFADATAA (7.6.0, 7.6.0-1901) libplayerAPIs.so.1.0.0, 0969903e 0x971d8 0x467c6 MediaApiPrivate+0x90 virtual call, slot +0x74 of the object at +0x5c
9 HE_DTV_W24G_AFABATAA (9.2.4, 9.2.4-48) libplayerAPIs.so.1.0.0, cc08e2b8 0x9a7c0 0x4385c MediaApiPrivate+0x94 virtual call, slot +0x78 of the object at +0x60

The shape is the same in the three: get_optional<std::string> on the path option.windowId (a property-tree string path, separator
.), then, when the optional is set, the string is assigned into MediaApiPrivate and passed to a virtual call. The sha256
prefixes match the firmware report (/Volumes/DAS/lgfw/reports/uri-webos5plus/report.md) for these three images. As a control I read
the 10.3.1 image the same way: the reference is at 0x475ea, stored at +0x94, vtable slot +0x78. Each image's string table also
has fail to create AVProxy (error 104's text).

What I did not establish: that the virtual call is the AVProxy builder on these three images. The report names it so on 11.2
([MediaApiPrivate+0x60]->vtable+0x78), and the call sits at the same place here, straight after the same store and with the stored id as its argument, but I did not
identify the slot on these images. The "identical on 5.5, 5.6, 6.5, 7.6, 9.2, 10.3, 11.2" in docs/uri-mode.md's "Read from" bullet was true of the parse in the three images read here, but
the offset it stored at was not the same: docs/uri-mode.md said +0x90 on 6.5 and later; it is +0x90 on 6.5.3 and 7.6.0 and
+0x94 on 9.2.4 and 10.3.1 (the report says +0x9c on 11.2, which I did not read; the +0x7c on 5.x is also from the earlier read).
I corrected that sentence. Nothing in the route depends on the offset.

What stays untested

Everything, on these majors. No set on firmware major 6, 7 or 9 has run the product backend or the probe:

  • no picture, placement or aspect, sound, pause, resume, seek, audio switch, subtitles, HLS or end of stream;
  • no 6.x, 7.x or 9.x release other than the image read (one image per major: 6.5.3, 7.6.0, 9.2.4), and an entry covers every release
    of its major;
  • the boot line and the Results rows can only say "bracketed": they do not say a tester ran it, and the first tester on any of these
    majors is the first run;
  • the image read for 7 is the Realtek one (W22P); other builds of the same major were not read.

This is what the maintainer's bracketing rule accepts, and #1064 is still asking for testers on these majors.

Changes

  • rust-modules/play-uri/src/backend.rs: EXPORTED_STRATA = &[5, 6, 7, 9, 10] in ascending order; each new entry has a comment naming its
    Results row, its (a) (image, sha256 prefix, address), the bracket by 5 and 10 and that no tester ran; the table's doc comment and its
    exception paragraph are rewritten to the maintainer's rule (Major 8 is named as having no (a)).
  • rust-modules/src/app/adapters/backends.rs: the composition test pins majors 5, 6, 7, 9 and 10 to Exported { canvas: EXPORTED_CANVAS }
    on VP_EXPORTED and every other major 0..=30 (8 among them) to Unbound, and the admitted majors to nothing on VP_ACB and
    VP_NONE; the boot-line test pins evidence=table for each admitted major (major=7 evidence=table among them) and
    major=8 evidence=none. No new token, setting or UI: the boot line's evidence=table is unchanged.
  • docs/uri-mode.md: Results rows for 6.x and 7.x (which had none): "unpacked images; no tester run", then "Admitted, bracketed, no
    tester run
    " with the facts above; the major-9 part of the webOS 9.2.4 / 10.3.1 (33.31.68) row (it said "major 9 is not [admitted]
    ... not bracketed"; it now has the 9.2.4 image's (a) and is admitted, bracketed); the exception paragraph; every sentence that listed
    the admitted majors; one sentence that major 8 has no image read and plays Standard; and the MediaApiPrivate offsets sentence.
    docs/playback-settings.md: which majors reach the TV's pipeline.
  • Not touched: the route (media/src/route/*, uri_preflight.rs), the other Results rows, the grader, run_uri_boot_tests.rs, and
    docs/release-notes and docs/release-audits (records of released versions).

Verification

I used no television. Host gates on the committed tree (git status --short empty before and after):

  • Red first, with the tests edited and the table still &[5, 10]: make test-crate C=app T=backends:
    test result: FAILED. 8 passed; 2 failed; 0 ignored; 0 measured; 1374 filtered out; finished in 0.00s; the composition test failed with
    major 6, left Unbound, right Exported { canvas: (1920, 1080) }, and the boot-line test on the line
    uri: product binding=Unbound mode=2 handle=none ptype=0 major=6 evidence=none.
  • Green on the committed tree (3a565a697):
    • make test-crate C=plx_play_uri: test result: ok. 247 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.12s
    • make test-crate C=app T=backends: test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 1374 filtered out; finished in 0.01s
      (the same ten tests as the red run: 8 passed then, 2 failed)
    • make test-hostsim T=uri_boot: test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 1562 filtered out; finished in 0.40s
    • make check-nodef: Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.51s (a cargo check; no test line)
    • bash ci/check-deps.sh: check-deps: all gates green
    • python3 ci/check-module-layers.py: check-module-layers: green - 18 layers, 1930 modules, 169 Cargo layer declarations, 0 migration entries left in ci/allow/layers.txt, 0 of them into [port webos]; 0 cfg(test) items still named across layers (--report)

CI runs the full suite.

Part of the webOS 5+ URI work tracked in #1064; does not close it.

🤖 Generated with Claude Code

GLinnik21 and others added 2 commits November 15, 2026 02:11
…er run

EXPORTED_STRATA listed firmware majors 5 and 10. It now lists 6, 7 and 9 too, each as "bracketed, no tester run", under the owner's decision of 2026-11-13: a major with (a), its own image showing the same windowId load path, but no tester run is admitted when the nearest admitted major below it and the nearest admitted major above it were both admitted on tester evidence. Majors 5 and 10 are those sides. On a set reporting major 6, 7 or 9, a viewer on the Experimental engine now plays a qualifying original through the TV's own pipeline in the exported window, and the boot line reads `major=<n> evidence=table`. No 6.x, 7.x or 9.x set has run it. Major 8 has no image read, so it has no (a) and still plays Standard, as does every major above 10.

Evidence (a), read from each image's libplayerAPIs.so.1.0.0, where StarfishMediaAPIs::parseLoadMessage references the string option.windowId and reads it as an optional string (file VAs):
- 6.5.3 (HE_DTV_W21O_AFABATAA), sha256 0b0f6654, 0x41556;
- 7.6.0 (HE_DTV_W22P_AFADATAA), sha256 0969903e, 0x467c6;
- 9.2.4 (HE_DTV_W24G_AFABATAA), sha256 cc08e2b8, 0x4385c.

docs/uri-mode.md gains Results rows for 6.x and 7.x, rewrites the major-9 part of the 9.2.4 / 10.3.1 row, and spells out the rule as "nearest admitted major on each side". Its note on where the window id lands in MediaApiPrivate now gives the offsets read (0x90 on 6.5.3 and 7.6.0, 0x94 on 9.2.4 and 10.3.1). docs/playback-settings.md lists the five majors. The composition tests pin majors 5, 6, 7, 9 and 10 to Exported and every other major in 0..=30 (8 among them) to Unbound, and the boot-line test pins `evidence=table` for each admitted major and `major=8 evidence=none`.

Part of the webOS 5+ URI work tracked in #1064; does not close it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…entify

The "Read from" bullet in docs/uri-mode.md still said createAVProxy hands the window id to AVProxy::Builder and called the whole parse identical across releases. The Results rows say the slot was not identified on 6.5.3, 7.6.0 and 9.2.4. The bullet now limits "identical" to the get_optional parse, says the firmware report identifies the builder on 11.2 only (slot +0x78 of the object at MediaApiPrivate+0x60), and that on the three images read here only a virtual call at the same point in the code was seen. The 6.5.3 row names the 11.2 call by its slot. The EXPORTED_STRATA doc comment gains the same "one exception follows the list" pointer that docs/uri-mode.md has.

Part of the webOS 5+ URI work tracked in #1064; does not close it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 92e63a8 into main Nov 14, 2026
19 checks passed
@GLinnik21
GLinnik21 deleted the uri5/bracket-6-7-9 branch November 14, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant