// Top of ur .cs file ... using AndroidCtrl; using AndroidCtrl.ADB.Binary; //or using AndroidCtrl.ADB.Socket; ... // Reboot ADB.Instance().Reboot(BootMode.Reboot); // Reboot-Bootloader ADB.Instance().Reboot(BootMode.Bootloader); // Reboot-Recovery ADB.Instance().Reboot(BootMode.Recovery);
NOTE
If u have more then one connected device and no device ID is selected in the class (so the base instance is selected) u'll reboot all connected devices! So it's better to call
ADB.Instance("device ID").Reboot(BootMode.Reboot); Fastboot.Instance("device ID").Reboot(BootMode.Reboot);if no device is selected.