/// <summary> /// send command based current device state /// </summary> public string Commander(string command) { var res = ""; if (State == DeviceState.ONLINE || State == DeviceState.RECOVERY) { res = AdbCmd.ExecuteAdbCommand(AdbCmd.FormAdbCommand(command)); } else if (State == DeviceState.FASTBOOT) { res = Fastboot.ExecuteFastbootCommand(Fastboot.FormFastbootCommand(command)); } return(res); }
private void RebootTempRecoveryThread() { Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "boot", recovery)); }
private void OemlockThread() { Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "oem lock")); }
private void FastbootRebootThread() { Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "reboot")); }
/// <summary> /// erase specifik partition over fastboot mode /// </summary> public void FastbootErase(string file) { Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "erase", file)); }
private void FastbootFlashImgThread() { Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "flash", FlashImgCmd)); }