# Play signing & test tracks

> Manage Google Play App Signing, protect your upload key, pass Personal account closed testing rules, and ship production updates with staged rollouts.

- Canonical: https://exaspark.ai/docs/android-signing-and-tracks/

## How Google Play App Signing works

Every Android application distributed on Google Play must be cryptographically signed so Android devices can verify that future updates genuinely come from the original publisher. Understanding the two-key architecture behind **Google Play App Signing** prevents accidental release lockouts later.

- **App Signing Key (held by Google Play).** Google generates and protects the master signing key that signs the device-optimized installs delivered to end users from your uploaded bundle.
- **Upload Key (managed with your ExaSpark `.aab` export).** Signs the Android App Bundle (`.aab`) you upload to Play Console so Google can verify the bundle came from your project before re-signing it for public distribution.

Signed `.aab` exports unlock on **Starter** (`$4.99/mo` or `$3.99/mo` billed annually) and **Pro** (`$25/mo` or `$20/mo` billed annually, with priority Android builds). Google Play requires `.aab` bundles for all new apps rather than raw `.apk` packages, allowing Play to shrink download sizes for every Android screen density.

> **Note:** Never create a second separate ExaSpark project to ship an update for an already-published Google Play listing. Keep every update inside the original ExaSpark project so your package ID and upload signing identity remain consistent.

## Protecting your package ID, upload key, and version codes

Three technical identifiers govern every release throughout your app's life on Google Play. Treating them as permanent release contracts from build one eliminates nearly all upload rejections.

### Package ID (Application ID)

Your package ID follows reverse-domain format such as `com.yourstudio.booking`. The moment you upload your very first `.aab` to any track in Play Console — even **Internal testing** — Google permanently locks that package ID to the listing. Choose a clean, brand-owned name before your first upload rather than a temporary draft identifier.

### Version Name vs strictly increasing Version Code

`versionName` (for example `1.0.0` or `1.2.1`) is the human-readable release string shown on Google Play. `versionCode` (`1`, `2`, `3`) is a strictly increasing positive integer that Google uses internally to order builds across every track combined.

```text
# Release progression inside Play Console
Build 1 -> Internal testing:   packageId=com.yourstudio.booking  versionName=1.0.0  versionCode=1
Build 2 -> Closed testing fix: packageId=com.yourstudio.booking  versionName=1.0.1  versionCode=2
Promote -> Production launch:  Promote versionCode=2 directly (no rebuild required)
Build 3 -> Icon / shell update: packageId=com.yourstudio.booking  versionName=1.1.0  versionCode=3
```

Play Console rejects any new upload whose `versionCode` equals or falls below a previously uploaded bundle, even if you discarded that older draft without publishing it.

### Recovering from a lost upload key

Because new apps enroll in **Google Play App Signing**, losing an upload key no longer strands existing users permanently. Under **Setup → App signing**, the account owner can request an **Upload key reset** with a new certificate and a 48-hour security cooldown.

Staying inside one ExaSpark project avoids needing a reset altogether. Never delete your project or generate a separate app identity for a live listing.

## Choosing the right Play Console release track

Google Play separates releases into four progressive tracks so you can verify real store installs before exposing a build to public search traffic.

| Track | Review required | Who can install | Typical availability | Best used for |
| --- | --- | --- | --- | --- |
| **Internal testing** | No full review | Up to 100 invited emails | Within minutes | Immediate sanity check of your first `.aab`, login, and Stripe checkout |
| **Closed testing** | Yes (initial check) | Specific email lists or Google Groups | Hours to a few days | Passing Google's 12-tester / 14-day Personal account requirement and focused betas |
| **Open testing** | Yes | Public beta opt-in link on Play | 1 to 3 days | Early public feedback from a wider audience before v1 launch |
| **Production** | Full Play review | Everyone on Google Play Store | 1 to 7 days | Official public launch and staged percentage rollouts |

Always **promote** a verified release from Internal testing to Closed testing, and from Closed testing to Production, rather than rebuilding an identical `.aab`. Promoting moves the exact tested `versionCode` forward and ensures zero last-minute packaging surprises.

## Passing Google's 12-tester, 14-day Closed Testing rule

Google separates **Organization** developer accounts (verified with a D-U-N-S number) from **Personal** accounts. New Personal accounts must finish a qualifying Closed Test before Production unlocks.

Follow four practices so your 14-day testing window passes on the first try:

- **Recruit 16 to 20 Android testers.** Google requires **12 testers opted in continuously for 14 days**; recruiting extras protects your count if someone leaves early.
- **Confirm opt-in and real install.** Each tester must open your web opt-in link with the exact invited Gmail account and install from Google Play.
- **Drive real usage and one update.** Encourage testers to use core flows across several days and publish at least one feedback-driven improvement before applying for Production.

### Step-by-step track progression workflow

1. **Export your first signed `.aab`** — On Starter or Pro, lock your package ID, `versionName: 1.0.0`, and `versionCode: 1`, then download the signed bundle via [Publish to Google Play](https://exaspark.ai/docs/google-play/).
2. **Smoke-test on Internal testing** — Upload `versionCode: 1` to **Internal testing**, add yourself and two teammates, and verify store install, login, and checkout within minutes.
3. **Promote to Closed testing** — Create a Closed track with 16–20 real Android testers, promote `versionCode: 1`, and wait for initial track review.
4. **Complete 14 consecutive opted-in days** — Share the Play opt-in URL, collect real feedback, ship fixes, and watch Play Console's dashboard counter reach 14 full days.
5. **Apply for Production** — Answer Google's Production questionnaire clearly (tester recruitment, feedback collected, improvements shipped) and submit to **Production**.

Make beta testing actionable by adding a compact feedback drawer during your closed test:

> **Example prompt (App):** Add a "Send beta feedback" button inside Account showing app version v1.0.0 and opening a modal where testers pick a screen, report bugs, and save feedback to a beta_feedback table in my Live database.

## Running staged production rollouts safely

Once Production unlocks, avoid pushing every future `.aab` straight to 100% of devices. Play Console's **staged rollout** limits initial exposure while you confirm real-world stability.

- **Start at 10% to 20%.** Watch Play Console **Android Vitals** alongside live traffic and errors in [Analytics & health](https://exaspark.ai/docs/analytics/) for 24 hours.
- **Expand gradually (`10% → 50% → 100%`).** Raise rollout percentage once crash rates stay flat and checkout succeeds normally.
- **Halt and hotfix fast.** Click **Halt rollout** if errors spike, repair the issue, increment `versionCode`, and upload a clean bundle.

Everyday UI, pricing, database, and backend updates go live immediately via [Publish, versions & rollback](https://exaspark.ai/docs/publish/). Upload a fresh `.aab` only when changing your app icon, launcher name, or native Play packaging settings.

## Troubleshooting signing and track errors

| Error or symptom | Likely cause | Fix |
| --- | --- | --- |
| **Version code X has already been used** | New `.aab` shares a `versionCode` with an earlier upload or discarded draft | Increment `versionCode` by 1 in your ExaSpark Android settings and rebuild the `.aab` |
| **Signed with the wrong key** | Bundle generated from a brand-new project or rotated key instead of the original listing's key | Rebuild inside the original ExaSpark project, or submit an Upload key reset request in Play Console |
| **Testers see "App not available" on opt-in link** | Tester is signed into a different Gmail account in Play Store, or track review is still pending | Confirm track status is **Available to testers** and have them switch to the exact invited Google account |
| **14-day counter stalled or Production access denied** | Fewer than 12 active opted-in testers, or thin answers on the Production readiness form | Maintain 15+ active testers, gather real usage feedback, ship visible improvements, and describe them specifically |
| **Play Console rejects `.apk` upload** | Uploaded direct QR test build instead of the production `.aab` | Export the signed `.aab` bundle on **Starter** or **Pro** and upload that archive to Play Console |

## Next steps

- [Publish to Google Play](https://exaspark.ai/docs/google-play/) — Complete walkthrough from ExaSpark project to live Play Store app.
- [Play Store listing & assets](https://exaspark.ai/docs/play-store-listing-assets/) — Prepare icons, feature graphics, screenshots, copy, and Data Safety forms.
- [Fixing Play rejections](https://exaspark.ai/docs/play-review-rejections/) — Resolve common Play Console review flags quickly and resubmit cleanly.

## From the blog

- [Turn a website into an Android app](https://exaspark.ai/blog/how-to-turn-a-website-into-an-android-app/) — End-to-end journey from ExaSpark build to installed Android users.
- [App launch checklist](https://exaspark.ai/blog/app-launch-checklist/) — Sequence beta testing, store launch, and first-week retention smoothly.
- [How to get your first users](https://exaspark.ai/blog/how-to-get-your-first-users/) — Turn early closed testers into active customers and word-of-mouth advocates.
