Skip to content

Commit

Permalink
fruity: Fix the macOS CoreDevice connection type logic
Browse files Browse the repository at this point in the history
Co-authored-by: Håvard Sørbø <[email protected]>
  • Loading branch information
oleavr and hsorbo committed Jul 3, 2024
1 parent 2481276 commit e415a2e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/fruity/device-monitor.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1393,16 +1393,7 @@ namespace Frida.Fruity {
var device_info = (Darwin.Xpc.Dictionary) reader.current_object;
var pairing_device = new XpcClient (device_info.create_connection ("endpoint"), queue);

bool attached_physically = reader
.read_member ("connectionState")
.read_member ("value")
.read_member ("attachedPhysically")
.get_bool_value ();
reader
.end_member ()
.end_member ()
.end_member ();
var connection_type = attached_physically
var connection_type = (device_info.get_value ("untrustedRSDDeviceInfo") != null)
? ConnectionType.USB
: ConnectionType.NETWORK;

Expand Down

0 comments on commit e415a2e

Please sign in to comment.