Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
Liblockdown.dylib: Difference between revisions - iPhone Development Wiki

Liblockdown.dylib: Difference between revisions

From iPhone Development Wiki
(Created page with '{{DISPLAYTITLE:liblockdown.dylib}} '''liblockdown''' is a front end to communicate with the lockdown server (lockdownd). This front end can query, update or remove values in…')
 
m (UCID may not be ECID.)
Line 1: Line 1:
{{DISPLAYTITLE:liblockdown.dylib}}
{{DISPLAYTITLE:liblockdown.dylib}}


'''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, ECID, 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.


== Example ==
== Example ==

Revision as of 18:50, 1 December 2009


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.

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);

References