(Fix MGGetBoolAnswer example) |
(link a really useful relevant blog post) |
||
Line 23: | Line 23: | ||
== References == | == References == | ||
* Header: https://github.com/Cykey/ios-reversed-headers/blob/master/MobileGestalt/MobileGestalt.h | * Header: https://github.com/Cykey/ios-reversed-headers/blob/master/MobileGestalt/MobileGestalt.h | ||
== External links == | |||
* [https://blog.timac.org/2017/0124-deobfuscating-libmobilegestalt-keys/ Deobfuscating libMobileGestalt keys] | |||
{{Navbox Frameworks}} | {{Navbox Frameworks}} | ||
[[Category:Dynamic Libraries]] | [[Category:Dynamic Libraries]] |
Revision as of 14:12, 26 December 2017
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: %@", (id)value);
CFRelease(value);
- Note: You are responsible for freeing the value returned by MGCopyAnswer and MGGetBoolAnswer.
References
External links