EC-014: Google TV package storage and download reliability: device checks

Paired WP: WP-096 Purpose: Verify each WP-096 behaviour on the TCL 65Q77K with evidence, in the order the WP builds them. A failed step is fixed on the WP branch before the next starts. Status: ✅ run 2026-11-28 on the TCL 65Q77K (Android 14). Every step passed.

Evidence rule: every checked box cites a logcat excerpt, a command output or a screenshot captured during the run. No capture, no check. Jeff’s live confirmations are quoted as his. Quoted output replaces the app’s id with <app-id>. Raw captures stay local, as in EC-008.

How the device is driven: Windows adb, as in EC-008. WSL’s NAT mode can’t see the TV.

Before and after every step that touches packages: take a run-as listing of files/packages/, files/saves/ and the library entries (snapshot S). WP-096 exit criterion 8 compares them.

Times below are the TV’s clock, from the app’s store log (files/packages/store.log) unless marked as the PC’s. Sizes are bytes unless marked.


Pre-flight

The pure-Java parts ran first on a desktop JVM (WP-096 Execution 3): the space arithmetic, the resume decision table, the .files.json comparison and a live Range request across GitHub’s redirect: 32 passed, 0 failed (Java 17).

Step 1: build and install (time-box 0:45)

Outcome: pass. The first build carried versionCode 26041000 and was refused as a downgrade (INSTALL_FAILED_VERSION_DOWNGRADE); it was rebuilt as 26041002.

Step 2: storage preflight (time-box 1:00)

Outcome: pass. Two findings:

Step 2b: measure the headroom (time-box 0:45)

Package Zip Installed Drop after download Drop at extract’s end (peak) Drop after install Overshoot at peak 64 MiB covers it
BASS 1.2 (as wp096-bass-measure) 69,377,781 72,861,811 69,382,144 142,266,368 72,888,320 26,776 yes
synthetic 1.0 419,431,397 419,430,617 419,483,648 838,889,472 419,454,976 27,458 yes

Drops are getAllocatableBytes from the store log. The once-a-second df /data poll agrees: BASS peak 134,984 KiB down; synthetic peak 819,232 KiB (838,893,568 B) down. Library unchanged after --add; saves identical.

Outcome: pass. The real overshoot is under 30 KB for both, so 64 MiB is about 2,400 times what the TCL needs. It stays at 64 MiB (D3).

Step 3: out of space mid-extract (time-box 0:45)

Jeff approved letting the app fill the disk below the 256 MiB floor for this step, 2026-11-28: “yes run #1 the out-of-space test”. The filler itself still left 500 MiB; the app’s own extract used the rest. The 144 MiB ext4 reserve kept the system running.

Outcome: pass, on the second attempt, with one fix:

Step 4: resume (time-box 1:00)

Outcome: pass. Finding: GitHub’s asset host ignores If-Range. Given a validator that doesn’t match, it still answers 206 with its real ETag. The app compares that ETag with the stored one, so it restarts anyway; the harness test was changed to accept either answer.

Step 5: verify (time-box 0:30)

Outcome: pass. bass-cd, installed by WP-085 before file lists existed, reports no file list (installed before Verify existed); reinstall it to verify.

Step 5b: interrupted installation (time-box 1:00)

Outcome: pass.

Step 6: preservation and close (time-box 0:30)

Outcome: pass, with the df note above.

Definition of done

Every step’s outcome is recorded with captures. WP-096’s exit criteria are met, its §Result is written, and its WORK_INDEX row is updated.

Out-of-scope captures

(One line per temptation, for a later WP.)