android - test if a specific key was used to sign an .apk file -


i have .key file , signed .apk file (android phongap application built using phonegap build).

how can check if .apk signed using key?

you retrieve , compare fingerprints of public keys included in apk file , key file.

for apk:

  1. unpack file /meta-inf/cert.rsa apk.
  2. use keytool -printcert -file cert.rsa compute sha1 + md5 fingerprints.

for key file:

  1. run keytool -list -v -keystore <keystore file> -alias <key alias>.
  2. input keystore password.
  3. this output sha1 + md5 fingerprints. if omit -v md5 fingerprint printed.

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -