Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

lockdownd_validate_pair return UnknownError #179

Open
mveril opened this issue Jan 10, 2021 · 0 comments
Open

lockdownd_validate_pair return UnknownError #179

mveril opened this issue Jan 10, 2021 · 0 comments

Comments

@mveril
Copy link

mveril commented Jan 10, 2021

Hellow
I can't use the lockdownd_validate_pair method. It's return UnknownError.
below you can find a sample code that demonstrate it.

using System;
using iMobileDevice;
using iMobileDevice.Lockdown;

namespace ConsoleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            int count = default;
            LibiMobileDevice.Instance.iDevice.idevice_get_device_list(out var col, ref count);
            foreach (var item in col)
            {
                LibiMobileDevice.Instance.iDevice.idevice_new(out var device, item);
                device.Api.Lockdown.lockdownd_client_new(device, out var lockdown, null);
                Console.WriteLine(lockdown.Api.Lockdown.lockdownd_validate_pair(lockdown, LockdownPairRecordHandle.Zero).ToString());
                lockdown.Close();
                device.Close();
            }
        }
    }
}

Could you please help me ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant