[runtime] iOS-Runtime-Headers

简介:

Dynamically Generated iOS Headers

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

 

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

The headers were generated using RuntimeBrowser for iPhone.

这个是在运行时导出的所有的 Objective-C 的头文件。

这些头文件都是通过 RuntimeBrowser for iPhone 来生成的。

Search(搜索

You can search the headers with github search:

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

你可以在github上用下面的方式来搜索:

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

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(动态加载的

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

目录
相关文章
|
11月前
|
API iOS开发
iOS面试关于runtime
iOS面试关于runtime
92 0
15-iOS之Runtime常用API以及使用
15-iOS之Runtime常用API以及使用
79 0
|
编译器 iOS开发
iOS Runtime详细介绍及实战使用(二)
iOS Runtime详细介绍及实战使用
 iOS Runtime详细介绍及实战使用(二)
|
API iOS开发
iOS Runtime详细介绍及实战使用(一)
iOS Runtime详细介绍及实战使用
|
iOS开发
iOS开发- runtime基本用法解析和用runtime给键盘添加工具栏和按钮响应事件
iOS开发- runtime基本用法解析和用runtime给键盘添加工具栏和按钮响应事件
133 0
|
JSON 前端开发 JavaScript
iOS Principle:Runtime(下)
iOS Principle:Runtime(下)
87 0
iOS Principle:Runtime(下)
|
缓存 编译器 Swift
iOS Principle:Runtime(中)
iOS Principle:Runtime(中)
165 0
iOS Principle:Runtime(中)
|
存储 缓存 编译器
iOS Principle:Runtime(上)
iOS Principle:Runtime(上)
106 0
iOS Principle:Runtime(上)
|
iOS开发
iOS - Runtime Method Swizzling(上)
Runtime合集 iOS - Runtime基础
iOS - Runtime Method Swizzling(上)
|
缓存 编译器 iOS开发
iOS - Runtime基础(下)
Runtime合集 iOS - isa、superclass指针,元类superclass指向基类本身
iOS - Runtime基础(下)