I have an app which is signed and several keystore files. I’d like to update the app, so I need to find out which one of keys was used.
How can I match which keystore was used to originally sign my app against various keystores I have on my machine?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, unzip the APK and extract the file /META-INF/ANDROID_.RSA (this file may also be CERT.RSA, but there should only be one .RSA file).
Then issue this command:
You will get certificate fingerprints like this:
Then use the keytool again to print out all the aliases of your signing keystore:
You will get a list of aliases and their certificate fingerprint:
Voila! we can now determined the apk has been signed with this keystore, and with the alias ‘android_key’.
Keytool is part of Java, so make sure your PATH has Java installation dir in it.