You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Android] Audio sync fails when screen turns off during file transfer #5221
On Android, audio file sync/processing fails when the screen turns off during transfer. Users have to keep the screen on, phone charging, and avoid using other apps for sync to complete.
Steps to Reproduce
Have pending audio files on Omi CV1
Start sync with Wi-Fi transfer + Store Audio on Cloud
Let the screen turn off during transfer
Sync fails/stops
Current Workaround
Enable 'Stay Awake' in Android Developer Options
Battery optimization unrestricted for the app
Monitor progress manually
Expected Behavior
Sync should continue in background when screen is off (foreground service / wake lock).
VERIFY (2026-08-06) — not owned by #11127; maintainer-scoped
Checked against main + open #11127 (#7221) before pickup:
Path
Status
Phone-disk → cloud uploads while Flutter paused
Partially addressed by #11127 (syncLocalUploadsOnly / WakeTrigger.screenLockedGrace) — skips BLE device drain by design
CV1 → phone BLE/storage sync while screen off
Still broken — #9763RecordingTransferCoordinator is foreground-only (setForeground(false) on pause stops all wakes). No Android sync FGS / wake-lock acquire; BLE FGS keeps GATT but Dart drain dies
Wi-Fi “transfer”
No separate sync transport (SyncMethod is BLE); issue Wi-Fi likely means cloud upload on Wi-Fi
Recommendation: do not close #5221 via #11127. Real fix is a new Android sync foreground-service (+ wake lock) contract so WalSyncs.syncAll Phase 0–2 can survive screen-off — labeled maintainer, not a shrink-only residual after #11127.
Parking from my pickup queue; will cross-link from #7221 if useful after #11127 lands.
Activity
aryanorastar commentedon Aug 6, 2026
VERIFY (2026-08-06) — not owned by #11127; maintainer-scoped
Checked against
main+ open #11127 (#7221) before pickup:pausedsyncLocalUploadsOnly/WakeTrigger.screenLockedGrace) — skips BLE device drain by design#9763RecordingTransferCoordinatoris foreground-only (setForeground(false)on pause stops all wakes). No Android sync FGS / wake-lock acquire; BLE FGS keeps GATT but Dart drain diesSyncMethodis BLE); issue Wi-Fi likely means cloud upload on Wi-FiRecommendation: do not close #5221 via #11127. Real fix is a new Android sync foreground-service (+ wake lock) contract so
WalSyncs.syncAllPhase 0–2 can survive screen-off — labeledmaintainer, not a shrink-only residual after #11127.Parking from my pickup queue; will cross-link from #7221 if useful after #11127 lands.
fix(app): do not start another WAL drain after screen-off
harden(app): fence retired websocket connection attempts (#14843)
fix(app): keep Android recording sync alive while the screen is off
fix(app): do not start another WAL drain after screen-off
fix(app): keep Android recording sync alive while the screen is off (#…
fix(fork-flutter): retarget the reviewed replacements the sync moved,…
fix(android): stop the sync keep-alive when its foreground time limit…