EC-015: TV app theme and branding: build and device checks

Paired WP: WP-104 Purpose: Build WP-104 in the order that de-risks it: the fork mechanism and the D4 overlay test first, then the theme, the art and the device check on the TCL 65Q77K. A failed step is fixed on the WP branch before the next starts. Status: 🚧 Run 2026-11-28; criteria 3 (splash), 4 (partly: Help and a controller) and 7 open; 10 met by WP-118 on 2026-11-30. Results in WP-104 §Result. Pre-flight READY 2026-11-28.

Evidence rule: every checked box cites a screenshot, a logcat excerpt or a command output captured during the run. No capture, no check. Jeff’s judgement at 3 m is quoted as his. Quoted output replaces the app’s id with <app-id> and never shows the app name; captures that show either stay local.

How the device is driven: Windows adb, pinned with -s <serial> (the TV is listed twice). Builds run in WSL from a script file (`wsl -u root – bash

`), with `/etc/profile.d/android-sdk.sh` sourced. **Leak check, before every commit in the fork or the public repo:** `git diff --cached` contains none of the private identity values (the app name, its distinctive word, the package id). --- ## Pre-flight - [x] D1–D7 answered (2026-11-28); pre-flight **READY**, with the WP-085 bypass and Q1–Q3 recorded there. - [x] Fork worktree `C:\claude-worktrees\scummvm-wp-104-tv-reskin`, branch `wp-104-tv-reskin`, off `origin/scooby-engine` `50e43fc735`. - [x] TCL baseline: versionCode 26041005, density 320, 1920×1080, 16.0 GiB free, list view, Remastered at ≈1.67 (pre-flight §Device). - [x] At the start of execution: `git fetch`; if `origin/scooby-engine` moved in `gui/`, `dists/android/` or `backends/platform/android/`, stop and re-run the pre-flight (stale READY). *It moved to `72eb81926d` (WP-109), touching only `engines/terraglyph/`; the branch was fast-forwarded there. TV: versionCode 26041005, 16.0 GiB free.* ## Step 1: mechanism commits (time-box 1:30) One commit per concern on `wp-104-tv-reskin`, each brand-free, each building plain ScummVM when its inputs are unset (pre-flight engineering calls 1–6): - [x] 1a `dists/android/build.gradle`: `tvAppResDir` moves to the `debug` and `release` source sets; new optional `tvAppAssetsDir` adds assets there. *`03f0d4edb9`.* - [x] 1b `backends/platform/android/android.cpp`: read `tvapp.ini` from the assets in `initBackend()` and register its keys as defaults, with one log line naming the keys (not the values); delete the grid default (D7). *`d6d14e7500` and, as its own concern, `b32a14a8e5`. Logcat: `Packaged defaults registered from tvapp.ini: gui_theme, gui_scale, app_name`.* - [x] 1c `gui/gui-manager.cpp`: register `gui_theme` only if no default exists. *`4208e10800`. Added in the same file: `de5c7d9597`, so a registered `gui_scale` default applies (`hasKey()` ignored it).* - [x] 1d `gui/about.cpp`: prepend `tvapp-about.txt` lines when present. *`7674026c8a`.* - [x] 1e `gui/launcher.cpp`, `engines/dialogs.cpp`: TV-path strings use `app_name` when set. Record each changed string for §Result. *`eb33de26d4`; the list is in WP-104 §Result.* - [x] **Plain build** (no identity properties: pass `-PtvAppId= -PtvAppLabel= -PtvAppResDir= -PtvAppAssetsDir=`): `aapt2 dump badging` shows `org.scummvm.scummvm.debug`, label "ScummVM (debug)" and the `leanback_icon` banner; the APK's assets hold no `tvapp*` file (`unzip -l`). WP-104 exit criterion 2. *As listed; and all 179 asset and resource files byte-identical to the previous build bar its two identity files.* ## Step 2: the D4 overlay test (time-box 0:45) — stop point In a scratch overlay folder (not the identity folder yet), one override of each kind: a `drawable-*/scummvm_logo.png` of a flat colour, a `values/colors.xml` with `colorPrimary`, and a `values/strings.xml` with one string. - [x] The identity build succeeds (no duplicate-resource error). - [x] `aapt2 dump resources` (or `apkanalyzer resources value`) shows the overlay's values for all three, not ScummVM's. *`colorPrimary` `#ff1e5aff`; `app_desc` overridden (default locale); xhdpi logo bytes equal the overlay's.* - [ ] On the TV, the splash shows the overlay's logo and colour (screenshot). *Not met, and not because of the overlay: `screenrecord` of each launch shows four black frames, then the GUI, for ScummVM's own splash too. Android 14 doesn't draw the legacy splash, and `windowSplashScreenBackground` made no difference. The stop condition (no override by name) wasn't hit.* - [x] **If any check fails: stop and ask Jeff** (D4's condition). Don't rename resources in the fork. *The override by name holds; the splash finding is reported to Jeff. Nothing renamed.* WP-104 exit criterion 11. ## Step 3: the theme (time-box 2:00) In `private/tv-app-identity/theme/tvapp/`: a copy of `scummremastered` and the `common` folders, with `THEMERC` naming the theme, then changed per the private asset list's rows A-01 to A-18 (palette, draw steps, layout sizes, Raleway TTFs and `OFL.txt`). - [x] `scummtheme.py make tvapp` builds `tvapp.zip`. *30 members, with Raleway's OFL text added after.* - [x] On Windows (UCRT64 build or the WSL build's desktop target), `--themepath` loads it with no `ThemeParser` error and no "falling back to builtin" line (log excerpt). *The UCRT64 build, a throwaway config: neither line in the log; window capture shows the theme.* - [x] On the TV, via `tvapp.ini` `gui_theme=tvapp`: the theme is the default on first run after install (screenshot, `logcat` line from 1b). - [x] A non-Latin GUI language (e.g. Japanese) still renders through Noto (screenshot). WP-104 exit criterion 5. *Only with FreeType 2.13.3 added to the build machine; without it, boxes (screenshot of both).* ## Step 4: the art (time-box 3:00) Vector, by hand, from `C:\pcloud\BB\brand\studio-logo\mark-*.svg` (Q2). No image generator. Masters go in the art-masters folder on pCloud (private requirements, R3). - [x] Playfair Display TTFs and `OFL.txt` downloaded from `google/fonts` (`ofl/playfairdisplay`) into the masters folder (Q3); SHA-256 recorded. *`PlayfairDisplay[wght].ttf` `c40f2293…d8d6`, `google/fonts` `5026800714`.* - [x] Logo lockups A-03 and A-04 (SVG), cursor A-05, toggles A-07/A-08. - [x] Icon C-01 (adaptive layers) and C-02 (legacy PNGs at 80/120/160/240/320 px), banner C-03 (five densities, the two-line name lockup), splash lockup C-04 (five sizes), colours C-05. - [x] Inkscape CLI exports match the asset list's pixel sizes (`file` or `Get-Item` dimensions listed). *All 23 PNGs checked; banners opaque RGB.* - [x] Build-ready files copied into `private/tv-app-identity/res/` and `assets/`, replacing WP-085's placeholders under the same names. ## Step 5: device check on the TCL (time-box 1:30) Build with the identity (versionCode ≥ 26041006), `adb install -r`, launch. - [x] TV home row shows the new icon / banner and label (photo or Jeff's confirmation, quoted). WP-104 exit criterion 3. *Screenshot: the icon and label in "Your apps". Google TV shows icons, not banners.* - [x] Screens captured: splash, library (list), library (grid), add game, game options, global options, in-game menu, save/load, About (whole scroll), Help. *The splash as a launch recording (no splash drawn).* - [x] **Safe area measured:** the outermost drawn pixel on each edge of the library screen, against 48 dp / 27 dp (96 / 54 px at 1080). *98 / 97 / 56 / 57 px (left/right/top/bottom).* - [x] Text size recorded against the baseline (13 px capitals, 21 px rows). *18/28 px with the bitmap font; 20/37 px with Raleway.* - [ ] Jeff's 3 m check on every screen, quoted. WP-104 exit criterion 4. *Partly. Jeff: "2) yes can read, nothing cut off, 3) yes readable, 4) yes top part is my name" (launcher, options, About); he asked for the studio URL and a newsletter sign-up line in About, now done. Open: the in-game menu, save/load, Help, a controller.* - [ ] **List view by default** without clearing any app's data (forbidden): the TV app's `scummvm.ini` already says `gui_launcher_chooser=list` (a saved choice), so copy it aside with `run-as … cp`, remove only that line, launch, screenshot the list and check the arrows move the selection, then switch to the grid, relaunch, and check the grid is kept. Restore the copied `scummvm.ini` at the end and confirm with `diff`. WP-104 exit criterion 10. *Partly: list by default, grid kept across a relaunch, `scummvm.ini` restored and `cmp`-identical. Not met: Jeff, "arrows move the pointer, not the highlight". The D-pad focus packet.* *Met by WP-118 (2026-11-30): the D-pad moves a visible focus in both views, the grid is the TV default again, and Jeff: "Everything worked."* ## Step 6: About, licenses and close (time-box 1:00) - [x] About shows the header, then ScummVM's version, copyright, GPL text, the modification notice and the source link, then the credits (whole scroll captured). Exit criterion 6. *The notice and link are in the header, above ScummVM's version.* - [ ] The licenses screen lists GPLv3, `COPYING` / `COPYRIGHT` / `AUTHORS`, the OFL texts and third-party notices. Exit criterion 7. *Open: ScummVM has no licenses screen; the texts ship but nothing shows them.* - [x] The leak check over the whole fork branch: `git log -p origin/scooby-engine..HEAD` has none of the private identity values. Exit criterion 8. *Only the studio's git author line.* - [x] The ScummVM team questions drafted for Jeff in the private `scummvm-upstream-outreach.md`. Exit criterion 9. *Drafted in `private/tv-app-identity/scummvm-team-questions.md` instead: the outreach file isn't on the pre-flight's private allowlist.* - [x] WP-104 §Result written; fork PR opened into `scooby-engine`. *[barefootbetters/scummvm#36](https://github.com/barefootbetters/scummvm/pull/36), merged on 2026-11-29 (`27aa9f9a71`).* ## Definition of done Every box above checked with a capture, WP-104's exit criteria 2–11 met, the fork PR open, and §Result written. Exit criterion 1 is already met. ## Out-of-scope captures Anything seen during the run that belongs elsewhere (D-pad focus in the grid, guided import, options simplification, Windows branding) goes in WP-104 §Notes as a follow-up, not into this branch.