m (UCID may not be ECID.) |
(linking to libMobileGestalt.dylib) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
'''liblockdown''' is a front end to communicate with the lockdown server ([[lockdownd]]). This front end can query, update or remove values in lockdownd. These values include system values such as the IMEI, UDID, etc. | '''liblockdown''' is a front end to communicate with the lockdown server ([[lockdownd]]). This front end can query, update or remove values in lockdownd. These values include system values such as the IMEI, UDID, etc. | ||
See also: [[libMobileGestalt.dylib]]. | |||
== Example == | == Example == | ||
Line 11: | Line 13: | ||
CFNumberGetValue(totalBytes, kCFNumberFloatType, &totalBytes_float); | CFNumberGetValue(totalBytes, kCFNumberFloatType, &totalBytes_float); | ||
printf("Size of your device = %.2g GB", totalBytes_float*1.0e-9); | printf("Size of your device = %.2g GB", totalBytes_float*1.0e-9); | ||
CFRelease(totalBytes); | |||
</source> | </source> | ||
== Versions == | |||
{| class="wikitable" | |||
|- | |||
! Firmware | |||
| 2.0 || 2.1 || 2.2 || 3.0 || 3.1 || 3.2 | |||
|- | |||
! SourceCache version | |||
| 285 || 302.0.1 || 313.1 || 372.1 || 394.3 || 425.28 | |||
|- | |||
! dylib version | |||
| colspan="6" | 1 | |||
|} | |||
== References == | == References == |
Latest revision as of 00:17, 7 September 2013
liblockdown is a front end to communicate with the lockdown server (lockdownd). This front end can query, update or remove values in lockdownd. These values include system values such as the IMEI, UDID, etc.
See also: libMobileGestalt.dylib.
Example
LockdownConnectionRef connection = lockdown_connect();
CFNumberRef totalBytes = lockdown_copy_value(connection, kLockdownDiskUsageDomainKey, kLockdownTotalDiskCapacityKey);
lockdown_disconnect(connection);
float totalBytes_float;
CFNumberGetValue(totalBytes, kCFNumberFloatType, &totalBytes_float);
printf("Size of your device = %.2g GB", totalBytes_float*1.0e-9);
CFRelease(totalBytes);
Versions
Firmware | 2.0 | 2.1 | 2.2 | 3.0 | 3.1 | 3.2 |
---|---|---|---|---|---|---|
SourceCache version | 285 | 302.0.1 | 313.1 | 372.1 | 394.3 | 425.28 |
dylib version | 1 |
References