AndroidFirmwareFileHandler

class AndroidFirmwareFileHandler(context: Context, client: HttpClient) : FirmwareFileHandler(source)

Helper class to handle file operations related to firmware updates, such as downloading, copying from URI, and extracting specific files from Zip archives.

Constructors

Link copied to clipboard
constructor(context: Context, client: HttpClient)

Functions

Link copied to clipboard
open suspend override fun checkUrlExists(url: String): Boolean
Link copied to clipboard
open override fun cleanupAllTemporaryFiles()
Link copied to clipboard
open suspend override fun copyFileToUri(sourcePath: String, destinationUri: CommonUri): Long
abstract suspend fun copyFileToUri(sourcePath: String, destinationUri: ERROR CLASS: Symbol not found for CommonUri): Long
Link copied to clipboard
open suspend override fun copyUriToUri(sourceUri: CommonUri, destinationUri: CommonUri): Long
abstract suspend fun copyUriToUri(sourceUri: ERROR CLASS: Symbol not found for CommonUri, destinationUri: ERROR CLASS: Symbol not found for CommonUri): Long
Link copied to clipboard
open suspend override fun deleteFile(path: String)
Link copied to clipboard
open suspend override fun downloadFile(url: String, fileName: String, onProgress: (Float) -> Unit): String?
Link copied to clipboard
open suspend override fun extractFirmware(uri: CommonUri, hardware: DeviceHardware, fileExtension: String, preferredFilename: String?): String?
abstract suspend fun extractFirmware(uri: ERROR CLASS: Symbol not found for CommonUri, hardware: ERROR CLASS: Symbol not found for DeviceHardware, fileExtension: String, preferredFilename: String? = null): String?
Link copied to clipboard
open suspend override fun extractFirmwareFromZip(zipFilePath: String, hardware: DeviceHardware, fileExtension: String, preferredFilename: String?): String?
abstract suspend fun extractFirmwareFromZip(zipFilePath: String, hardware: ERROR CLASS: Symbol not found for DeviceHardware, fileExtension: String, preferredFilename: String? = null): String?
Link copied to clipboard
open suspend override fun getFileSize(path: String): Long