Repository navigation
feat: after an update the web page comes back by itself, nothing else (2.27.0) - #289
Conversation
… (2.27.0) The owner's rule (2026-11-19): after an app update bring back only what draws no traffic and starts no video. BootReceiver also takes MY_PACKAGE_REPLACED and starts WebService: a foreground service (specialUse, a quiet notification) that keeps DebugServer until the app's screen opens; no camera, no camex tunnel, no activity; nothing with Allow remote access off. A force-stopped app gets no broadcast, so nothing comes back then. tests/e2e.sh: the same APK installed over the running app: the page answers, no camera is read, no tunnel, no screen. Closes #288
PR Summary by QodoRestore only the web page after an app update
AI Description
Merge Risk
|
Code Review by Qodo
1. Users see no web-page notification
|
…test counts camera reads from before it WebService.refresh() follows the port the page settles on (taken: the next free one) and says when none is free; tests/e2e.sh takes the camera reads before the update, so a camera started by it is counted; docs: the notification shows where the app may post notifications, the page runs either way.
|
Qodo review on 9aa04e8:
Local: build, unit tests, lint (13 as before); e2e TCP API 34 20/20, TCP API 21 20/20. |
Closes #288. The owner's rule (2026-11-19): after an app update the app brings back by itself only what draws no traffic and starts no video — the web page; otherwise nothing.
BootReceiveralso takesACTION_MY_PACKAGE_REPLACED(sent only to the updated app; starting a foreground service from it is exempt from the background limits) and callsWebService.startAfterUpdate.WebService: a foreground service (specialUse, with the subtype property; a quiet notification "Web page on port N (updated; open to play)" that opens the app) keepsDebugServer, since a process with only a receiver is cached and may be frozen or killed. It stops when the app's screen resumes. Nothing starts with Settings → Allow remote access off or while the app is open. No camera, no camex tunnel, no activity.MY_PACKAGE_REPLACEDincluded: then nothing comes back until the app is opened (documented).FOREGROUND_SERVICEandFOREGROUND_SERVICE_SPECIAL_USE(the camex library declares them too).docs/debug.md,docs/testing.md.Tests (local, Docker):
testDebugUnitTest lintDebug assembleDebug: pass, lint 13 warnings as before.tests/e2e.shinstalls the same APK over the running app: the page answers on 8085 (throughadb forward, with the password), no new camera read, notun0, no resumed activity.TRANSPORT=TCPAPI 34: 20 passed;TRANSPORT=TCPAPI 21: 20 passed; UDP API 34: 19 passed.