/// <summary> /// Gets the currently connected devices. /// </summary> public static IEnumerable <AndroidDevice> GetDevices(int timeout) { try { using (var socket = new AdbDevicesRequest(EndPoint)) { return(socket.Devices()); } } catch (Exception ex) { throw new AdbException(string.Format("Failed to list devices because: {0}", ex.Message)); } }
/// <summary> /// Gets the currently connected devices. /// </summary> public static IEnumerable<AndroidDevice> GetDevices(int timeout) { try { using (var socket = new AdbDevicesRequest(EndPoint)) { return socket.Devices(); } } catch (Exception ex) { throw new AdbException(string.Format("Failed to list devices because: {0}", ex.Message)); } }