Lesson 9 of 9 · 25m
Play Store Realities: Signing, Permissions, Privacy, and Rollout
Operate releases like production systems: key management, permission justification, privacy declarations, staged rollout, and crash triage.
Shipping to Google Play is not uploading an APK and waiting for applause. It is operating a distribution pipeline under policy, review, signing, device fragmentation, privacy disclosure, staged rollout, crash reporting, and users who will never send you logs. The engineering is only half the job; operational discipline is what keeps one bad release from becoming a week-long incident.
Signing is custody, not setup trivia
Play App Signing means Google manages the app signing key while you upload builds signed with an upload key. Losing the upload key is recoverable through a process; compromising it is a supply-chain problem. Keep credentials in a secrets manager, restrict access, and never commit them:
android {
signingConfigs {
create("release") {
storeFile = file(System.getenv("RELEASE_STORE_FILE") ?: "missing.jks")
storePassword = System.getenv("RELEASE_STORE_PASSWORD")
keyAlias = System.getenv("RELEASE_KEY_ALIAS")
keyPassword = System.getenv("RELEASE_KEY_PASSWORD")
}
}
}Use Android App Bundles (.aab) for normal Play distribution. Build reproducible release artifacts in CI and retain mapping files for every version.
Permissions need narratives
Runtime permissions are not dialog decoration. Request in context, explain why, degrade gracefully, and respect permanent denial:
val launcher = rememberLauncherForActivityResult(
ActivityResultContracts.RequestPermission()
) { granted -> viewModel.onCameraPermissionResult(granted) }Foreground service types, exact alarms, photo access, notifications, background location, and Bluetooth all have policy nuances. If the feature can work with a photo picker instead of broad media access, use the picker. Play reviewers and users both reward restraint.
Privacy declarations must match implementation
Data safety forms are legal-adjacent product artifacts. Audit analytics SDKs, crash reporters, ad libraries, authentication providers, and your own logs. "We don't collect it" is false if a dependency transmits device identifiers under the hood. Keep a privacy inventory in the repo and update it when dependencies change.
Staged rollout is incident management
Release to internal testers, then a small production percentage:
internal -> closed track -> 5% production -> 25% -> 50% -> 100%Monitor Android vitals, crash-free users, ANRs, startup time, uninstall spikes, reviews, and your own backend errors. Halt rollout early. A hotfix release is slower than a web deploy, so prevention matters more than clever rollback fantasies.
Crash reports require symbol discipline
Keep R8/ProGuard mapping files, native symbols, source lines, build IDs, and version metadata. Obfuscation without retained mappings turns production crashes into abstract art. Add breadcrumbs around purchase, sync, auth, and startup boundaries, but do not log personal data.
Field notes
- Version codes are monotonic operational identifiers; do not reuse them across tracks.
- A/B tests and remote flags can hide release regressions; include flag state in diagnostics.
- Test upgrades from the currently installed production version, not only clean installs.
- Policy review lag is real. Leave slack before launches that require permission or declaration changes.
- Read one-star reviews as unfiltered bug reports, but verify before treating them as statistically meaningful.
Was this lesson helpful?