How to check an App Guard protection receipt when one is issued
Verification steps for an Android output APK delivered with a signed receipt after a completed assisted qualification.
When a receipt applies
A request, upload or job status is not a protected artifact. When a completed assisted Android qualification issues both an output APK and a signed receipt, use the receipt to verify the delivered artifact. The issued receipt records the input digest, protection plan, output digest and signing identity.
What to check when you receive an output APK and signed receipt
- Use the output APK and signed receipt issued for the same completed qualification.
- Compute the APK SHA-256 (for example
sha256sum app-protected.apk) and compare it with the receipt's output digest. The values must match. - Verify the APK signing certificate with
apksigner verify --print-certs app-protected.apkand compare it with the certificate recorded in the receipt and agreed for your app. - Where a verification key was issued for that specific completed qualification, validate the receipt signature against it. Without that qualification-bound key, do not treat the presence of a signature field as verification.
What the receipt proves
For an issued receipt, a matching digest and validated signature bind the APK in your hands to the output described by that receipt, under the recorded plan and signing identity. Keep the receipt with the release so build, security and audit teams can verify the same artifact. If either artifact is missing or validation fails, do not treat the request as protection evidence.