App Signing by Google Play: Trust Google with Your Keys

App Signing by Google Play separates your app's identity from the key you use for uploads. Google manages the final, user-facing signing key, which is mandatory for new apps. The footgun is thinking your upload key is the final key; losing it is recoverable.
WHY IT EXISTS Before this system, if a developer lost their app's signing key, they could never publish an update to that app again. The app was permanently orphaned, forcing them to publish a new app under a new package name and lose all their users and ratings. App Signing by Google Play was created to prevent this catastrophic, unrecoverable failure mode.
THE MENTAL MODEL Think of it like a bank's safe deposit box system. The app signing key is the master key held securely in the bank's (Google's) vault. Your upload key is your personal key that gets you past the front desk to prove your identity. If you lose your personal key, the bank can verify your identity and issue you a new one. You can't access the master key directly, but you don't have to worry about losing it, either.
HOW IT WORKS When you opt into App Signing by Google Play (which is mandatory for new apps), you designate an app signing key. Google can generate this for you, or you can upload your existing one. You also create a separate upload key, which you keep private. To release an update, you build and sign an Android App Bundle (.aab) with your upload key and upload it to the Play Console. Google verifies the signature from your upload key. Then, Google uses the official app signing key to sign the final, optimized APKs that are delivered to users' devices.
WHEN TO USE IT It is mandatory for all new apps submitted to Google Play since August 2021. It is the standard, secure way to manage your app's identity and allows you to use the modern Android App Bundle format, which helps reduce app size.
WHEN NOT TO USE IT You can't opt out for new apps. For very old apps still using the APK format, you might still be self-managing your key, but migrating to App Signing is strongly recommended to avoid the risk of permanently losing your key.
ONE CANONICAL EXAMPLE A developer's laptop, containing their upload keystore, is stolen. Because they use App Signing by Google Play, this is not a disaster. They can contact Play Console support, prove their identity as the account owner, and request that their upload key be reset. Google will revoke the old key and allow the developer to generate and register a new one. They can then resume publishing updates. Without this system, they would be locked out of their own app forever.
Read the original → developer.android.com
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.