fix(ci): stable debug keystore for Android APKs so updates install #1152
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/android-stable-debug-keystore"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem\nEvery CI debug APK was signed with a different throwaway key: the android job runs in an ephemeral
gradle:8.13-jdk21container and AGP regenerated\$HOME/.android/debug.keystoreper run (verified: 3 cached CI APKs -> 3 distinct signer certs, none matching the local dev keystore). Installing any new build over an existing one failed on-device withINSTALL_FAILED_UPDATE_INCOMPATIBLE(user-facing: "App not installed").\n\n## Fix\n- Copy one persistent debug key (/home/chris/git/.android/debug.keystore, same key local dev builds use) into$HOME/.androidbefore the Gradle build; generate it on first use if missing.\n- KNOWN_ISSUES: ISSUE-121.\n\n## Verification\n- Emulator: fresh install +install -rupdate with the stable key both succeed; install over an old random-key build fails as before (one-time uninstall needed on existing devices).\n- Step script executed locally with a clean $HOME -> copies the canonical key (fingerprint3B:E7:73:...).CI builds ran in ephemeral containers that regenerated ~/.android/debug.keystore per job, so every debug APK shipped a different signing key and updating over an existing install failed on-device with INSTALL_FAILED_UPDATE_INCOMPATIBLE ("App not installed"). Copy one persistent debug key into $HOME/.android before the build; it is the same key local dev builds use (ISSUE-121).