Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Notify user to disable passcode before attempt to pair device with computer

#101

As described in ticket #100 libiphone pairing failure, the creation of a new pair fails if the device has a passcode set.

In such a case the device answers the following for the Pair request:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Error</key>
        <string>PasswordProtected</string>
        <key>Request</key>
        <string>Pair</string>
        <key>Result</key>
        <string>Failure</string>
</dict>
</plist>

In order to avoid some bugreports, it would be the best if we also spit out something along this line to the user: "Please disable the password on your mobile before attempting to pair the device with your computer"

Reported by Martin S. · December 22nd, 2009 @ 09:00 AM

State: resolved
Milestone: 1.2.0 Release
Assigned to: nobody

Activity

  1. Martin S.
    Martin S.
    • State changed from new to open

    After some checks I think one solution might be to request the "PasswordProtected" key using the GetValue request from lockdown before starting a session and refuse to create the client in lockdownd_client_new() with the mentioned error message in that case.

    Thus the user would have to disable the passcode and done. I am wondering how iTunes does it. Perhaps it does a SetValue request and disables the password protection on first pairing?

    December 25th, 2009 @ 03:03 PM

  2. Martin S.
    Martin S.
    • State changed from open to resolved

    (from [cec7e6b7591d018dd700c6fa6b5c85b29ec43b34]) Detect pairing failure for device having a password set

    [#101 Notify user to disable passcode before attempt to pair device with computer state:resolved]

    The first pairing fails if a user has a password set on the device.
    http://github.com/MattColyer/libiphone/commit/cec7e6b7591d018dd700c...

    January 14th, 2010 @ 03:34 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.