m (MGGetBoolAnswer(CFStringRef);) |
(linking lockdownd) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:libMobileGestalt.dylib}} | {{DISPLAYTITLE:libMobileGestalt.dylib}} | ||
'''libMobileGestalt''' is a library that can be used to get various system values such as the UDID, disk usage, device version and much more. It is comparable to [[liblockdown.dylib]]. | '''libMobileGestalt''' is a library that can be used to get various system values such as the UDID, disk usage, device version and much more. It is comparable to [[liblockdown.dylib]]. See also [[lockdownd]]. | ||
== MGCopyAnswer == | == MGCopyAnswer == |
Revision as of 20:28, 7 October 2014
libMobileGestalt is a library that can be used to get various system values such as the UDID, disk usage, device version and much more. It is comparable to liblockdown.dylib. See also lockdownd.
MGCopyAnswer
// Common form: MGCopyAnswer(CFStringRef string);
CFStringRef value = MGCopyAnswer(kMGDeviceColor);
NSLog(@"Value: %@", value);
CFRelease(value);
MGGetBoolAnswer (iOS 7+)
// CFBooleanRef MGGetBoolAnswer(CFStringRef string);
CFBooleanRef value = MGGetBoolAnswer(CFSTR("UIProceduralWallpaperCapability"));
NSLog(@"Value: %i", value);
CFRelease(value);
- Note: You are responsible for freeing the value returned by MGCopyAnswer and MGGetBoolAnswer.
References