Safaa Omar
Safaa Omar

Reputation: 23

I have two keystore files, but I forgot which one I used to sign the APK

I need to update my app on Play store, but I forgot that which Keystore I used to sign the APK. is there any way to identify this?

Upvotes: 1

Views: 49

Answers (3)

Prashant Sable
Prashant Sable

Reputation: 1013

To know the keystore you used for siging the APK, You need to identify SHA1 key of keystore. Unzip the APK and open "META-INF" folder in terminal. Run the following command: -

keytool -printcert -file CERT.RSA

This will print the SHA1 key. Just verify this key with your both keystores. To know the SHA1 of the keystore use following command in terminal: -

keytool -exportcert -alias aliname -keystore youkeystore.jks | openssl sha1 -binary | openssl base64

Upvotes: 1

Dhaval Solanki
Dhaval Solanki

Reputation: 4705

Just try with both one by one increasing version, Like first create sign APK with first one upload it on play store console if google throw exception then increase version code and try with second one and upload again on play store.
As if you are saying Keystore from you have then it will be match and your problem will be fixed.

Upvotes: 0

Ganesh Pokale
Ganesh Pokale

Reputation: 1594

try to use one keystore and build apk and upload to playstore alpha/internal test if selected keystore is incorrect play store throw exception

Upvotes: 1

Related Questions