Skip to content
Agentmart
Submit a tool

android-signing-setup

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…

Skill by SteveGJones

IndexedMIT★ 41
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/stevegjones-android-signing-setup

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: devops, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/android-signing-setup

What's inside

Skill name
android-signing-setup
Description
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.
License
MIT
Instructions
78 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 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

- `path-to-android-project` — the project directory (defaults to the current directory).

## 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

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

- Validity ≥25 years (Play requires the certificate to extend beyond 22 Oct 2033).
- Store the `.jks` **outside the repo** (or encrypted); record the store/key passwords in a secret
  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

- Create a **git-ignored `keystore.properties`** (`storePassword`, `keyPassword`, `keyAlias`,
  `storeFile`) and load it in `build.gradle.kts`:

```kotlin
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") } }
}
```

- **Add `keystore.properties` and `*.jks`/`*.keystore` to `.gitignore`.** In CI, inject the keystore as
  a base64 secret decoded at build time and pass passwords via env vars. Never commit either.

### 3. Enroll in Play App Signing

- New apps use Play App Signing automatically (they ship an `.aab`). For an existing app, enroll via
  Play Console → **Release → Setup → App signing** (PEPK tool to upload an existing key). Confirm the
  upload key ≠ app signing key.

### 4. Verify

- `./gradlew signingReport` shows the SHA-1/SHA-256 fingerprints per variant (needed to register API
  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

- Losing the **upload** key is recoverable (Console reset); losing a self-managed **app signing** key is
  not — which is exactly why Play App Signing exists.
- For the full release flow (bundle, track, rollout) use `android-play-release`; for signing failures in
  CI, see `gradle-build-specialist` and `play-store-release-specialist`.

From SteveGJones/ai-first-sdlc-practices, MIT.

More from SteveGJones/ai-first-sdlc-practices

Signals

Stars
41
Forks
6
Open issues
37
Last commit (this folder)
Jul 24, 2026 (3 months ago)
Last release
Aug 10, 2025 (1 year ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from SteveGJones

Cite this page

android-signing-setup skill. Agent Mart. https://agentmart.dev/skills/stevegjones-android-signing-setup (last updated 2026-10-24)