Liftbay

Android signing

Upload keys are generated on the first build, or imported, and kept for you.

Release builds (store and internal) are signed with your project's upload key.

The first build

If the project has no upload key yet, the first Android release build generates one with keytool (RSA 2048, alias upload) on the build machine, stores it encrypted with your organization's key, and uses it. Every later build fetches the same key.

The key's passwords are random and never appear in logs.

Bring your own upload key

If your app is already on Google Play, import the upload keystore it is registered with before the first build, so Liftbay signs with it instead of generating a new one:

LIFTBAY_KEYSTORE_PASSWORD=… npx liftbay credentials android import --keystore upload.jks --alias upload

Without the flags and variable the command prompts for the file, alias and passwords. PKCS12 (.p12, and the .jks files current keytool and Android Studio make) and the older JKS format both work. A JKS key can have its own password: pass it with LIFTBAY_KEY_PASSWORD (or --key-password); otherwise the keystore password is used. In a PKCS12 keystore both passwords are the same.

Liftbay opens the keystore with your passwords and checks that it holds a private key under the alias before storing it, encrypted like a generated key. It prints the certificate's SHA-256 fingerprint: it should match the upload key certificate in Play Console → Test and release → App integrity.

Owners and admins can also import from the dashboard: Credentials → Android upload key → Import. Both are recorded in the audit log, without the keystore or passwords.

If the project already has an upload key, the import stops unless you pass --replace (or confirm when asked). Replacing an upload key Play already knows makes it reject your uploads until you request an upload key reset, so export a backup first.

Back up your upload key

npx liftbay credentials android export --out upload.p12

This writes the keystore and, next to it, upload.properties with the alias and passwords (in the keystore.properties format Gradle signing configs read). Both files are created readable only by you; keep them in a password manager and out of git. In the dashboard, Credentials → Android upload key → Export shows the passwords and downloads the same files.

Only owners and admins can export, and every export is recorded in the audit log.

Google Play

Play App Signing holds your app signing key; the upload key only proves uploads come from you. For a new app, the first .aab you upload to Play registers this key as its upload key. If it is ever lost or replaced, request an upload key reset in Play Console.

Signature check

After Gradle finishes, the runner checks that the .aab or .apk is signed with your upload key and fails the build if it isn't, so a misconfigured build can never quietly ship debug-signed.

See and delete

npx liftbay credentials shows whether the project has an upload key and whether it was generated or imported. Deleting it through the API makes the next build generate a new one; Play Console then needs an upload key reset.

On this page