Signing an APK with an upload key provided by Google Play

I was able to sign my APK using Upload key provided by Google Play. Here are the steps I followed for a new app:

  1. Create a keystore and add a signing key using Android Studio
  2. Sign the app using the key created in (1)
  3. Upload the APK to Google Play
  4. Download “Upload certificate” from Google Play Console
  5. Add downloaded certificate to the keystore created in step (1) using command
    keytool.exe -importcert -file upload_cert.der -keystore <keystorefile>
  6. It should prompt that “Certificate already exists in keystore under alias . Do you still want to add it? [no]:”
  7. Type ‘y’ and press enter
  8. A confirmation message will appear
  9. For subsequent builds sign the app using the same process as in (2)

Important point to note here is that in step (6), the keytool import updates the original certificate with the one downloaded from Google Play.

Leave a Comment