Determine if the APK is signed
With command: jarsigner-verify-verbose-certs <apk file >
If there is an Android debug word is debug
If signed: [Certificate is valid for 13-8-31 2:31 to 41-1-16 2:31]
Determine if the APK signature is consistent
JDK needs to be installed;
to check the fingerprint of the signature used by demo.apk, you can do this:
1. Find the RSA file in apk
Windows Platform:
> Jar TF demo apk |findstr RSA
Linux platforms:
$ jar TF demo. apk |grep RSA
Meta-inf/cert. RSA
2. Unzip the RSA file from the APK
Jar XF Demo apk meta-inf/cert. RSA
3. Get the fingerprints of the signature
keytool-printcert-file Meta-inf/cert. RSA
Certificate thumbprint:
Md5:5a:5a:96:63:8e:ef:fc:66:9e:bc:1c:2a:a9:1e:e5:95
Sha1:44:bd:33:2d:c5:21:ae:78:d5:04:92:1a:39:fd:ac:01:e2:32:3c:ab
sha256:2f:c0:a3:8c:0d:42:84:70:48:78:44:a4:2e:64:5b:50:b3:b3:1e:33:94:62:a3:9f:2f:10:dd:ef:d7:cf:02:0b
Signature Algorithm Name: Sha1withrsa
Version: 3
two apk is the same as the signature, compared to the signature MD5 code or SHA1 code, the same is the same, conversely, not
Android Determines if the APK is signed and signed consistently