NoMaintenanceFirmwareUsbManager

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.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val supportsUf2Maintenance: Boolean = false

Whether this platform can run the multi-pass UF2 maintenance sequence (factory erase, OTAFIX bootloader upgrade) at all.

Functions

Link copied to clipboard
open override fun deviceDetachFlow(): Flow<Unit>
Link copied to clipboard
open suspend override fun ensureSerialPermission(waitMillis: Long): Boolean

Waits up to waitMillis for a serial device to be present and ensures the app holds USB permission for it, prompting the user when needed.

Link copied to clipboard
open suspend override fun serialPortKeys(): Set<String>

No UF2 maintenance flow: isRemovableDestination refuses before anything reaches here.

Link copied to clipboard
open suspend override fun unblockCdcPort(excluding: Set<String>, waitMillis: Long, holdMillis: Long): Boolean

Opens the port that appeared since excluding was captured and holds DTR asserted, so firmware waiting on a host will run.