mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Print which screenshot protocol is being used in tool
This commit is contained in:
@@ -66,6 +66,7 @@ async fn main() {
|
||||
};
|
||||
|
||||
let res = if let Ok(proxy) = CoreDeviceProxy::connect(&*provider).await {
|
||||
println!("Using DVT over CoreDeviceProxy");
|
||||
let rsd_port = proxy.handshake.server_rsd_port;
|
||||
|
||||
let adapter = proxy.create_software_tunnel().expect("no software tunnel");
|
||||
@@ -90,6 +91,7 @@ async fn main() {
|
||||
.await
|
||||
.expect("Failed to take screenshot")
|
||||
} else {
|
||||
println!("Using screenshotr");
|
||||
let mut screenshot_client = match ScreenshotService::connect(&*provider).await {
|
||||
Ok(client) => client,
|
||||
Err(e) => {
|
||||
|
||||
Reference in New Issue
Block a user