From e9bc5d965fb6ea8a2baa72c39e96bdc999bdf711 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Wed, 30 Apr 2025 08:43:31 -0600 Subject: [PATCH] Add UDID to generated pairing file and test connection --- tools/src/pair.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/src/pair.rs b/tools/src/pair.rs index e4e5d04..a0d0bc2 100644 --- a/tools/src/pair.rs +++ b/tools/src/pair.rs @@ -69,11 +69,20 @@ async fn main() { .to_string(); let id = uuid::Uuid::new_v4().to_string().to_uppercase(); - let pairing_file = lockdown_client + let mut pairing_file = lockdown_client .pair(id, mac_address, u.get_buid().await.unwrap()) .await .expect("Failed to pair"); + // Test the pairing file + lockdown_client + .start_session(&pairing_file) + .await + .expect("Pairing file test failed"); + + // Add the UDID (jitterbug spec) + pairing_file.udid = Some(dev.udid); + println!( "{}", String::from_utf8(pairing_file.serialize().unwrap()).unwrap()