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
Transfer to Phone on firmware 3.0.17-3.0.19 reads nothing and reports 'Transfer complete' #22306
On an Omi pendant with firmware 3.0.17 to 3.0.19 (the multi-file storage protocol), open Offline Sync, tap a recording that is still on the device, and press Transfer to Phone. The app shows "Transfer complete! You can now play this recording." and closes the page, but nothing was read from the device. The recording is still only on the pendant, and no audio reached the phone.
Steps
Use a pendant on firmware 3.0.17 to 3.0.19 that has recordings in device storage. With auto-sync off, they stay listed.
Open Offline Sync, tap a device recording, and press Transfer to Phone.
Expected: the recording is copied to the phone, or the app says the transfer failed.
Actual: "Transfer complete", and no CMD_READ_FILE (0x11) is ever sent to the device.
StorageSyncImpl.refreshWalsFromDevice lists these recordings as WalStorage.sdcard with a 0-based fileNum (storage_sync.dart:214-229, omi_connection.dart:559).
WalSyncs.syncWal (wal_syncs.dart:373-379) only special-cases fileNum == -1 (ring) and sends every other sdcard recording to SDCardWalSyncImpl.syncWal.
SDCardWalSyncImpl.syncWal (sdcard_wal_sync.dart:942-946) looks the recording up by identity in its own list, doesn't find it, and returns null.
SyncProvider.transferWalToPhone ignores the null, and WalItemDetailPage._handleTransferToPhone shows the success message.
The intended handler, StorageSyncImpl.syncWal, is never reached. It also discards _syncSingleFile's completion result, so even if it were reached it would never mark the recording synced or delete it from the device, and the next sync would download it again.
History: #6656 reported this path on 3.0.17 as Transfer failed: Bad state: No element. #6803 replaced .first with return null, which turned that crash into the false success above. a1f18aa (#7218) fixed the same misroute for ring recordings (3.0.20+) only.
I found this by reading the code; I don't have a 3.0.17 to 3.0.19 pendant to reproduce it on hardware.
Activity