Commit 12d47bc
fix(hud): keep phone WiFi lock asserted across the dial loop
Companion to the HUD WiFi-lock fix. Researched the failure (AOSP "Wi-Fi
low-latency mode" docs): without a WiFi lock the radio enters power-save / doze
when idle, so interactive packets (WS pongs, TCP SYNs) are dropped and the device
goes unreachable even while the CPU/app stay alive. A low-latency lock disables
power-save but is ONLY active while the app is foreground + screen-on -- which the
HUD always is (FLAG_KEEP_SCREEN_ON), so LOW_LATENCY is correct there (commit
f550101). The phone may be screen-off in a mount, so it keeps the HIGH_PERF lock
(no screen-on requirement); this just re-asserts that lock every dial-loop tick so
an OS reclaim / network hop can't silently leave the phone radio in power-save.
Both modules compile. Field-test only (no emulator radio power-save).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GADLyChheAoMX9dQbRgRnH1 parent f550101 commit 12d47bc
1 file changed
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
426 | 431 | | |
427 | 432 | | |
428 | 433 | | |
| |||
0 commit comments