Write new XPC implementation

This commit is contained in:
Jackson Coxson
2025-05-22 15:13:05 -06:00
parent 5cfe7124c3
commit 9a1987d923
7 changed files with 663 additions and 25 deletions

View File

@@ -2,7 +2,7 @@
// Print out all the RemoteXPC services
use clap::{Arg, Command};
use idevice::{core_device_proxy::CoreDeviceProxy, xpc::XPCDevice, IdeviceService};
use idevice::{core_device_proxy::CoreDeviceProxy, xpc::RemoteXpcClient, IdeviceService};
mod common;
@@ -66,7 +66,7 @@ async fn main() {
adapter.connect(rsd_port).await.expect("no RSD connect");
// Make the connection to RemoteXPC
let client = XPCDevice::new(Box::new(adapter)).await.unwrap();
let mut client = RemoteXpcClient::new(Box::new(adapter)).await.unwrap();
println!("{:#?}", client.services);
println!("{:#?}", client.do_handshake().await);
}