Search code examples
androidandroid-studioapkandroid-install-apk

Android run the code on release apk Signed By Google


I have app which is published already in Google Play store and the "App Signing by Google Play" is enabled... App Singing Docs

Which mean if someone download the app from store he will have different signature from what I have when creating Signed-apk from my android studio.

I have some device which have the APK signed by google and I want to run a new version over it from my android studio.. How can create apk with same Signature that App Google Signing use.

Downloadable certificate

Can I create jks file from the .der file ?


Solution

  • No, you can't create a keystore from a .der file: the der file only contains the pubic key whereas you need the private key to sign an APK.

    If you opted for Google to generate the app signing key, you won't be able to sign the APK yourself with that key since Google doesn't allow you to download the private key (for security reasons). So you will have to upload an APK to a closed track then download the generated APK either from the Play Store (if you're enrolled in that track) or from the Artifact Library in the Console.

    I would recommend to test locally with a different key so you can test the upgrade easily offline, then when you're ready to release, test on a closed track with the app signing key.