Skip to content

Android Signing

Every Android build Primio makes is signed with your project’s upload key. Primio creates the key when it sets up your project, so APK and AAB builds are signed and ready to upload to Google Play without any setup. When you import a project that has its own keystore and key.properties, Primio uses that keystore instead.

Google Play keeps a separate app signing key through Play App Signing. It checks that each AAB you upload is signed with your upload key, then re-signs the app for your users.

You can see and change the upload key in Android signing:

  1. Open Project Settings

    Go to Workspace → Project Settings.

  2. Click “Android signing”

    The link is next to the Package name (Android) field. On mobile it’s labeled Signing.

Android signing shows the SHA-1 and SHA-256 fingerprints of your upload key’s certificate. Click the copy icon next to a fingerprint to copy it. You’ll need them for services such as Firebase and Google Sign-In.

The fingerprints are there as soon as your project is created or imported. When you change the key, the fingerprints change too. Replace the old values in Firebase and other services you registered them with.

If Android signing says Fingerprints aren’t available for this keystore format, your keystore uses an algorithm Primio can’t read the certificate from. Builds are still signed with it.

Upload your own keystore if your app is already on Google Play and signed with a key you created outside Primio. For example, use it after you import a project whose keystore wasn’t in the ZIP or couldn’t be used. Primio then signs your builds with that key, so you can keep publishing updates to the same app.

  1. Click “Upload your keystore”

  2. Choose the keystore file

    Click the file field or drop the file onto the form. The keystore must be in PKCS12 format. These files usually end in .p12 or .pfx. Recent versions of keytool and Android Studio also write PKCS12 to .jks and .keystore files.

  3. Enter the key alias and passwords

    Fill in Key alias, Store password and Key password. If you have the key.properties file from your Flutter project, click Fill from key.properties to fill them in from it.

  4. Click “Use this keystore” and confirm

Primio checks the keystore when you upload it. If something is wrong, the form shows it next to the field:

  • This is a JKS keystore: Primio accepts PKCS12 keystores only. Convert it with keytool, which comes with the Java JDK:

    Terminal window
    keytool -importkeystore -srckeystore upload.jks -destkeystore upload.p12 -deststoretype PKCS12

    Then upload upload.p12. A PKCS12 keystore made by keytool uses its store password for the key too, so enter the store password in both password fields.

  • This file isn’t a keystore Primio can read: the file is not a PKCS12 or JKS keystore. Check that you picked the right file.

  • Store password is incorrect or Key password is incorrect: check the password in the field the message appears under.

  • This keystore has no key with this alias: the form lists the aliases the keystore has. Enter one of them.

Click Generate new key and confirm to replace the upload key with a new one created by Primio. Use this if your upload key has been compromised or leaked. If your app is already on Google Play, request an upload key reset in Play Console so Google Play accepts builds signed with the new key.