/// <summary> /// Reads the response from ADB after a command. /// </summary> /// <returns> /// A <see cref="AdbResponse"/> that represents the response received from ADB. /// </returns> protected AdbResponse ReadAdbResponseInner() { AdbResponse resp = new AdbResponse(); byte[] reply = new byte[4]; this.Read(reply); resp.IOSuccess = true; if (IsOkay(reply)) { resp.Okay = true; } else { resp.Okay = false; } if (!resp.Okay) { var message = this.ReadString(); resp.Message = message; Log.e(TAG, "Got reply '{0}', diag='{1}'", this.ReplyToString(reply), resp.Message); } return(resp); }
/// <summary> /// Reads the response from ADB after a command. /// </summary> /// <returns> /// A <see cref="AdbResponse"/> that represents the response received from ADB. /// </returns> protected AdbResponse ReadAdbResponseInner() { AdbResponse resp = new AdbResponse(); byte[] reply = new byte[4]; this.Read(reply); resp.IOSuccess = true; if (IsOkay(reply)) { resp.Okay = true; } else { resp.Okay = false; } if (!resp.Okay) { var message = this.ReadString(); resp.Message = message; Log.Error(TAG, "Got reply '{0}', diag='{1}'", this.ReplyToString(reply), resp.Message); } return resp; }