mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Start session if getting UniqueChipIP fails
This commit is contained in:
@@ -178,12 +178,21 @@ async fn main() {
|
|||||||
.await
|
.await
|
||||||
.expect("Unable to read signature");
|
.expect("Unable to read signature");
|
||||||
|
|
||||||
let unique_chip_id = lockdown_client
|
let unique_chip_id = match lockdown_client.get_value("UniqueChipID").await {
|
||||||
.get_value("UniqueChipID")
|
Ok(u) => u,
|
||||||
.await
|
Err(_) => {
|
||||||
.expect("Failed to get UniqueChipID")
|
lockdown_client
|
||||||
.as_unsigned_integer()
|
.start_session(&provider.get_pairing_file().await.unwrap())
|
||||||
.expect("Unexpected value for chip IP");
|
.await
|
||||||
|
.expect("Unable to start session");
|
||||||
|
lockdown_client
|
||||||
|
.get_value("UniqueChipID")
|
||||||
|
.await
|
||||||
|
.expect("Unable to get UniqueChipID")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.as_unsigned_integer()
|
||||||
|
.expect("Unexpected value for chip IP");
|
||||||
|
|
||||||
mounter_client
|
mounter_client
|
||||||
.mount_personalized(
|
.mount_personalized(
|
||||||
|
|||||||
Reference in New Issue
Block a user