AndroidFirmwareFileHandler
Helper class to handle file operations related to firmware updates, such as downloading, copying from URI, and extracting specific files from Zip archives.
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.
Accepts only a Storage Access Framework document on a non-primary external volume.
Read the raw bytes of a FirmwareArtifact.
Reads a file sitting alongside the documents in treeUri, or null when it is absent or unreadable.