https://github.com/mashed-potatoes/potato.imageflasher
A tiny library for bootloader flashing in VCOM_DOWNLOAD mode on Huawei phones.
https://github.com/mashed-potatoes/potato.imageflasher
Last synced: about 1 year ago
JSON representation
A tiny library for bootloader flashing in VCOM_DOWNLOAD mode on Huawei phones.
- Host: GitHub
- URL: https://github.com/mashed-potatoes/potato.imageflasher
- Owner: mashed-potatoes
- License: gpl-3.0
- Created: 2020-06-19T20:13:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T07:13:49.000Z (about 5 years ago)
- Last Synced: 2025-03-20T12:54:36.824Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 37.1 KB
- Stars: 34
- Watchers: 4
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Potato.ImageFlasher
[](https://travis-ci.org/mashed-potatoes/Potato.ImageFlasher)
[](https://www.nuget.org/packages/Potato.ImageFlasher)
[](https://www.nuget.org/packages/Potato.ImageFlasher)
[](https://www.codefactor.io/repository/github/mashed-potatoes/potato.imageflasher)

A tiny library for bootloader flashing in VCOM_DOWNLOAD mode on Huawei phones.
Based on [@penn5](https://github.com/penn5)'s project — [hisi-idt](https://github.com/penn5/hisi-idt).
# Example
```c#
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();
```
# License
[GNU General Public License v3.0](LICENSE.txt)