fix(android): restore screenshot demo permission state
Summary
Restore Android’s exact prior sysui_demo_allowed value after normalized screenshots, including absence. Preserve primary capture failures and report restoration failures through the existing error/diagnostic contract. Fixes #4427.
Seven files changed. Existing snapshot assertions move into focused files, and the Android smoke scenario records native setting restoration.
Validation
Head 0392e17704c5b52f2a3f4b12189c2ad77abb6f10; merge base eec35e9622c339a21b1a588794254f6bdf50d476.
Pinned pnpm 11.17.0 setup/build and exact affected validation passed: 68 focused, ten smoke-contract, 359 related and 19,498 unit tests passed; three unit skips. Receipt: exactCommit=true, checkoutChanged=false, failOpen=false. Identical focused tests passed 20 at head, failed two/passed 18 with predecessor production, then passed 20 after restoration. Independent source reviews found no findings.
Native CI evidence verifies API 36, matching absent/0/1 before-and-after rows, original-state restoration, and three 1080×2400 Settings PNGs showing 9:41. Ready-state Android smoke, Coverage and the other current-head checks completed without failures; historical draft skips are separate.
Maintainer review confirms the required evidence and intended failure behavior. All seven inline threads are resolved under that disposition. Historical failed receipts retain their unproven causes.