usbmuxd icon indicating copy to clipboard operation
usbmuxd copied to clipboard

usbmuxd_get_device_by_udid function does not return CONNECTION_TYPE_NETWORK devices

Open t-yoshii opened this issue 7 years ago • 5 comments

Hi, usbmuxd_get_device_by_udid function in libusbmuxd.c in current master (9db5747c) does not find devices with conn_type CONNECTION_TYPE_NETWORK.

I think connection type check is not needed here. https://github.com/libimobiledevice/libusbmuxd/blob/master/src/libusbmuxd.c#L1286

Older version of usbmuxd returns NETWORK devices.

usbmuxd comimt: 9db5747cd823b1f59794f81560a4af22a031f5c9

t-yoshii avatar Oct 31 '18 03:10 t-yoshii

This is done on purpose. For network devices, use the new API usbmuxd_get_device with the appropriate options.

nikias avatar Oct 31 '18 03:10 nikias

Hi @nikias

Thank you very much for your prompt reply!

I am facing a problem that idevicesyslog -u <UDID> command of libimobiledevice cannot find network device.

idevice_new() function should be fixed to use new API usbmuxd_get_device instead of usbmuxd_get_device_by_udid since idevicesyslog uses idevice_new() => usbmuxd_get_device_by_udid() ?

https://github.com/libimobiledevice/libimobiledevice/blob/master/tools/idevicesyslog.c#L60 https://github.com/libimobiledevice/libimobiledevice/blob/master/src/idevice.c#L253

t-yoshii avatar Oct 31 '18 03:10 t-yoshii

Yes I know. I am working on it.

nikias avatar Oct 31 '18 13:10 nikias

Thank you!

t-yoshii avatar Nov 01 '18 01:11 t-yoshii

Hi,

I am having the same problem, both "idevicesyslog -u DEVICE_ID" and "ideviceinfo -u DEVICE_ID" cannot find the device (if connected by network, by USB it works fine).

Is this issue still current? I would like to debug this in order to use backups over wifi. Please let me know where to touch/play.

dsrink avatar May 18 '21 13:05 dsrink