libimobiledevice / usbmuxd

A socket daemon to multiplex connections from and to iOS devices
https://libimobiledevice.org
GNU General Public License v2.0
1.41k stars 341 forks source link

lockdown error -5 when attempting to connect iPod Touch #207

Open BezPowell opened 1 year ago

BezPowell commented 1 year ago

I'm trying to backup all the data from my Partner's old iPod Touch. All of the libimobiledevice commands return a message saying No Device Found.

The device shows up on lsusb

Bus 001 Device 006: ID 05ac:129e Apple, Inc. iPod Touch 4.Gen

Running usbmuxd -f gives the following output.

[15:49:50.234][3] usbmuxd v1.1.1 starting up
[15:49:50.235][3] Using libusb 1.0.25
[15:49:50.241][3] Initialization complete
[15:49:50.249][3] Connecting to new device on location 0x10006 as ID 1
[15:49:50.250][3] Connected to v2.0 device 1 on location 0x10006 with serial number 608da3e8a75e39c5cd99953626f8c6bf2e36eca6
[15:49:50.367][1] preflight_worker_handle_device_add: The stored pair record for device 608da3e8a75e39c5cd99953626f8c6bf2e36eca6 is invalid. Removing.
[15:49:51.061][1] preflight_worker_handle_device_add: ERROR StartSession failed on device 608da3e8a75e39c5cd99953626f8c6bf2e36eca6, lockdown error -5

I'm running Fedora 36 and using the latest builds of everything from the repositories. I seem to remember seeing another bug report that suggested it could be an issue with openssl, but was wondering whether there war any other steps I could try and take?

Running openssl ciphers -s SSLv3 returns the following output:

TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_SHA256:DHE-RSA-AES256-SHA:DHE-RSA-CAMELLIA256-SHA:DHE-RSA-AES128-SHA:DHE-RSA-CAMELLIA128-SHA:AES256-SHA:CAMELLIA256-SHA:AES128-SHA:CAMELLIA128-SHA

I don't need to regularly mount this to interact with it, just getting it to work once and take a complete backup of all the data is more than sufficient.

bigkahuna1986 commented 10 months ago

In the same boat as you (3rd gen iPod touch). I tried the steps from this article to no avail. Please update if you have any more information!

mexmer commented 10 months ago

remove libimobiledevice and usbmuxd and all related packages distributed by your system, compile all from sources and install, it should work.

if you leave any distribution provided packages installed, it might cause issues.

also fedora use cryptographic policies, that are enforced at library level, you will need to run

update-crypto-policies --set LEGACY

to actually enable support for older level SSL and TLS communication. current default policy doesn't allow setting up SSL channel bellow TLS 1.1, and should be soon upgraded to TLS 1.2. it breaks SSL communication for all old devices, that don't support new TLS standardards, not just old ios devices.