Milestone 4.1 / 4.2 session notes (2026-11-15)
Recorded at the user’s request at the end of the session that built the
enhanced tier (adb set-up, shell helper, mirroring, app streaming, phone
audio). Status and open items are also in docs/roadmap.md “Milestone 4
phasing and status”; this file keeps the session’s own account, including
what went wrong during testing.
Privacy incidents during the Android agent’s device tests
The test phone is the user’s daily phone. During the automated tests of the shell helper on it:
- WhatsApp chat lines. A UI-dump command (
uiautomator dump --display-id N) ignored its display argument on this build and dumped the phone’s main screen, which was showing a WhatsApp conversation. Several message lines landed in the agent’s test output. The agent removed that option from the test tool and deleted the dump on the phone, and did not repeat the content. Nothing of it is in the repository or in the reports. - The user’s own playback. Something was playing on the phone, so the three audio test captures recorded it. The agent measured levels only and deleted the files. The phone speaker was silenced for about 10 s in total.
- Clipboard value. One captured frame showed a clipboard “paste suggestion” chip in Calculator; the frame was deleted.
- App list. The installed apps (63) were listed through the CLI to verify the feature, so those names passed through the session.
- Recents. Calculator, Clock and Settings were opened on virtual displays and appear in the phone’s Recents.
Rules for device tests from now on
- Never capture, dump or screenshot the phone’s main display in automated tests. Use a virtual display the test created, and verify that a tool honours its display argument on a harmless screen before relying on it.
- Audio capture tests only while nothing is playing, or with a test tone the test itself starts; say so before running them.
- Do not read the clipboard in tests; write a test string and read that back, and say that the clipboard was overwritten.
- Prefer a spare phone or an emulator for anything that reads content.
- Tell the user before a test run what will be visible or audible on the phone, and report afterwards what was touched.
What works against the phone (Galaxy A55, Android 16 / One UI 8.5)
- The daemon sees all ten helper abilities, including virtual displays, app start and three audio sources.
- The app list arrives from the phone through the daemon.
- Calculator opened in its own window on a virtual display (450x800, decoded
by
nvh264dec). - At helper level (agent’s tests): several mirrors at once, resize, app-closed detection, and typing into app displays (15/15 keys, 15/15 text, 6/6 paste fallback). The Android 16 typing bug (scrcpy issue 6909) did not reproduce.
- All three audio sources produce valid Opus with real audio at helper level.
- 234 desktop tests and the Android unit tests pass.
- From M4.1, verified by the user: USB set-up, whole-screen mirroring with input, Wireless debugging pairing by QR and mirroring over Wi-Fi (after the stale-port and re-arm fixes).
Not verified yet
- Apps tab against the real phone: search, open an app, resize its window, type, press Back, close the app from the phone.
- Pin to desktop: the launcher appears and opens the app.
- Phone audio through the daemon on the PC: latency, crackle, whether the phone goes silent.
- A call during phone audio: capture should pause and resume.
- An app that is already open on the phone’s own screen.
Also unverified: StartApp on the main display, landscape-only apps,
physical rotation of the whole-screen mirror, re-arm of Wireless debugging
after a phone reboot, Samsung Auto Blocker, measured latency, Wayland
(window class of pinned apps, dmabuf path), VA-API decoders.
Things to know
- Closing an app window destroys that app’s display and its content; there is no “keep it on the phone” option yet.
- With the playback sources, ringtones, alarms, notification sounds and voice calls stay on the phone. The “output” source takes everything.
tether-cli appandmirrorused to start the installed app fromPATH, which did not know--app. They now prefer thetetherbinary next totether-cli.- The Wayland window class for pinned apps is untested.
- USB debugging authorisation flipped to “unauthorized” twice during the session (after cable replugs and debugging toggles); accepting the prompt with “Always allow from this computer” fixes it.
- A short network outage stopped all three build agents mid-work; they were resumed with their context and their trees were intact.