From a84321765dae1e43978b863e155204c19044c3c2 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Fri, 18 Jul 2025 23:29:35 -0600 Subject: [PATCH] Correct XPC bool serialization --- idevice/src/xpc/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idevice/src/xpc/format.rs b/idevice/src/xpc/format.rs index c713d7c..8b72654 100644 --- a/idevice/src/xpc/format.rs +++ b/idevice/src/xpc/format.rs @@ -158,7 +158,7 @@ impl XPCObject { match self { XPCObject::Bool(val) => { buf.extend_from_slice(&(XPCType::Bool as u32).to_le_bytes()); - buf.push(if *val { 0 } else { 1 }); + buf.push(if *val { 1 } else { 0 }); buf.extend_from_slice(&[0].repeat(3)); } XPCObject::Dictionary(dict) => {