fix(android): rotate helper signing identity

TH
36m ago
+518-199

Summary

Rotate the Android snapshot and IME helper package identities and remove the committed signing key. PR and local builds use caller-supplied or disposable keys. Block nightly and stable publishing before checkout or npm publish until an isolated signer with a stable external key can produce and verify both release APKs, checksums, and manifests. The helper asset workflow also refuses independently.

Preserve the user's keyboard across legacy-to-v2 IME recovery. An invalid restore target leaves a recovery marker and surfaces an incomplete-restore error when the helper remains active. Keep legacy non-ASCII text routing and custom snapshot instrumentation runners working.

Before / after

  • Before: The committed helper key and package identities were reusable, and a displaced legacy helper could leave v2 active without a restore error.
  • After: Helper identities are rotated, signing input is explicit, and unsafe IME recovery produces a typed failure. Release preflight stops publication until trusted signing exists.

Validation

Focused Android IME, snapshot, release workflow, and release asset tests passed (102 tests across seven files) before the final patch-identical restack. git range-diff confirms all 16 commits are patch-identical on #5245 af209edb827a0f82e69715c126c4d1167d5c6677; git diff --check passes. Head: b0ee2d10dedb2d27e2e0ce8b4e953b16dbcd6131. New-head CI and live Android verification are pending.

Nightly and stable publishing remain paused until the isolated signer, external key, and pinned certificate fingerprint are provisioned. Do not merge into an active release branch before that work and live Android verification.