Lockdown inner workings in case of device disconnection #399
-
Hi, In case of USB connection, is there a way for a lockdown to identify device disconnection from host? For example, due to physical disconnection with USB cable, or in case of device restart (sending 'restart' command or kernel panic)? P.S. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
When a Regarding the panics, after the device reboots |
Beta Was this translation helpful? Give feedback.
When a
ConnectionAbortedError
you can deduce the device was disconnected. However, the better way to do this would be throughusbmux
. You canlist_devices()
in a loop to detect attaches and detaches.Regarding the panics, after the device reboots
DumpPanic
will create the crash report inside the device's crash reports folder and then pymobiledevice3 can reconnect and pull the crash files