{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiaiq6yjruwo724qoq4m6bfejmhkcxhr3l7nqkf62wopzikv6wourq",
    "uri": "at://did:plc:34cg4tn4iwemk3v5k3n3adwf/app.bsky.feed.post/3mnmlavg57ep2"
  },
  "path": "/t/troubleshooting-a-failing-build-apk-signature-scheme-v2-signer-1-apk-integrity-check-failed-chunked-sha256-digest-mismatch/34422#post_1",
  "publishedAt": "2026-06-06T10:40:44.000Z",
  "site": "https://forum.f-droid.org",
  "textContent": "Greetings,\n\nI’m having some trouble verifying the signed APK for my application in the fdroiddata CI build, the error message is as follows:\n\n> `DOES NOT VERIFY`\n>\n> `ERROR: APK Signature Scheme v2 signer #1: APK integrity check failed. CHUNKED_SHA256 digest mismatch. Expected: <552be62d5da75c98b6ea6442d66c2eae5b395da4f76b243685d567916d82c1dd>, actual: <c5badfcb3671bb3851a639f58409b7dfce373d3206e6a4530240d96958dd285c>`\n>\n> `2026-06-04 17:06:23,674 ERROR:`\n>\n> `/tmp/tmp545gi1aq/sigcp_com.algol.obliquestrategies_1.apk:`\n>\n> `2026-06-04 17:06:23,674 INFO: ...NOT verified - /tmp/tmp545gi1aq/sigcp_com.algol.obliquestrategies_1.apk`\n>\n> `2026-06-04 17:06:23,918 DEBUG: > diff -r /tmp/tmp545gi1aq/tmp_binaries_com.algol.obliquestrategies_1.binary /tmp/tmp545gi1aq/_tmp_tmp545gi1aq_sigcp_com.algol.obliquestrategies_1`\n>\n> `2026-06-04 17:06:24,120 WARNING: Keeping failed build \"tmp/com.algol.obliquestrategies_1.apk\"`\n>\n> `2026-06-04 17:06:24,120 DEBUG: removing tmp/binaries/com.algol.obliquestrategies_1.binary.apk`\n>\n> `2026-06-04 17:06:24,159 ERROR: Could not build app com.algol.obliquestrategies: compared built binary to supplied reference binary but failed`\n>\n> `==== detail begin ====`\n>\n> `verification of APK with copied signature failed`\n>\n> `Comparing reference APK to APK with copied signature...`\n>\n> `Unexpected diff output:`\n>\n> `diff -r /tmp/tmp545gi1aq/tmp_binaries_com.algol.obliquestrategies_1.binary/content/META-INF/version-control-info.textproto /tmp/tmp545gi1aq/_tmp_tmp545gi1aq_sigcp_com.algol.obliquestrategies_1/content/META-INF/version-control-info.textproto`\n>\n> `4c4`\n>\n> `< revision: \"97e6c91b176227e21e4b340e923aba92a81e74b2\"`\n>\n> `---`\n>\n> `> revision: \"bb73b6453b8b14699aa04993e456a0b5453015a1\"`\n>\n> `Binary files /tmp/tmp545gi1aq/tmp_binaries_com.algol.obliquestrategies_1.binary/content/assets/dexopt/baseline.prof and /tmp/tmp545gi1aq/_tmp_tmp545gi1aq_sigcp_com.algol.obliquestrategies_1/content/assets/dexopt/baseline.prof differ`\n>\n> `Binary files /tmp/tmp545gi1aq/tmp_binaries_com.algol.obliquestrategies_1.binary/content/classes.dex and /tmp/tmp545gi1aq/_tmp_tmp545gi1aq_sigcp_com.algol.obliquestrategies_1/content/classes.dex differ`\n>\n> `==== detail end ====`\n\nAfter researching the error message I did find some posts stating that APKs signed from Android Studio could cause issues, after which I built a new signed APK from the terminal and uploaded that to the release, but I’m still getting this error, and couldn’t find much else online on this.\n\nThanks in advance for any suggestions and help.",
  "title": "Troubleshooting a failing build (APK Signature Scheme v2 signer #1: APK integrity check failed. CHUNKED_SHA256 digest mismatch)"
}