diff --git a/src/fruity/device-monitor.vala b/src/fruity/device-monitor.vala index a914af1c9..9b89429c1 100644 --- a/src/fruity/device-monitor.vala +++ b/src/fruity/device-monitor.vala @@ -954,6 +954,8 @@ namespace Frida.Fruity { if (res >= LibUSB.Error.SUCCESS) { serial[res] = '\0'; udid = (string) serial; + if (udid.length == 24) + udid = udid[:8] + "-" + udid[8:]; var transport = usb_transports.first_match (t => t.udid == udid); if (transport != null) {