Lost Your Google Play Upload Key? How to Reset It

· 5 min read

You go to ship an update and the keystore is gone: a wiped laptop, a lost password, a repo that never had it. If your app uses Play App Signing, this is fixable. Google’s words: “If you lose your upload key or suspect that it was compromised, you are not locked out of your app.”

This post walks through the reset and the Flutter changes afterwards. Signing is one part of the Google Play launch checklist.

First, which key did you lose?

Play App Signing uses two keys.

  • Upload key. “You use this key to sign your app bundle before uploading it to the Play Console.” You hold it.
  • App signing key. “Google uses this key to sign the final APKs delivered to users’ devices.” Google holds it.

If your app uses Play App Signing (required for apps created since August 2021, according to Android’s docs), the key on your laptop was the upload key. Google can reset it: “If compromised or lost, Google can reset it for you.”

If you opted out and manage the app signing key yourself, the news is bad: that key “cannot be reset if you manage it yourself and lose it.” Android’s docs say that without it “you will not be able to publish updates to your existing app.”

To check, open your app in Play Console and go to the Play app signing page. If it shows both an app signing key certificate and an upload key certificate, you are on Play App Signing.

Step 1: Create a new upload key

With Flutter’s documented command:

keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA \
        -storetype JKS -keysize 2048 -validity 10000 -alias upload

Or in Android Studio with Build, Generate Signed Bundle/APK, then Create new under the key store path. Android’s docs recommend a key valid “for at least 25 years.”

Use strong passwords and write them down somewhere safe this time.

Step 2: Export the certificate as PEM

Google needs the public certificate of the new key, not the key itself:

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

The .pem file contains only the public certificate. It is safe to upload. Never upload or share the .jks.

Step 3: Request the reset in Play Console

  1. Open your app in Play Console and go to the Play app signing page. Google’s current path is Protected with Play, then Play Store protection, then Manage Play app signing. Older guides call it Release, Setup, App signing.
  2. In the “Upload key certificate” section, click Request upload key reset.
  3. Enter the reason for the reset.
  4. Upload upload_certificate.pem and click Request.

Google’s help page says you need admin permission to configure Play App Signing. It does not say how long the reset takes to become active, so do not plan a release for the same afternoon. Wait for the confirmation before uploading a build signed with the new key.

Step 4: Point your Flutter build at the new key

Update android/key.properties:

storePassword=<new password>
keyPassword=<new password>
keyAlias=upload
storeFile=/Users/<you>/upload-keystore.jks

If your CI stores the keystore as a secret, replace that too. Then rebuild:

flutter clean
flutter build appbundle

Bump the build number in pubspec.yaml as usual. The update installs over the existing app for users, because Google still signs it with the same app signing key. Android’s docs confirm: “Resetting your upload key will not affect the app signing key that Google Play uses to re-sign APKs before delivering to users.”

Step 5: Update API providers if needed

Android’s docs note that a certificate fingerprint is “often requested by API providers alongside the package name.” Release builds installed from Play are signed with the app signing key, which has not changed. But if you registered the upload key fingerprint anywhere (some teams do for internal testing or direct installs), add the new one. Play Console shows MD5, SHA-1 and SHA-256 fingerprints for both certificates on the app signing page. If you use Firebase, see Firebase for Flutter with Claude Code for where those fingerprints go.

While you wait for the reset

You do not need to sit idle. Keep fixing bugs and preparing the next release, but do not upload a bundle signed with either the old or new key until the reset is confirmed. If you have a test track running, keep testers informed that the next build is delayed. And check that nothing in your repo history still contains the old keystore or key.properties, especially if you suspect it leaked.

If the key was compromised, not lost

The same reset applies. Request it as soon as you suspect a leak, and remove the old keystore from wherever it was exposed. If the app signing key itself may be at risk, Google offers a separate key upgrade on the same page, which is a different process.

Never lose it again

  • Keep the .jks and passwords in a password manager or secrets vault, not only on one laptop.
  • Keep key.properties and the keystore out of git. Flutter’s docs say plainly: “don’t check it into public source control!”
  • Store the keystore in CI secrets so builds do not depend on one machine. Flutter CI/CD for the App Store and Play shows one way.
  • Write down the alias. A forgotten alias is a surprisingly common reason a “lost” key is actually unusable.

If you are setting up signing for the first time, publishing a Flutter app on Google Play covers the full flow, and the mobile app security checklist covers secrets more broadly. MobileKit’s release-build skill creates the upload key outside the repo and reminds you to back it up.

Sources read on the day this post was written: Google Play: use Play App Signing, Android Developers: sign your app and Flutter: build and release an Android app.

Questions

Can Google reset a lost upload key?

Yes, if your app uses Play App Signing. Google says that if the upload key is compromised or lost, Google can reset it for you. You create a new key and request the reset in Play Console.

Does resetting the upload key affect my users?

No. Android's docs say resetting your upload key will not affect the app signing key that Google Play uses to sign the APKs delivered to users, so users keep getting normal updates.

What if I lost my app signing key instead?

If you manage your own app signing key and lose it, Google says it cannot be reset. With Play App Signing, Google holds that key, which is why the upload key can be replaced.

Try it on your next idea

One payment, every update to this major version, and a refund window if it is not for you. Refund policy.