mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +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 {
|
let res = if let Ok(proxy) = CoreDeviceProxy::connect(&*provider).await {
|
||||||
|
println!("Using DVT over CoreDeviceProxy");
|
||||||
let rsd_port = proxy.handshake.server_rsd_port;
|
let rsd_port = proxy.handshake.server_rsd_port;
|
||||||
|
|
||||||
let adapter = proxy.create_software_tunnel().expect("no software tunnel");
|
let adapter = proxy.create_software_tunnel().expect("no software tunnel");
|
||||||
@@ -90,6 +91,7 @@ async fn main() {
|
|||||||
.await
|
.await
|
||||||
.expect("Failed to take screenshot")
|
.expect("Failed to take screenshot")
|
||||||
} else {
|
} else {
|
||||||
|
println!("Using screenshotr");
|
||||||
let mut screenshot_client = match ScreenshotService::connect(&*provider).await {
|
let mut screenshot_client = match ScreenshotService::connect(&*provider).await {
|
||||||
Ok(client) => client,
|
Ok(client) => client,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user