Build and upload the app bundle
Like customizing and signing, this is work on a developer's machine. If Eluvio is uploading builds on your behalf, skip to internal testing and start there once they confirm a build is uploaded.
Releasing to production stays with you either way, along with the store listing and declarations.
Google Play takes an Android App Bundle (.aab) — a signed, release build that
Google turns into optimized installs for each device. This assumes
your configuration and upload key are set up
and the app runs on a real TV.
Build the release bundle
-
Bump
VERSION_CODEincustom_build/config/custom.propertiesif this version code has ever been uploaded before. -
From the
custom_buildfolder, run:./build.shEnter the keystore password when prompted, unless you saved it in
signing.properties. -
Wait. A full build takes several minutes; most of that is shrinking and optimizing the release build.
Prefer Android Studio? Open the repo, switch the run configuration in the toolbar from
app to custom-build, and press Run. It runs the same script, in Android Studio's
terminal.

When it finishes, custom_build/build_output/ holds three files:
| File | What it is for |
|---|---|
tv-release.aab | The one to upload to Google Play |
tv-release.apk | The same release build as an installable APK, for sideloading |
tv-debug.apk | A debug build, installed under your package name plus .debug |
If the build warned you it was signing with the Android debug keystore, the bundle cannot be uploaded — Google Play rejects it. Set up an upload key and rebuild.
Upload to the internal testing track
Upload the first build to internal testing, not production. Internal testing skips review and reaches your testers within minutes, so you find problems before anyone else does.
-
In Play Console, open your app, then Test and release → Testing → Internal testing.
-
Click Create new release.
-
The first time, you are asked to confirm Play App Signing. Accept Google's default: Google generates and holds the app signing key, and the key you built with becomes your upload key.
-
Under App bundles, upload
custom_build/build_output/tv-release.aab.Check the package name and version Play Console shows for the bundle. The package name must match the one you entered when creating the app, or the upload is rejected.
-
Give the release a name (it defaults to the version name) and short release notes.
-
Click Next. Play Console checks the release and lists any errors, warnings or messages.
-
Click Save and publish (or Start rollout to Internal testing, depending on the Play Console version).
Play Console regularly lists warnings on a release — about missing deobfuscation files, native debug symbols, or setup tasks that are still incomplete elsewhere in the app. They do not stop an internal testing release. Errors do, and must be fixed before you can roll out.
Record the upload key fingerprint
Once Play App Signing is set up:
-
With your app selected, click Protected with Play in the left sidebar — the shield icon when the sidebar is collapsed.
-
Expand Play Store protection (1), then click Manage Play app signing (2).

-
The App signing page has a section for the App signing key and one for your Upload key. Click SHA-256 certificate fingerprint in each (1, 2) to copy it, and save both alongside your upload key's details.

If you ever need to confirm which key a build was signed with, or ask Google to reset a lost upload key, these are what you compare against.
Next
Once the release is rolled out, test it via internal testing before submitting it.
Build or upload failing? See Troubleshooting.