Potato.Fastboot
Potato.Fastboot copied to clipboard
A 10KB wrapper over LibUsbDotNet for easy and convenient communication with mobile devices in Fastboot mode.
```cs public bool UploadData(string path) { //WRITE_D FileStream stream = new FileStream(path, FileMode.Open); string madx = Command("getvar:max-download-size").Payload; intMAX_DWN_SIZE = (int)new Int32Converter().ConvertFromString(madx); long totalenremain = stream.Length; long curlenremain = totalenremain >=...
When I send a large (> 800MB) file to the device, I get an exception: `System.Exception: Invalid response from device! (data size: 834666496) at Potato.Fastboot.Fastboot.SendDataCommand(Int64 size) at Potato.Fastboot.Fastboot.UploadData(FileStream stream) at...