Customize and sign the build
This page and build and upload are work on a developer's machine. If Eluvio is building and uploading on your behalf, skip both and pick the process back up at internal testing, once they tell you a build has been uploaded.
For them to do that, you must already have given them access and created the app in your own account. You will also need to send them your app name, icons, banner and property ID, and agree with them who holds the upload key — see signing.
The step that turns the Eluvio Media Wallet into your app. Everything here is driven by the
custom_build folder in the app repo: you fill in a properties file, drop in your artwork,
point it at your signing key, and run one script. No Android code changes are needed.
The repo's own custom build guide is the reference for the details; this page walks through it in order.
Get the code
Builds run on your own machine, so nothing secret ever needs to reach GitHub. Everything else — your app name, package name, icons, and property — is ordinary configuration that is worth committing: it is how you reproduce the same build later, and how you pick up future updates from Eluvio by merging.
Choose one:
-
Fork the repo to your organization's GitHub account (how to fork). Simplest, but a fork of a public repo is itself public, so your branding configuration would be visible to anyone.
-
Import it as a new private repository instead. Go to github.com/new/import and enter the source URL
https://github.com/eluv-io/elv-wallet-android.
Choose your organization as the owner, name the repository, and set it to Private.

Then clone your copy locally (how to clone).
Fill in the build properties
Open custom_build/config/custom.properties and fill it in. Wrap values in quotes if they
contain spaces or special characters.
| Property | Required | What it is |
|---|---|---|
APPLICATION_ID | Yes | Your package name, e.g. com.yourcompany.yourappname. Must match the package name the app was created with in Play Console. |
APP_NAME | Yes | The name shown under your app's banner on the TV home screen |
VERSION_CODE | Yes | An integer, e.g. 1. See version code and name. |
VERSION_NAME | Yes | Your public version, e.g. 1.0.0 |
DEFAULT_PROPERTY_ID | No, but you almost certainly want it | Your Eluvio property ID (iq__…). The app opens straight onto this property's sign-in screen instead of the Discover grid of all properties. |
DEFAULT_TO_STAGING | No | Testing only. Leave it false for anything you upload. |
This file is meant to be committed. Signing configuration lives in a separate file that is not, covered below.
Version code and name
Two separate fields, with different rules:
- Version name (
VERSION_NAME) — what customers see, e.g.1.0.0,1.1.0. - Version code (
VERSION_CODE) — internal. Must increase with every single upload to Play Console, even a re-upload of the same version after a failure. If you forget, the upload is rejected because the version code has already been used.
A simple convention: keep the version name stable during a release cycle and bump the code
every upload — 1.0.0 (1), 1.0.0 (2), 1.0.0 (3).
Add your artwork
Everything the build copies into the app lives in custom_build/config, alongside
custom.properties.
| Path | What it is |
|---|---|
android/res/ | Launcher icons |
androidtv/res/ | The Android TV home screen banner |
android/res/drawable-xxhdpi/start_screen_backgroundandroid/res/drawable-xxhdpi/start_screen_logo | Optional start screen art |
Icon and TV banner
The banner matters more than the icon on a TV: it is what users see in the row of apps on the home screen.
-
Create both in IconKitchen. Starting from your Android Icon, click + and add an Android TV Banner as well. iOS and Web icons are not needed.

-
Download, and copy the
androidandandroidtvfolders from IconKitchen's output intocustom_build/config/.
Start screen art
Only relevant when DEFAULT_PROPERTY_ID is set. The app then opens on a sign-in screen for
that property, which has a background and a logo of its own.
Add them as start_screen_background and start_screen_logo under
custom_build/config/android/res/drawable-xxhdpi/. Anything Android can decode works, so
.jpg for the background and .png for a logo with transparency.
Both are optional. The app ships blank placeholders, so leaving them out just shows no artwork — and if the property has its own start screen art configured in Creator Studio, that takes precedence over whatever you put here.
Set up signing
Android identifies an app by the key it is signed with. With Google Play, two keys are involved:
- The app signing key signs what users actually install. Google generates and holds it for you through Play App Signing, which is mandatory for new apps. You never handle it.
- The upload key is yours. It signs the bundles you upload, and proves to Google that an upload really came from you. This is the key you configure here.
Because Google holds the real signing key, a lost or leaked upload key is recoverable: the account owner can ask Google to reset it from Play Console. It is still a credential that lets someone publish as you, so guard it accordingly.
You can skip signing entirely for a local test build. With no signing configuration, the build script falls back to the Android debug key, warns you, and asks you to confirm. The result installs and runs fine on your own TV, but Google Play rejects debug-signed uploads. Set up a real upload key before you build anything to upload.
Create an upload key
The easiest way is from Android Studio, following Google's steps for generating an upload key.
Or from the command line, with the keytool that comes with Java:
keytool -genkey -v -keystore acme-upload.jks -alias acme -keyalg RSA -keysize 2048 -validity 10000
Store the keystore file and its passwords in your company password manager. Whoever builds the app needs both.
Point the build at it
-
Copy the signing template. The copy is git-ignored:
cd custom_build/configcp signing.properties.template signing.properties -
Set the keystore path and alias in
signing.properties:KEYSTORE_FILE=~/keys/acme-upload.jksKEYSTORE_ALIAS=acme
Keep the keystore outside the repo. A path like ~/keys/ means the key physically cannot
be committed, which is a stronger guarantee than remembering not to git add it. If you put it
in config/ instead, *.jks and *.keystore files there are git-ignored, and the build
refuses to run if one is ever tracked by git.
Leave KEYSTORE_PASSWORD blank and the build prompts for it, so no password is written to
disk. Fill it in if you would rather not be prompted on every build; signing.properties is
git-ignored either way. KEYSTORE_ALIAS_PASSWORD is only needed if the key's own password
differs from the keystore's.
Check the configuration
From the custom_build folder, run:
./build.sh -v
This checks that every required property is set, the package name is valid, the artwork folders are in place, and the keystore can be found, without building anything.
When everything is in place, it prints:
Config verification successful.
Otherwise it names the first problem it finds and exits — see Troubleshooting for each message. With no signing configuration, it also prints the debug-keystore warning described in Set up signing.
Verify on a real device
Do not go straight to a release build. Confirm the app runs with your branding on a real TV first — problems are far easier to diagnose here than after an upload.
-
On the TV, enable developer options: Settings → System → About, then select Android TV OS build seven times. The exact menu path varies a little between devices.
-
In the new Developer options menu, turn on USB debugging, and Wireless debugging or Network debugging if your device offers it.
-
Connect from your computer, using the TV's IP address from its network settings:
adb connect 192.168.1.50Accept the prompt that appears on the TV.
-
From the
custom_buildfolder, build, install and launch in one step:./build.sh -iThis builds only the debug variant, so it takes seconds rather than minutes. Use it every time you change your artwork or configuration.
The app should appear on the TV with your banner and name, and launch onto your property. Verify DRM playback here — this is the check an emulator cannot do for you.
The debug build is installed under your package name with .debug added, so it sits
alongside, rather than replacing, any release build you install later.
Next
The build works, so you can now build the release bundle and upload it.
If something is not working, see Troubleshooting.