mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Clean up tools warnings
This commit is contained in:
@@ -208,7 +208,7 @@ async fn main() {
|
|||||||
unique_chip_id,
|
unique_chip_id,
|
||||||
async |((n, d), _)| {
|
async |((n, d), _)| {
|
||||||
let percent = (n as f64 / d as f64) * 100.0;
|
let percent = (n as f64 / d as f64) * 100.0;
|
||||||
print!("\rProgress: {:.2}%", percent);
|
print!("\rProgress: {percent:.2}%");
|
||||||
std::io::stdout().flush().unwrap(); // Make sure it prints immediately
|
std::io::stdout().flush().unwrap(); // Make sure it prints immediately
|
||||||
if n == d {
|
if n == d {
|
||||||
println!();
|
println!();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
use clap::{Arg, Command};
|
use clap::{Arg, Command};
|
||||||
use idevice::{
|
use idevice::{
|
||||||
core_device_proxy::CoreDeviceProxy, tcp::stream::AdapterStream, xpc::RemoteXpcClient,
|
core_device_proxy::CoreDeviceProxy, rsd::RsdHandshake, tcp::stream::AdapterStream,
|
||||||
IdeviceService,
|
IdeviceService,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -66,13 +66,12 @@ async fn main() {
|
|||||||
let rsd_port = proxy.handshake.server_rsd_port;
|
let rsd_port = proxy.handshake.server_rsd_port;
|
||||||
|
|
||||||
let mut adapter = proxy.create_software_tunnel().expect("no software tunnel");
|
let mut adapter = proxy.create_software_tunnel().expect("no software tunnel");
|
||||||
adapter.pcap("new_xpc.pcap").await.unwrap();
|
|
||||||
let conn = AdapterStream::connect(&mut adapter, rsd_port)
|
let stream = AdapterStream::connect(&mut adapter, rsd_port)
|
||||||
.await
|
.await
|
||||||
.expect("no RSD connect");
|
.expect("no RSD connect");
|
||||||
|
|
||||||
// Make the connection to RemoteXPC
|
// Make the connection to RemoteXPC
|
||||||
let mut client = RemoteXpcClient::new(Box::new(conn)).await.unwrap();
|
let handshake = RsdHandshake::new(stream).await.unwrap();
|
||||||
|
println!("{:#?}", handshake.services);
|
||||||
println!("{:#?}", client.do_handshake().await);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user