TLDR Dev · ARTICLES & TUTORIALS

USB FOR SOFTWARE DEVELOPERS

werwolv.net19 min read

Summary from the TLDR Dev newsletter

Writing a USB driver is not as daunting as perceived, especially when utilizing user-space libraries like `libusb`. This article goes through how to identify a USB device (an Android phone in bootloader mode) by its Vendor/Product IDs, programmatically enumerate it, and then communicate with the device by requesting status and descriptor information via the control endpoint.