Skip to content

After an app update: bring the web page back, nothing else #288

Closed

Description

@compot-dev

An update (adb install -r, a new APK from the release) stops the app. Until someone opens it again, nothing of it runs: no web page, so the device cannot be looked at from the network.

Decided (2026-11-19): after an update the app brings back by itself only what draws no traffic and starts no video — the web page; if that cannot be done, nothing.

  • Android sends ACTION_MY_PACKAGE_REPLACED to the updated app (allowed for manifest receivers and exempt from the background limits on starting a foreground service).
  • A process with only a receiver is cached and may be frozen or killed, so the page is kept by a small foreground service (a quiet notification "Web page on port N"); it stops as soon as the app's screen opens.
  • Only when Allow remote access is on; no camera streams, no camex tunnel, no activity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions