Garmin: Sync and archive some unknown files (#5824)

This is an attempt to prevent Instinct watches from becoming unstable as
time passes, since they start running out of memory.
This commit is contained in:
José Rebelo
2026-05-17 15:45:57 +01:00
parent 732bd40dca
commit d085e6ae72
3 changed files with 22 additions and 0 deletions
@@ -174,6 +174,16 @@ class FileSyncServiceHandler(val deviceSupport: GarminSupport) {
"FIT_TYPE_49", // SLEEP
"FIT_TYPE_61", // ECG
"FIT_TYPE_73", // SKIN_TEMP
// #5824 - We need to sync some files we don't handle, to prevent the watches
// from starting to have issues / run out of memory
"FIT_TYPE_58", // DEVICE_58
"FIT_TYPE_79", // SLP_DISR
"ErrorShutdownReports", // ERROR_SHUTDOWN_REPORTS
"FIT_TYPE_38", // SCORE
"FIT_TYPE_70", // HSA
"FIT_TYPE_71", // COM_ACT
"FIT_TYPE_82", // AREA_COURSES
"FIT_TYPE_35", // SEGMENT_LIST
)
}
}
@@ -70,6 +70,16 @@ public class FileTransferHandler implements MessageHandler {
add(FileType.FILETYPE.HRV_STATUS);
add(FileType.FILETYPE.SLEEP);
add(FileType.FILETYPE.SKIN_TEMP);
// #5824 - We need to sync some files we don't handle, to prevent the watches
// from starting to have issues / run out of memory
add(FileType.FILETYPE.DEVICE_58);
add(FileType.FILETYPE.SLP_DISR);
add(FileType.FILETYPE.ERROR_SHUTDOWN_REPORTS);
add(FileType.FILETYPE.SCORE);
add(FileType.FILETYPE.HSA);
add(FileType.FILETYPE.COM_ACT);
add(FileType.FILETYPE.AREA_COURSES);
add(FileType.FILETYPE.SEGMENT_LIST);
}};
public FileTransferHandler(GarminSupport deviceSupport) {
@@ -87,6 +87,8 @@ public class FileType {
FBT_PTD_BACKUP(128, 74),
SCHEDULE(128, 77),
SLP_DISR(128, 79),
AREA_COURSES(128, 82), // #5824
GEAR(128, 87), // #5824
// Other files
DOWNLOAD_COURSE(255, 4),