List APK signing certificate fingerprint so users can verify releases
Use case
I'm installing this app via Obtanium / sideloading, and I'd like to make sure the APK I install is genuinely signed by you (and not a tampered or repackaged build).
To verify this, I use a certificate-fingerprint check (e.g., AppVerifier, or keytool -printcert -jarfile app.apk on desktop). For that to work, I need the signing certificate's fingerprint published somewhere I can compare against.
Proposed solution
Please add the SHA-256 fingerprint of the signing certificate (SHA-1 is a fine bonus) to the README and/or the Releases page, e.g.:
Hi, just wanted to check if there's any progress on this!
The GitHub Releases page already provides SHA-256 of the file, so you can just check that against your downloaded APK itself instead of APK signature.
There is an important distinction between an APK's SHA-256 checksum and the SHA-256 fingerprint of its signing certificate. They serve different purposes.
1. SHA-256 checksum of the APK
This identifies the exact APK file. Any modification, even a minor change in a new release, produces a completely different hash.
Therefore:
- It needs to be regenerated and published for every release.
- It only verifies the integrity of a specific file.
- It does not independently establish authenticity if both the APK and its checksum come from an untrusted source.
2. SHA-256 fingerprint of the signing certificate
Android APKs are digitally signed using a private key, and the corresponding signing certificate is embedded in the APK.
Its SHA-256 fingerprint identifies the signing certificate rather than the individual APK file.
This is much more useful for verifying authenticity across releases, provided the developer continues using the same signing key.
Users can retrieve the fingerprint with:
apksigner verify --print-certs MaterialFiles.apk