Android signing setup

From SteveGJones/ai-first-sdlc-practices · View interactive version

Android signing setup is an AI agent skill from the GitHub repository SteveGJones/ai-first-sdlc-practices. Set up Android app signing safely — generate an upload keystore, enroll in Play App Signing, and wire a Gradle release signingConfig that reads secrets from a git-ignored keystore.properties / CI (never committed). Use when configuring signing for a Play release.

How to use this skill

Skill file

Android Signing Setup

Configure Android release signing the safe way, under Play App Signing (Google holds the app

signing key; you hold the upload key). Belongs to the sdlc-team-android plugin.

Arguments

The model (why the two keys matter)

Under Play App Signing, **you sign uploads with an upload key; Google re-signs with the app signing

key** it holds. If you lose the upload key you can request a reset in Play Console and keep shipping —

the single-point-of-failure of self-managed signing is gone. Best practice: the **upload key is

distinct** from the app signing key.

Steps

1. Generate an upload keystore

keytool -genkeypair -v -keystore upload-keystore.jks \
  -keyalg RSA -keysize 2048 -validity 9125 -alias upload

manager. Export the upload certificate if you need to register it:

keytool -export -rfc -keystore upload-keystore.jks -alias upload -file upload_certificate.pem.

2. Wire the Gradle signingConfig without committing secrets

storeFile) and load it in build.gradle.kts:

val kp = Properties().apply { load(FileInputStream(rootProject.file("keystore.properties"))) }
android {
    signingConfigs {
        create("release") {
            storeFile = file(kp["storeFile"] as String)
            storePassword = kp["storePassword"] as String
            keyAlias = kp["keyAlias"] as String
            keyPassword = kp["keyPassword"] as String
        }
    }
    buildTypes { getByName("release") { signingConfig = signingConfigs.getByName("release") } }
}

a base64 secret decoded at build time and pass passwords via env vars. Never commit either.

3. Enroll in Play App Signing

Play Console → Release → Setup → App signing (PEPK tool to upload an existing key). Confirm the

upload key ≠ app signing key.

4. Verify

keys / Maps / Sign-In). Run the pre-flight checker — it flags a release build using the debug signing

config and any committed secret in Gradle files.

5. Report

Confirm the release signingConfig reads from the git-ignored properties/CI, the keystore is out of the

repo, and signingReport shows the expected fingerprints. Note the Play App Signing enrollment status.

Notes

not — which is exactly why Play App Signing exists.

CI, see gradle-build-specialist and play-store-release-specialist.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.