I'm trying to get as much info from my iPhone using iMobileDevice
and I can't find a list of supported keys to search for in libimobiledevice
API or elsewhere. I know such places like here exist and are helpful but they aren't all supported when using the lockdownd_get_value(LockdownClientHandle ld, string domain, string KEY, out PListHandle value)
. This is how I'm using it.
ReadOnlyCollection<string> udids;
int count = 0;
var idevice = LibiMobileDevice.Instance.iDevice;
var lockdown = LibiMobileDevice.Instance.Lockdown;
var ret = idevice.idevice_get_device_list(out udids, ref count);
if (ret == iDeviceError.NoDevice)
{
// Not actually an error in our case
return;
}
ret.ThrowOnError();
// Get the device name
foreach (var udid in udids)
{
string t1;
PlistHandle tested1;
//Find serial number in plist
lockdown.lockdownd_get_value(lockdownHandle, null, "SerialNumber", out
tested1);
//Get string values from plist
tested1.Api.Plist.plist_get_string_val(tested1, out t1);
Console.WriteLine(t1);
}
Also, Is there a reference list for all keys supported?