ybtag / Potato.Fastboot

A 10KB wrapper over LibUsbDotNet for easy and convenient communication with mobile devices in Fastboot mode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SharpBoot (Potato.Fastboot Fork)

GPL-3.0

A small wrapper over LibUsbDotNet for easy and convenient communication with mobile devices in Fastboot mode.

Examples

var fastboot = new Fastboot();
fastboot.Connect();
Console.WriteLine("Connected.");
Console.WriteLine("Executing: fastboot reboot-fastboot"); 
fastboot.Reboot(Fastboot.RebootOptions.Fastbootd); // this reboots your phone into the userspace fastboot
var fastboot = new Fastboot();
fastboot.Connect();
Console.WriteLine("Connected.");
Console.WriteLine("Executing: fastboot reboot-recovery"); // reboots your phone into recovery mode
fastboot.Reboot(Fastboot.RebootOptions.Recovery);
Console.WriteLine("Your device should be in Recovery Mode.");
var fastboot = new Fastboot();
fastboot.Connect();
Console.WriteLine("Connected.");
fastboot.SendOemCommand("unlock"); // this sends the oem command unlock to the phone to then prompt if the bootloader should be unlocked
var fastboot = new Fastboot();
fastboot.Connect();
Console.WriteLine("Connected.");
fastboot.Boot("//temp/boot.img"); // this sends the boot.img and boots it
var fastboot = new Fastboot();
fastboot.Connect();
Console.WriteLine("Connected.");
fastboot.Flash("//temp/system.img","system_a"); // this sends the system.img and and flashes it to the partition: system_a
var fastboot = new Fastboot();
fastboot.Connect();
Console.WriteLine("Connected.");
fastboot.ResumeBoot(); // this is the equivalent of fastboot continue

License

GNU General Public License v3.0

About

A 10KB wrapper over LibUsbDotNet for easy and convenient communication with mobile devices in Fastboot mode.

License:GNU General Public License v3.0


Languages

Language:C# 100.0%