JvmFirmwareFileHandler
Functions
Return true if url is reachable (HTTP HEAD check).
Remove all temporary firmware files created during previous update sessions.
Copy source to the platform URI destinationUri, returning the number of bytes written.
Delete a single firmware file from local storage.
Extract a matching firmware binary from a platform URI (e.g. content:// or file://) zip archive.
Extract a matching firmware binary from a previously-downloaded zip FirmwareArtifact.
Fully expands artifact into memory, keyed by entry name.
Resolve a user-visible display filename for uri, or null when the provider does not expose one.
Return the size in bytes of the given firmware file.
Copy a platform URI into a temporary FirmwareArtifact so it can be read with readBytes. Returns null when the URI cannot be resolved.
True when destinationUri can still be opened for reading.
Always false on desktop: there is no Storage Access Framework to classify a volume with, and the multi-pass UF2 maintenance flow is Android-only. Refusing is the fail-closed answer, consistent with DesktopFirmwareUsbManager reporting the CDC unblock unsupported.
Read the raw bytes of a FirmwareArtifact.
Directory-based equivalents of the Android tree operations. Reachable only if a desktop maintenance flow is ever built — isRemovableDestination refuses first today — but implemented rather than stubbed so the behaviour is obvious to whoever gets there.