A tiny library for bootloader flashing in VCOM_DOWNLOAD mode on Huawei phones.
Based on @penn5's project — hisi-idt.
var flasher = new ImageFlasher();
// Open serial port, for example COM3
flasher.Open("COM3");
// Write xloader image to 0x00020000
flasher.Write("xloader.img", 0x00020000);
// Write fastboot image to 0x1AC00000 with progress reporting
flasher.Write("fastboot.img", 0x1AC00000, x => Console.WriteLine($"Progress: {x}%"));
// Close serial port
flasher.Close();