How to update an android app If you lose keystore file?

醉酒当歌 提交于 2019-12-24 19:40:50

问题


I am new to the Android ecosystem. To give you a more context about my problem, here are some facts.

  • I've received access to a google developer team, who released time ago an application.
  • Now, I want to release a new version of that.
  • The new version is a completely new app. Have the same functionality, but is developed by somebody else.
  • All setup is made correctly, including the bundle id of the app.

Now, the problem is related to APK signing. From what I understand I should use something named Keystore file to sign the app in order to be able to update the current app.

The problem here, is that I can't obtain this file, because the previous developer doesn't have it anymore.

My question is, what can I do in this case. Releasing as a new app is not an option.

Verry important, the last developer doesn't have the option to let google to manage the signing keys.

Thank you for your help!


I founded a related question, but the answers are old, so maybe, since then google may come up with a backup plan to recover this.

android - how to recover Keystore file


回答1:


You can't.

You'll need to release a new app with a new play store entry.

When you sign your APKs yourself, as soon as you upload any signed APK to the Google Play Store, all further uploads will require the same signing key.

This is also true if you upload an APK to the internal, alpha or beta test channels even without publishing the tests. Just the upload of the first APK will lock you in.




回答2:


Following are the steps to generate new keystores with the help of Google Play Console.

Step 1. First of all Goto this Link [https://support.google.com/googleplay/android-developer/contact/otherbugs] in which they are asking about

  • First Name
  • Last Name
  • Email Address
  • Developer Name
  • Developer Account ID
  • Location
  • App Name
  • App Package name

and select your issues in the context of mine i select(I have a key or keystore related issue-->I have an upload key-related issue-->I lost my upload key).

After Submitting our request they Send us Email in which they are telling that we have to do two steps-

In first step we open our command window in a specific folder and copy this below command and hit enter

keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks

after hitting enter we have to put key and password. it will generate .jks file

In Second step copy second query and paste it into command window and hit enter now it will generate a .pem

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

Step 3.

Now in the reply of email that Google Help Center send us attach .pem file

Step 4.

Now they register our new generated key but it will give some days to be valid.

Step 5.

Now Create signed apk with that key and upload to play store.



来源:https://stackoverflow.com/questions/58692560/how-to-update-an-android-app-if-you-lose-keystore-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!