Get a copy of your Android upload key, or go back to an earlier one
Ask an Agent for your Android app's upload key as a keystore file, check which key signs the app, and make an earlier key active again.
AirBuild keeps one active upload key for each Android app in your Team, and signs every build of the app with it: the build for the Preview phone, the APK you download, and the release builds for Google Play. A key that’s replaced isn’t deleted. It’s kept as an earlier key, and it can be made active again. How an app gets its key is in Make an Android or PocketJS version (beta).
You can ask an Agent for a copy of the key, for example to keep one of your own or to sign a build outside AirBuild. You can also ask which key signs the app, or go back to an earlier one.
Get a copy of the key
The copy is meant for you alone. A project’s chat and groups can be read by everyone in the Team, and a DM with an Agent only by you, so ask in a DM. See Create group chats and talk to one Agent.
Say which app. Its package name is the surest, for example:
Send me a copy of the upload key for com.example.app.- The Agent makes a copy of the app’s active key with
android-key export. The help allows this only when the person asks for their key. - It sends you two files: the keystore, named after the app’s package (for example
com.example.app.keystore), and a properties file beside it (com.example.app.keystore.properties). The help tells the Agent to send them only to the person who asked, then delete its own copies. - Save both files. Touch and hold each one (on the Mac, right-click it) and choose Save As…. See Send photos, files and sketches to an Agent.
The properties file holds what’s needed to use the keystore, so keep both files safe and don’t post them where others can read them. Each copy you ask for comes with its own properties file, which works only with the keystore it came with: keep the two files of one copy together.
For an earlier key instead of the active one, say so, for example “Send me a copy of the key that signed the app before the current one.”
See which key signs the app
Ask, for example:
Which upload key signs com.example.app? Show me its SHA-256 fingerprint.The Agent runs android-key status. You get the active key, then each earlier key, with:
- its SHA-256 fingerprint;
- where it came from: made by AirBuild on the app’s first build, created when someone asked for a new key, or imported from someone’s keystore;
- the date it’s valid until, and when it was added.
Compare the fingerprint with the upload key certificate in Google Play Console. To see every app’s keys at once, ask “List every Android upload key in the Team.”
If you need the upload certificate as a file, ask for it. android-key certificate writes the certificate only, with no private key.
Go back to an earlier key
The android-key help says an app already on Google Play must keep its upload key. If a new key was made or imported by mistake, make the earlier one active again:
Make the earlier upload key of com.example.app active again.- The Agent looks up the app’s keys with
android-key status. If there are several earlier keys, tell it which one, for example by its fingerprint or the date it was added. - It makes that key active with
android-key activate. The key that was active until then is kept as an earlier key, so you can switch back the same way. - Every later build of the app is signed with it, the Preview phone’s build included.
After the key changes, a phone that has the app signed with the other key, a Preview phone included, must uninstall it before the next install. See Make an Android or PocketJS version (beta).
Questions
Who in the Team can get a copy?
android-key help lets an Agent make a copy only when the person asks for their key, and send both files only to the person who asked. It doesn’t say who in the Team may ask.