Skip to content

Commit

Permalink
fruity: Fix CoreDevice UDID logic for modern devices
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Oct 26, 2024
1 parent aa95167 commit e797e82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fruity/device-monitor.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e797e82

Please sign in to comment.