/// <summary> /// Queries the ADB server version. Only the minor version is returned. /// </summary> /// <returns></returns> public int QueryADBVersion() { using (var s = new AdbSocket(true, TransportType.any, null)) { s.SendService("host:version"); return(s.ReceiveData(true, true).FromHexToInt32()); } }
public void Reboot(string rebootOption) { rebootOption = rebootOption.ToLower(); using (var s = new AdbSocket(true, TransportType.any, SerialNumber)) { if (rebootOption == "normal") { rebootOption = ""; } s.SendService(string.Format("reboot:{0}", rebootOption)); s.ReceiveData(true, false); } }