[runtime] iOS-Runtime-Headers
阿新 • • 發佈:2019-01-26
Dynamically Generated iOS Headers
Here are iOS Objective-C headers as derived from runtime introspection.
這個是在執行時匯出的所有的 Objective-C 的標頭檔案。
Search(搜尋)
You can search the headers with github search:
你可以在github上用下面的方式來搜尋:
Sample usage(使用)
You can use the headers this way:
你可以用下面的方式來使用這些標頭檔案:
NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/GAIA.framework"]; BOOL success = [b load]; Class SKTelephonyController = NSClassFromString(@"SKTelephonyController"); id tc = [SKTelephonyController sharedInstance]; NSLog(@"-- myPhoneNumber: %@", [tc myPhoneNumber]); NSLog(@"-- imei: %@", [tc imei]);
Note that many other unique identifiers can be retrieved:
記住哦親,許多唯一標示符都是能找到的哦:
Class AADeviceInfo = NSClassFromString(@"AADeviceInfo"); NSLog(@"-- serialNumber: %@", [AADeviceInfo serialNumber]); NSLog(@"-- udid: %@", [AADeviceInfo udid]); NSLog(@"-- appleIDClientIdentifier: %@", [AADeviceInfo appleIDClientIdentifier]); id deviceInfo = [[[AADeviceInfo alloc] init] autorelease]; NSLog(@"-- wifiMacAddress: %@", [deviceInfo wifiMacAddress]); Class OSDBattery = NSClassFromString(@"OSDBattery"); NSLog(@"-- battery serial number: %@", [OSDBattery _getBatterySerialNumber]);
Timeline(時間線)
- Green == public(公開的)
- Red == private(私有的)
- Blue == dylib(動態載入的)