mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Correctly parse DDI image lookup result
This commit is contained in:
@@ -17,6 +17,10 @@ pub fn register() -> JkCommand {
|
||||
"list",
|
||||
JkCommand::new().help("Lists the images mounted on the device"),
|
||||
)
|
||||
.with_subcommand(
|
||||
"lookup",
|
||||
JkCommand::new().help("Lookup the image signature on the device"),
|
||||
)
|
||||
.with_subcommand(
|
||||
"unmount",
|
||||
JkCommand::new().help("Unmounts the developer disk image"),
|
||||
@@ -101,6 +105,17 @@ pub async fn main(arguments: &CollectedArguments, provider: Box<dyn IdeviceProvi
|
||||
println!("{}", pretty_print_plist(&i));
|
||||
}
|
||||
}
|
||||
"lookup" => {
|
||||
let sig = mounter_client
|
||||
.lookup_image(if product_version < 17 {
|
||||
"Developer"
|
||||
} else {
|
||||
"Personalized"
|
||||
})
|
||||
.await
|
||||
.expect("Failed to lookup images");
|
||||
println!("Image signature: {sig:02X?}");
|
||||
}
|
||||
"unmount" => {
|
||||
if product_version < 17 {
|
||||
mounter_client
|
||||
|
||||
Reference in New Issue
Block a user