Reproducible build fails with CHUNKED_SHA512 digest mismatch

Hi, I’m having an issue with the reproducible build in MR !46722:

The build itself succeeds, but the reproducible-build verification fails during the signature-copy step:

DOES NOT VERIFY
APK Signature Scheme v3 signer #1:
APK integrity check failed.
CHUNKED_SHA512 digest mismatch.

I checked the APKs:

APK Comparison

Category Count
APK 1 files 1803
APK 2 files 1800
Identical 1800
Changed 0
Only APK 1 3
Only APK 2 0

Changed files

No changed files.

Only in APK 1

  • META-INF/MANIFEST.MF
  • META-INF/TEST.RSA
  • META-INF/TEST.SF

Only in APK 2

None.

The DEX files are also identical, and zipalign passes.

The reference APK itself verifies correctly with v2/v3.

What could be causing the CHUNKED_SHA512 digest mismatch during the signature-copy step, despite the APK contents being identical?

No need for Forum post, continue there

It needs a zipalign.py fixup