Skip to content

AOSP证书MD5

练亮斌 edited this page Jun 20, 2021 · 2 revisions
文件名 MD5
cts_uicc_2021 19:9B:F7:25:48:94:B0:1C:17:4E:89:82:E8:79:F8:3D
media 19:00:BB:FB:A7:56:ED:D3:41:90:22:57:6F:38:14:FF
networkstack 7B:02:C2:69:2A:3C:B6:D3:9C:58:DE:17:63:00:F4:5C
platform 8D:DB:34:2F:2D:A5:40:84:02:D7:56:8A:F2:1E:29:F9
shared 5D:C8:20:1F:7D:B1:BA:4B:9C:8F:C4:41:46:C5:BC:C2
testkey E8:9B:15:8E:4B:CF:98:8E:BD:09:EB:83:F5:37:8E:87
verity DB:18:D3:11:F5:07:48:95:95:B5:A4:50:BB:2D:C4:95
{
  "cts_uicc_2021": "19:9B:F7:25:48:94:B0:1C:17:4E:89:82:E8:79:F8:3D",
  "media": "19:00:BB:FB:A7:56:ED:D3:41:90:22:57:6F:38:14:FF",
  "networkstack": "7B:02:C2:69:2A:3C:B6:D3:9C:58:DE:17:63:00:F4:5C",
  "platform": "8D:DB:34:2F:2D:A5:40:84:02:D7:56:8A:F2:1E:29:F9",
  "shared": "5D:C8:20:1F:7D:B1:BA:4B:9C:8F:C4:41:46:C5:BC:C2",
  "testkey": "E8:9B:15:8E:4B:CF:98:8E:BD:09:EB:83:F5:37:8E:87",
  "verity": "DB:18:D3:11:F5:07:48:95:95:B5:A4:50:BB:2D:C4:95"
}

从OTA包计算证书MD5:

unzip -p OTA.zip META-INF/CERT.RSA | openssl pkcs7 -inform DER -print_certs | openssl x509 -fingerprint -md5 -noout

从AOSP代码计算证书MD5:

mkdir security
pushd security
wget https://android.googlesource.com/platform/build/+archive/refs/heads/master/target/product/security.tar.gz
tar -xzf security.tar.gz
ls *.x509.pem | xargs -n1 sh -c 'printf "%s  " "$0" ; openssl x509 -fingerprint -md5 -noout -inform PEM -in $0'
popd >/dev/null
Clone this wiki locally