Skip to content

[Android] Audio sync fails when screen turns off during file transfer #5221

Closed

Description

@omi-discord-vector

Description

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

  1. Have pending audio files on Omi CV1
  2. Start sync with Wi-Fi transfer + Store Audio on Cloud
  3. Let the screen turn off during transfer
  4. 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).

Environment

  • Android, CV1, latest firmware + beta app
  • Both BT and Wi-Fi transfer affected

Source: Discord #files-not-syncing

Activity

  1. added
    bug
    on Feb 27, 2026
  2. added
    capture
    maintainer
    p2
    on Feb 28, 2026
  3. aryanorastar commented on Aug 6, 2026

    @aryanorastar
    Collaborator

    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 — #9763 RecordingTransferCoordinator 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.

  4. added 2 commits that reference this issue on Sep 19, 2026
    2b30c96
    d20ac86
  5. added a commit that references this issue on Sep 20, 2026
    09ecaab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcapturemaintainerp2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions