[runtime] iOS-Runtime-Headers

Dynamically Generated iOS Headers

https://github.com/nst/iOS-Runtime-Headersios

 

Here are iOS Objective-C headers as derived from runtime introspection.git

The headers were generated using RuntimeBrowser for iPhone.github

這個是在運行時導出的全部的 Objective-C 的頭文件。app

這些頭文件都是經過 RuntimeBrowser for iPhone 來生成的。ide

Search(搜索

You can search the headers with github search:this

https://github.com/search?type=Code&q=repo:nst/iOS-Runtime-Headers+hackspa

你能夠在github上用下面的方式來搜索:code

https://github.com/search?type=Code&q=repo:nst/iOS-Runtime-Headers+hackblog

Sample usage(使用

You can use the headers this way:get

你能夠用下面的方式來使用這些頭文件:

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(動態加載的

The code to draw this picture is inhttps://github.com/nst/RuntimeBrowser/tree/master/tools/ios_headers_history.

相關文章
相關標籤/搜索