Google Play internal testing runbook

How a build of the scummvm fork goes from source to a tester’s TV through Google Play’s internal testing track: source → build → sign → upload → Play → install → launch → play. It’s the procedure for WP-088; results go in EC-011.

Scope. Internal testing only: no public listing, no TV review, no bundled game. The public release is WP-084, which also owns the developer account and both signing keys. The app’s name and package id are private until it’s on Google Play; this page writes <package-id> for the package id.

Evidence labels used below. Verified: stated by Google’s or ScummVM’s own pages, or read in the fork’s source. Observed: seen in a local run. Recommended: our choice. Unverified: not confirmed yet. Blocked: needs an account, a device or a decision. Google’s pages were read on 2026-11-26 (Sources).


Status

Stage State
A. Source validation (script) Observed 2026-12-01 to 05, see Dry-run record
B. Build (script) Observed: dry runs with the app’s identity, art and theme, both ABIs with libpng and FreeType, no cloud
C. Versioning (script) Observed: the code and name passed as Gradle properties reached the bundle’s manifest
D. Signing (script) Observed with a throwaway key; a wrong key is refused at the certificate check. The upload key itself is untried with the script
E. Release artifact (script) Observed for the dry run (temp folder, checksum file); writing the release folder and ledger is untested
Local install of a release build Observed 2026-12-05: a dry-run bundle’s universal APK installed and launched on the TCL (Dry-run record)
F. Google Play Blocked: the organization account (WP-084 D3; waits for the corrected D&B record to reach Google)
G. Acceptance A: install from Play and launch on the Bravia Blocked on F
H. Acceptances B (game reaches play) and C (update installs) Blocked on F; tracked separately (EC-011)

How it fits together

fork commit (origin/<branch>)                                 Windows / WSL
  |
  |  tools/Build-AndroidRelease.ps1 --wsl--> worktree in /opt/build/wt/...
  |    identity from /root/.gradle/gradle.properties (tvApp*)
  |    configure per ABI: sky + terraglyph, libpng, FreeType, --disable-cloud
  |    arm64-v8a libraries built in a subfolder, copied into the Gradle project
  |    make androidbundlerelease (armeabi-v7a + arm64-v8a), version by property
  |    jarsigner (upload key) -> certificate, bundletool, ABIs, 16 KB checks
  v
C:\pcloud\scooby-engine\releases\android\<id>-<name>-<code>-<date>-<sha7>.aab
  + .sha256 + ledger.csv row --manual upload--> Play Console: internal track
                                                (Play re-signs with our app
                                                 signing key, enrolled once)
                                                      | opt-in link
                                                      v
                                             tester's Google account -> TV

Two keys (Verified, Play App Signing), both ours (WP-084 D4), with their certificates in WP-084 §Play signing keys:

One-time: developer account

The organization account (WP-084 D3), registered by Jeff with the studio’s own Google account once the corrected D&B record has reached Google. Internal testing is available as soon as the account is verified (Verified). Google states the 12-tester, 14-day closed test only for personal accounts created after 2023-11-13 (Unverified for organizations).

One-time: build machine setup

  1. The WSL toolchain as in the smart-TV guide, steps 1–2. On the studio machine (Observed) it lives at /opt/android-sdk (not ~/android-sdk as the guide’s example has it), with NDK 23.2.8568313 and Oboe 1.11.0 built for armeabi-v7a and arm64-v8a, the two ABIs a TV release needs (TV-G6).
  2. libpng 1.6.59 and FreeType 2.13.3, static, for both ABIs, in /opt/build/png-v7a, /opt/build/png-arm64, /opt/build/ft-v7a and /opt/build/ft-arm64. The grid launcher (the TV default) aborts without libpng, and the theme’s fonts need FreeType. The 32-bit copies came from WP-085 and WP-104; the 64-bit ones were built on 2026-12-01 with the same options, against API level 21 (Observed: the script’s dry run found both). The 64-bit commands, run in WSL with the sources already unpacked in /opt/build/libpng-src and /opt/build/freetype-src:

    TC=/opt/android-sdk/ndk/23.2.8568313/build/cmake/android.toolchain.cmake
    cmake -S /opt/build/libpng-src/libpng-1.6.59 -B /opt/build/libpng-build-arm64 \
      -DCMAKE_TOOLCHAIN_FILE=$TC -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-21 \
      -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/build/png-arm64 \
      -DPNG_SHARED=OFF -DPNG_TESTS=OFF -DPNG_TOOLS=OFF -DPNG_HARDWARE_OPTIMIZATIONS=OFF
    cmake --build /opt/build/libpng-build-arm64 -j && cmake --install /opt/build/libpng-build-arm64
    cmake -S /opt/build/freetype-src/freetype-2.13.3 -B /opt/build/freetype-build-arm64 -G Ninja \
      -DCMAKE_TOOLCHAIN_FILE=$TC -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-21 \
      -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/build/ft-arm64 -DBUILD_SHARED_LIBS=OFF \
      -DFT_DISABLE_BROTLI=TRUE -DFT_DISABLE_HARFBUZZ=TRUE -DFT_DISABLE_PNG=TRUE \
      -DFT_DISABLE_ZLIB=TRUE -DFT_DISABLE_BZIP2=TRUE
    cmake --build /opt/build/freetype-build-arm64 && cmake --install /opt/build/freetype-build-arm64
    

    For armeabi-v7a, the same with -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 and the -v7a folders.

  3. The fork clone the script builds from, in WSL (skip if it exists; the script fetches it on every run and never edits its checkout):

    wsl -d Ubuntu -- git clone https://github.com/barefootbetters/scummvm.git /opt/build/scummvm
    
  4. bundletool (Google’s AAB tool), checked against the release digest, in a folder outside AppData:

    $d = "$env:USERPROFILE\tools\bundletool\1.18.3"; New-Item -ItemType Directory -Force $d | Out-Null
    
    curl.exe -L -o "$env:USERPROFILE\tools\bundletool\1.18.3\bundletool-all-1.18.3.jar" https://github.com/google/bundletool/releases/download/1.18.3/bundletool-all-1.18.3.jar
    
    (Get-FileHash "$env:USERPROFILE\tools\bundletool\1.18.3\bundletool-all-1.18.3.jar").Hash
    

    It must print A099CFA1543F55593BC2ED16A70A7C67FE54B1747BB7301F37FDFD6D91028E29. This is the script’s default -BundletoolPath (since 2026-12-01; it was under %LOCALAPPDATA% before). Why not %LOCALAPPDATA% (Observed 2026-12-01): a download made from a Claude desktop app session lands in the app’s virtualized copy of that folder (AppData\Local\Packages\Claude_…\LocalCache\Local\). Windows tools inside the app see it at %LOCALAPPDATA%; WSL and other terminals don’t, and the script fails at “bundletool does not run”.

  5. The app’s identity, per WP-085’s pre-flight (Q1, “Inject at build time”) and WP-104: tvAppId, tvAppLabel, tvAppResDir and tvAppAssetsDir in /root/.gradle/gradle.properties in WSL, with the res/ and assets/ folders they point to, as the private repo’s private/tv-app-identity/README.md describes. The script runs as WSL’s default user (root), so Gradle reads that file on every build with no flag. The script refuses to build if any of the four is missing, and refuses a file that sets tvAppVersionCode or tvAppVersionName (it sets those).
  6. The release folder (non-git business material, per the three-roots layout): C:\pcloud\scooby-engine\releases\android\. The script creates it.

Keys

Both keystores already exist (generated 2026-11-30). Where they live, their passwords and backups are in WP-084 §Play signing keys. The script needs only the upload keystore’s path on the build PC and its password. It checks the signing certificate against the upload key’s SHA-256 recorded there (61:50:00:95:…:AB:16:09, the default of -ExpectedUploadCertSha256), so a bundle signed with any other key, the app signing key included, never reaches the release folder.

Never put a keystore or its password in a repo, a log or a chat. A .gitignore entry doesn’t un-leak a file that was already committed: if that ever happens, ask Play to register a new upload key (Play Console → Test and release → App integrity → App signing → Request upload key reset).

Version codes

Recommended: keep upstream’s (y)yy.mm.p.bb.a scheme (dists/android/build.gradle) and use bb as the Play build counter, starting at 10, with a = 0 (one bundle for all ABIs). Sideloaded test builds have used 26041000–26041070 (as of 2026-12-01), so Play starts above them.

Fork base Play build versionCode versionName
ScummVM 2026.4.1 1 26041100 2026.4.1-play.1
ScummVM 2026.4.1 2 26041110 2026.4.1-play.2
ScummVM 2026.5.0 (after an upstream sync) 1 26050100 2026.5.0-play.1

Codes only grow, the Play maximum is 2,100,000,000, and a code is never reused (Verified). The script enforces this: it refuses a code at or below the highest in ledger.csv for that package id, a code not ending in 0, and an existing artifact with that code. It passes the code and name to Gradle as the fork’s tvAppVersionCode and tvAppVersionName properties (environment variables), so no file changes. A failed build writes no ledger row, so its code can be retried.

Each ledger row names the fork commit. To tie a release to its source publicly (for GPL, below), tag that commit after the build. The tag is annotated, not signed: no signing key is set up on the build PC, and nobody verifies one for an internal test (WP-088 pre-flight, 2026-12-01). Tagging only adds a ref, so the shared checkout’s branch doesn’t change; fetch first so the commit is there:

git -C C:\dev\scummvm fetch origin
git -C C:\dev\scummvm tag -a android-<versionCode> -m "Play internal build <versionCode> (<versionName>)" <fork commit>
git -C C:\dev\scummvm push origin android-<versionCode>

Per release

  1. Pick the code and name from the table above and the ledger.
  2. Build. With the 1Password CLI (op), put the password in this session’s environment and clear it afterwards. Without op, skip the first and last commands: the script then prompts for the password with no echo.

    $env:BB_UPLOAD_STORE_PASS = op read "op://<vault>/<upload key item>/password"
    
    pwsh C:\dev\scooby-engine\tools\Build-AndroidRelease.ps1 -VersionCode 26041100 -VersionName 2026.4.1-play.1 -ExpectedApplicationId <package-id> -KeystorePath <upload keystore on the build PC>
    
    Remove-Item Env:BB_UPLOAD_STORE_PASS
    

    A dry run took about 2 minutes on the studio machine’s 32 cores, with Gradle’s plugins already downloaded. The script prints the artifact path, its SHA-256, the package, version, fork commit and the upload certificate fingerprint, and exits non-zero on any failure. Get-Help <script> -Full lists every option, including -Engines, -Ref, -Branch and -DryRun.

  3. Optional local install check on the TCL (the bundle as Play would cut it for that device; signed with the upload key, so uninstall it again before installing from Play, as the signatures differ):

    wsl -d Ubuntu -- java -jar "/mnt/c/Users/$env:USERNAME/tools/bundletool/1.18.3/bundletool-all-1.18.3.jar" build-apks --mode=universal --bundle=<aab as /mnt/c path> --output=<folder as /mnt/c path>/test.apks --ks=<upload keystore as /mnt/c path> --ks-key-alias=upload
    

    bundletool prompts for the keystore password. test.apks is a zip holding universal.apk (both ABIs and the install-time asset pack in one APK). Unzip it and install from Windows adb, since WSL’s adb can’t reach the TV (smart-TV guide): adb install universal.apk (Observed 2026-12-05 with a dry-run bundle: it installs and launches on the TCL). To check a release build before build 1 exists, cut the APKs from a dry-run bundle instead and sign them with a throwaway key made for it (keytool -genkeypair … -storetype PKCS12, passed as --ks); no password of ours is involved.

  4. GPL first: tag and push the built commit and complete the GPL checklist before the build can reach a tester.
  5. Upload (Play Console, Jeff; menu names as of 2026-11-26, and Google moves them):
    1. Test and release → Testing → Internal testing → Create new release.
    2. Upload the .aab from the release folder. Play shows the upload certificate; check it matches the ledger’s uploadCertSha256.
    3. Release notes, e.g. Build 26041100 from fork <sha7>. Source: https://github.com/barefootbetters/scummvm/tree/android-26041100. The build inputs not in that tree (the app's art, theme and settings) are available from Jeff on request. That last sentence is the written offer Jeff chose for the injected input (WP-088 pre-flight Q1).
    4. Save → Review release → fix any blocking error → Start rollout to Internal testing.
    5. Fill the ledger row’s play column (internal <date>).
  6. Testers get it within minutes (Verified). Existing testers see an update in the Play Store.

First time only: the app and the internal track

Blocked on the organization account’s verification. This step fixes the package id and the app signing key for good, so the pre-flight checks both first.

  1. Play Console → Create app: the app’s private name, default language, Game, Free, accept the declarations. The package name is set by the first uploaded bundle and can’t be changed or reused afterwards.
  2. App signing (WP-084 D4): choose to use our own key, by exporting and uploading it from a Java keystore. Play Console offers its PEPK tool and an encryption public key, and shows the exact command to run against the app signing keystore (alias app-signing); use the command it shows. Upload the encrypted output it produces.
  3. Check the App signing page: the app signing certificate’s SHA-256 must be the app-signing value in WP-084 §Play signing keys, and the upload certificate’s the upload value (after the first upload). Screenshot it for EC-011.
  4. Test and release → Testing → Internal testing → Testers tab → Create email list (e.g. “Family”), add each tester’s Google account email, Save. Up to 100 testers (Verified).
  5. Under “How testers join your test”, Copy link: the opt-in URL. Internal tests don’t show up in Play search, so this link is the way in (Verified).
  6. The rest of app setup (store listing, content rating, privacy policy, TV opt-in) isn’t needed for internal testing: Google says an internal release can be created before the app is fully configured, and apps only on internal tracks are exempt from the Data safety form (Verified). If the Console still blocks the rollout on a missing item, fill that item (WP-084 has the answers: D5 for target audience, the privacy policy URL) and note it in Troubleshooting.

Android TV form factor. The dedicated Android TV track (Advanced settings → Form factors) is optional: Google says TV users can be served from the mobile track, and adding it starts TV quality review. For internal testing we don’t add it. Whether an internal test reaches a TV without it isn’t stated by Google (Unverified); the first install on the Bravia answers it (EC-011 Step 2).

Family tester guide

Send this with the opt-in link. You need: the TV signed in to your Google account, and a phone or computer signed in to the same account.

  1. On the phone or computer, open the link Jeff sent and choose Accept invite (or Become a tester).
  2. Tap download it on Google Play. On the app’s Play page, choose Install, and pick your TV from the device list. It installs on the TV over the internet (Verified for Play’s remote install; Unverified for a test app, so if the TV isn’t offered, go to step 3).
  3. Or, on the TV, open the Google Play Store, go to your profile’s list of apps and look for it (Unverified for a test app), or tell Jeff it didn’t arrive.
  4. Open the app from the TV’s Apps row. If it’s not on the home screen, it’s in the full apps list.
  5. Pair the Bluetooth gamepad in the TV’s settings (the menu is usually “Remotes & accessories”; the name varies by TV) before playing.
  6. Updates come through the Play Store like any app.

To leave the test: open the same link and choose Leave the test, then uninstall.

Game data

No game data is in the app; testers use their own, legally obtained copy. Which routes exist in the Play build, and what WP-085 found on the TCL (Observed, WP-085 §Result):

Route In the Play build TCL 65Q77K Sony Bravia
Add Game… through the system document picker Yes ❌ no picker on this TV Unverified: check first
USB stick read by path Yes ❌ Permission denied (Android 14 hides non-media files on removable storage) Unverified
A file manager app that provides a document picker, then Add Game… Yes Untried Unverified
ScummVM’s cloud download dialog No (--disable-cloud, decided 2026-11-30) — —
Advanced mode test packages No (WP-085 D4: test builds only) ✅ in test builds —
adb push into the app’s folder, then Add Game… Yes ✅ (developer route) Needs developer mode and adb on the TV

Acceptance B needs one route that works on the Bravia. If none does, that’s a finding for WP-085’s open exit criterion 3; acceptances A and C don’t wait for it.

Android TV checklist

Item State
Both ARM ABIs, 16 KB pages (TV-G6) Script checks it every build
Target API ≥ 34 for TV 37 (Verified)
minSdk ≤ 31 (TV-PS) 16 (Verified)
App Bundle (TV-G1) Yes
320 × 180 banner with the app’s name (TV-BN) WP-104’s banner, injected (Observed in the bundle: five densities)
D-pad navigation (TV-DP) WP-118: the remote’s D-pad moves the focus in the launcher and menus
Gamepad declared required (TV-GP) WP-084 scope 6, for the public build; shows a “Gamepad required” badge on TV and doesn’t block installs (Verified)
Back returns to the home screen (TV-DB) Checked in WP-084

Three milestones are separate, and one doesn’t prove the next: a sideload working, a Play internal-test install working, and passing TV review for public distribution (WP-084).

GPL checklist

The fork is GPLv3 or later; Oboe and androidx.annotation are Apache-2.0; libpng and FreeType (FTL) are linked statically; the theme’s Raleway font is SIL OFL 1.1; games are not part of the app. Giving the app to testers is distribution, so for every internal release, before it goes to any tester:

Before any public or paid release, WP-084 adds a full licenses screen, a corresponding-source archive with BUILDING.md, and a source link in the listing. Play Billing can’t be linked into the GPL runtime; any paid product needs its own license review.

Troubleshooting

Symptom Cause and fix
Oboe missing for … Build Oboe for that ABI (smart-TV guide, step 2)
libpng missing for … / FreeType missing for … Build it for that ABI (build machine setup, step 2)
configure found no libpng / no FreeType The folder exists but configure didn’t use it; read configure.out in the kept worktree
tvAppId is not set … / … not found: the identity isn't set Set up /root/.gradle/gradle.properties (build machine setup, step 5)
tvAppVersionCode is set in … Remove the version lines from gradle.properties; the script sets the version
… is not on origin/<branch> The ref isn’t on the branch given by -Branch; push the commit or pass the right branch
version code … is not above the highest one built so far Pick the next code from the table; a code is used once a ledger row exists
jarsigner failed (wrong password or alias?) Check the 1Password item and -KeyAlias
signed with a certificate that isn't the upload key -KeystorePath points at another keystore (the app signing key’s, or an old test key)
bundle package is '…', expected '…' The identity properties name another id, or -ExpectedApplicationId is mistyped
the identity assets (tvapp.ini) are not in the bundle tvAppAssetsDir points at an empty or wrong folder
the build changed tracked files Something in the build wrote to the source tree; inspect the kept worktree
bundletool does not run / Unable to access jarfile The jar isn’t where -BundletoolPath points, or WSL can’t see that folder; check with wsl ls /mnt/c/.... A jar under %LOCALAPPDATA% that Windows finds and WSL doesn’t was written inside the Claude desktop app’s virtualized folder: use the %USERPROFILE%\tools\ copy, the script’s default (setup step 4)
Play rejects the package name The id is taken (by us or anyone); package names are permanent
Play says the version code was already used Bump the code; the ledger missed one (record it)
Play: upload certificate mismatch The bundle was signed with a different key than the app’s upload key
The app doesn’t appear on the TV Check the TV’s Play account is the opted-in one; use remote install from play.google.com; check that the tester list is selected on the internal track
App installed from bundletool or adb won’t update from Play Different signatures (upload key or debug key vs the app signing key); uninstall, then install from Play

From internal to closed to production

All of this is WP-084’s, after Gate 0:

  1. Store listing (description with license and source notices, 512 px icon, 1280 × 720 TV banner, TV screenshots), content rating, target audience (D5), privacy policy URL, Data safety, ads declaration.
  2. Android TV form factor opt-in and TV quality review.
  3. A closed test (the 12-tester, 14-day rule is stated for personal accounts only).
  4. Production release, on Jeff’s explicit go.

Later: API uploads with fastlane supply (maintained; needs a Google service account with Play Developer API access) once manual uploads are routine. Gradle Play Publisher is in maintenance mode.

Dry-run record

Observed 2026-12-01 on the studio machine (Windows 11, WSL Ubuntu, 32 cores), on origin/scooby-engine 837ca576da49, with the app’s identity, art and theme set on the build machine. The private package id is left out here.

Run Result
-DryRun Passed in 2 min 8 s. Both ABIs configured with Beneath a Steel Sky and TerraGlyph, libpng, FreeType, no cloud. Signed with a throwaway key; jarsigner -verify and bundletool validate passed; armeabi-v7a and arm64-v8a libscummvm.so and libloader.so present, every LOAD segment 0x4000. Bundle 100,747,677 bytes: the injected banner (5 densities), icon, theme, defaults, About text and thumbnails pack in base/; fonts.dat and fonts-cjk.dat in the mainAssets pack. Version kept at 26041000 / 2026.4.1. Worktree removed
-DryRun -VersionCode 26041100 -VersionName 2026.4.1-play.0 Passed; the manifest read back 26041100 / 2026.4.1-play.0
Real path with a test PKCS12 key (not the upload key) Built and signed, then stopped as designed: signed with a certificate that isn't the upload key. No artifact, no ledger row; worktree kept, then removed by hand
-DryRun -BundletoolPath <%USERPROFILE%\tools copy> (WP-088 pre-flight) Passed in 1 min 48 s on the same fork commit: both ABIs with the two engines, libpng, FreeType, no cloud; 16 KB aligned; bundle 100,746,554 bytes, SHA-256 cae2531f…0933ffd. See the pre-flight
-DryRun, no -BundletoolPath (WP-088 execution, 2026-12-04) Passed in 140 s on 323e89d12f: both ABIs with the two engines, libpng, FreeType, no cloud; 16 KB aligned; bundle 101,014,554 bytes
-DryRun (2026-12-05), then its universal APK on the TCL Passed in 133 s on 1dfbfb7375; bundle 101,027,611 bytes. Its universal APK (bundletool --mode=universal, throwaway key), 91,550,116 bytes, installed on the TCL (Android 14, armeabi-v7a) in 7 s and launched cold in 1.96 s, to the first-run notice and then the grid launcher in the app’s theme, with no crash; uninstalled afterwards. See EC-011 Step 1

An earlier dry run on 2026-11-26 (ff490ad9449f, before WP-085’s identity and WP-104’s art) also passed, and the refusals before the build were checked then: an upstream org.scummvm.* id, a code not ending in 0, a code at or below the ledger’s highest, a missing keystore, a missing -VersionCode. Each exits 1 with its message.

Not yet run: the no-echo password prompt (needs an interactive session) and a real build with the upload key to the release folder and ledger.

Tester register template

The real register holds family members’ names and email addresses, so it lives in 1Password as a secure note (“Play testers”), never in a repo or a synced folder. Play Console’s tester list holds the emails too; the register adds device and status. Columns, with a fictional row:

Tester Google account Device Android version Invited Opted in Installed Launch tested Notes
Example Tester [email protected] Sony Bravia (model) 10 2026-12-22 2026-12-22 2026-12-22 build 26041100 ✅ game reached play Gamepad paired

Sources

Read 2026-11-26.