AndroidFirmwareUsbManager
class AndroidFirmwareUsbManager(context: Context, usbRepository: UsbRepository) : FirmwareUsbManager(source)
Manages USB-related interactions for firmware updates.
Functions
Link copied to clipboard
Observe when a USB device is detached.
Link copied to clipboard
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
Records which serial ports are present, so a port that appears after a UF2 write can be told apart from one that was already there.
Link copied to clipboard