Example #1
0
        /// <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);
        }
Example #2
0
 private void RebootTempRecoveryThread()
 {
     Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "boot", recovery));
 }
Example #3
0
 private void OemlockThread()
 {
     Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "oem lock"));
 }
Example #4
0
 private void FastbootRebootThread()
 {
     Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "reboot"));
 }
Example #5
0
 /// <summary>
 /// erase specifik partition over fastboot mode
 /// </summary>
 public void FastbootErase(string file)
 {
     Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "erase", file));
 }
Example #6
0
 private void FastbootFlashImgThread()
 {
     Fastboot.ExecuteFastbootCommandNoReturn(Fastboot.FormFastbootCommand(this, "flash", FlashImgCmd));
 }