getapkinfo.sh

应该是可以在 Ubuntu 和 macOS 下都能跑的,需要 Android SDK 的支持。

 

一条评论


  1. 文中计算证书 MD5 的方法是有缺陷的,因为 CERT.RSA 文件可能会变化,所以还是使用传统的证书的 MD5 值为佳。

    certMd5=unzip -cqq "$apk" "$certFile" | openssl pkcs7 -inform DER -print_certs | openssl x509 -noout -fingerprint -md5 -inform pem | sed -e "s/.*=//g" -e "s/://g"

    回复

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注