A high-performance C# implementation of the Android Fastboot protocol, aligned with the latest AOSP (Android Open Source Project) logic. Designed for firmware flashing, device management, and automation.
- AOSP Aligned: Core logic (Download, Erase, Flash, etc.) strictly follows the official Google
fastbootimplementation. - Multi-Transport Support:
- USB (Windows WinUSB & Legacy support)
- Fastboot over TCP
- Fastboot over UDP
- Multi-Targeting: Supports
.NET Standard 2.0/2.1,.NET 6.0,.NET 8.0, and above. - Modern C# 12 Syntax: Optimized for performance and readability while maintaining backward compatibility.
Install via NuGet:
dotnet add package FirmwareKit.Comm.Fastbootusing FirmwareKit.Comm.Fastboot;
using FirmwareKit.Comm.Fastboot.Usb.Windows;
// Initialize USB Transport (Example for Windows WinUSB)
var transport = new WinUSBDevice { DevicePath = "..." };
var fastboot = new FastbootUtil(transport);
// Get variable
var version = fastboot.GetVar("version");
Console.WriteLine($"Fastboot Version: {version}");// Simple flash command
fastboot.Flash("boot", "path/to/boot.img");
// Alignment with AOSP handshaking logic ensure stability
fastboot.Erase("system");- .NET Standard 2.0: Compatible with Unity and older .NET Framework 4.6.1+.
- Modern .NET: Fully supports Native AOT and trimming in .NET 8+.
- Based on AOSP
system/core/fastboot - Part of the FirmwareKit ecosystem by uotan-Dev
This project is licensed under the MIT License.