feat(connection): ADB foreground fallback on the watchdog cadence when the protocol push is silent (store priority protocol > ADB); audio-playback hint filtered through SYSTEM_MEDIA_PACKAGES (P3-2b,c)

This commit is contained in:
James Mackay committed 2026-10-08 10:33:38 +01:00
1 parent f1e49a661b
commit 8885ddd5b5
3 files changed
+51 -4

No files matched your search

+6
View File
@@ -39,6 +39,8 @@ class FakePoller:
self.sessions: list[MediaSessionInfo] = []
self.apps: list[dict] = []
self.audio_dump = ""
self.foreground: str | None = None
self.foreground_calls = 0
self.head_lines_used: int | None = "unset"
async def connect(self) -> bool:
@@ -76,6 +78,10 @@ class FakePoller:
async def poll_running_apps(self) -> list[dict]:
return list(self.apps)
async def poll_foreground(self) -> str | None:
self.foreground_calls += 1
return self.foreground
async def send_media_command(self, command: str) -> bool:
return self.connected