Skip to content

Install the new APK over the previous one and confirm the upgrade path #117

Closed

Description

@lumenpearson

Part of #109.

The upgrade path is verified by keys rather than by an installation. Nobody has installed a new build over an old one on a phone that already held a class.

What should be true:

The trap that makes this worth doing at all: a debug-signed build is never an update of another one. Two debug-signed builds from different machines carry different keys, and Android refuses the install rather than explaining why. docs/build.md says so now, and the APK workflow warns when it falls back to the debug key and refuses to publish a release that way — but the failure mode on a phone is a flat «не удалось установить», which is exactly the message that makes people reinstall from scratch and lose the thing this issue is about.

So: do it with two builds signed by the same key, and separately confirm that two debug-signed ones really do refuse each other, because that is the sentence the documentation now asserts.

Activity

  1. lumenpearson commented on Sep 26, 2026

    @lumenpearson
    OwnerAuthor

    Seen on an emulator (AVD Pixel_10_Pro_XL, API 37 (google_apis_playstore, x86_64, 1344×2992 at 480 dpi), 26–27 September 2026).

    • A debug build of fa4fe0c (before Read «Сетевой город» as a second diary, and let a phone in through its own school's diary #140) was set up with the old first run done, «9А» joined and the tabs rearranged. bd7c816 was then installed over it with install -r. The class stayed, the first run did not come back, the tab order held, and the first sync was a 304.
    • A later install over a build with a widget on the home screen kept the widget drawing, without it being added again.
    • The same APK re-signed with a fresh debug keystore was refused with INSTALL_FAILED_UPDATE_INCOMPATIBLE: … signatures do not match newer version, and the installed app was untouched, which is what docs/build.md says.

    Both builds were signed with this machine's debug key; the release keystore lives in CI. Closes with #186.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions