Package-level declarations
Types
Helper class to handle file operations related to firmware updates, such as downloading, copying from URI, and extracting specific files from Zip archives.
Manages USB-related interactions for firmware updates.
The FirmwareFileHandler work the Android and desktop handlers share: HTTP fetches into tempDir, and firmware extraction through the bounded extractFirmwareEntry. Subclasses say how a platform URI is opened.
A pinned legacy DFU SoftDevice+bootloader package for one board, and what its bootloader must report over DIS before it is written.
A SoftDevice or SDK fault the nRF52 bootloader recorded, from the Last-Fault: line of its INFO_UF2.TXT.
Installed bootloader against the latest release, or no comparison when the latest tag is not plain x.y.z.
The bootloader a mounted drive reports next to the one the upgrade would install.
Feature-local seam over core:datastore's BootloaderWarningDataSource, which is Preferences-backed and has no wasmJs variant: the radios whose bootloader warning the user dismissed.
Delegates to the Preferences-backed BootloaderWarningDataSource.
Default FirmwareUpdateManager that routes to the correct handler based on the current connection type and device architecture. All handlers are KMP-ready and work on Android, Desktop, and (future) iOS.
Platform-neutral handle for a firmware file or extracted artifact.
Abstraction over platform file and network I/O required by the firmware update pipeline. Implementations live in androidMain and jvmMain.
Downloads or imports a firmware image and unpacks it for the BLE update handlers, reporting progress and failures through the same states the handlers used to. ObtainedImage.artifact is the caller's to delete once the update ends.
Feature-local seam over core:datastore's FirmwareRecoveryDataSource, likewise Preferences-backed: the record of an interrupted BLE update that may have stranded a radio in its bootloader.
Delegates to the Preferences-backed FirmwareRecoveryDataSource.
Retrieves firmware files, either by direct download or by extracting from a release asset zip.
Common interface for all firmware update handlers (BLE DFU, ESP32 OTA, USB).
Routes firmware update requests to the appropriate platform-specific handler based on the active connection type (BLE, WiFi/TCP, or USB) and device architecture.
The transport mechanism used to deliver firmware to the device, determined by the active radio connection.
State machine for the firmware update flow, observed by FirmwareUpdateScreen.
ViewModel driving the firmware update screen. Coordinates release checking, file retrieval, transport-specific update execution, and post-update device verification.
The bootloader a running nRF52 device reports in DeviceMetadata.bootloader_version.
The FirmwareUsbManager of a host with no maintenance affordance at all, desktop and the browser: with no way to vet a bootloader volume and no CDC unblock, every maintenance operation below is a no-op, so the section is hidden rather than shown and then dead-ended. ensureSerialPermission is the exception: neither host has a USB permission model to preflight, so it succeeds trivially.
Represents the progress of a long-running firmware update task.
MeshLink over the app's radio connection.
Which leg of a multi-pass USB/UF2 sequence a file-save prompt belongs to.
Which maintenance affordances the Ready state should show, precomputed by the ViewModel.
Why a maintenance action cannot run. Surfaced as explanatory copy rather than silently hiding the action.
A maintenance operation the user can start from the Ready state.
Handles firmware updates via USB Mass Storage (UF2).