Example #1
0
 private void TryReboot(AdbDaemon.RebootMode mode = AdbDaemon.RebootMode.Normal)
 {
     string output = "Device is rebooting";
     try {
         _currentDevice.Reboot(mode);
     } catch (Exception x) {
         output = x.Message;
     }
     MessageBox.Show(output, "Reboot - " + mode.ToString());
 }
Example #2
0
 public void Reboot(AdbDaemon.RebootMode mode = AdbDaemon.RebootMode.Normal)
 {
     string command;
     switch (mode) {
         case AdbDaemon.RebootMode.Recovery:
             command = "reboot recovery";
             break;
         case AdbDaemon.RebootMode.Bootloader:
             command = "reboot bootloader";
             break;
         default:
             command = "reboot";
             break;
     }
     WaitForDevice();
     RunADBCommandReturnString(command, true);
 }