From e797e829d8b9096bc911a7418fccecbc89b388ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sat, 26 Oct 2024 08:50:53 +0200 Subject: [PATCH] fruity: Fix CoreDevice UDID logic for modern devices --- src/fruity/device-monitor.vala | 2 ++ 1 file changed, 2 insertions(+) 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) {