doronz88 / pymobiledevice3

Pure python3 implementation for working with iDevices (iPhone, etc...).
https://discord.gg/52mZGC3JXJ
GNU General Public License v3.0
1.34k stars 185 forks source link

Lockdown SavePairRecord #956

Closed nanoscopic closed 4 months ago

nanoscopic commented 4 months ago

Is your feature request related to a problem? Please describe. On MacOS lockdown.py saves pair records directly to disk instead of properly storing them "within usbmuxd" using the SavePairRecord usbmuxd request. This can result in needing to pair multiple times.

Describe the solution you'd like Save the pair request properly using SavePairRecord.

Describe alternatives you've considered N/A

Additional context N/A

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

nanoscopic commented 4 months ago

See https://github.com/libimobiledevice/libusbmuxd/blob/a7f0543fb1ecb20ac7121c0fd77297200e0e43fc/src/libusbmuxd.c#L813 for an example.

doronz88 commented 4 months ago

Pymobile saves it to both usbmuxd and to disk. The second prompt is probably because of the remotexpc pairing which is a seperate record entirely

nanoscopic commented 4 months ago

Nevermind I see that it does do it. I was looking in the wrong place. I will only add that it's a little confusing that this only happens when the device was paired using pmd3. If you pair with idevicepair the local cached copy does not appear.

Is there a reason to create the extra copy in .pmd3 folder on MacOS?