David
David

Reputation: 2179

how to know is signature of all versions is same or not?

Here is explain what happened: first I published my app(v1.0) in cafebazzar.ir store (my country's store). we works with debug version there. then I start to work for v1.1 but I corrupt app. so I deleted my project' directory and pasted it from Backup. then I make new version of my app and published it. but I don't know the signatures of versions is same or not? sorry for bad English.

Upvotes: 0

Views: 79

Answers (1)

Mattia Maestrini
Mattia Maestrini

Reputation: 32810

Decompress your APK and get the file META-INF/CERT.RSA, than use keytool (you can find it inside bin directory of your JDK):

keytool -printcert -file META-INF/CERT.RSA

It returns the fingerprint of the certificate used to sign the APK

Owner: CN=Android Debug, O=Android, C=US
Issuer: CN=Android Debug, O=Android, C=US
Serial number: 10c06dd0
Valid from: Sat Oct 04 13:38:57 CEST 2014 until: Mon Sep 26 13:38:57 CEST 2044
Certificate fingerprints:
         MD5:  5B:6A:E3:89:16:48:DF:57:47:19:45:11:67:36:DC:E1
         SHA1: 7A:DC:81:60:44:F2:36:9A:C6:74:1E:CF:61:F2:FA:12:0E:23:E8:36
         SHA256: 5E:24:E8:A9:BE:C5:DD:A2:25:82:7C:A3:F1:50:DC:C1:0C:DF:F6:88:EB:9B:A5:08:F7:B3:97:64:EF:5E:6F:4F
         Signature algorithm name: SHA256withRSA
         Version: 3

Upvotes: 1

Related Questions