博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[runtime] iOS-Runtime-Headers
阅读量:4566 次
发布时间:2019-06-08

本文共 1382 字,大约阅读时间需要 4 分钟。

Dynamically Generated iOS Headers

 

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

The headers were generated using .

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

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

Search(搜索

You can search the headers with :

你可以在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(动态加载的

The code to draw this picture is in.

 

 

 

转载于:https://www.cnblogs.com/YouXianMing/p/3659410.html

你可能感兴趣的文章
Windows 服务开发框架介绍 - Topshelf
查看>>
php,字符串(二)
查看>>
Sizzle前奏
查看>>
Paint Chain HDU - 3980(sg)
查看>>
Chales常用操作
查看>>
C++ 运算符重载<<
查看>>
windows镜像
查看>>
Flask 模板语法
查看>>
ZOJ FatMouse' Trade 贪心
查看>>
音乐播放器
查看>>
SQL COOKBOOK (Ch.1-10)
查看>>
创建数组
查看>>
dict使用
查看>>
[转] 移动平台Html5的viewport使用经验
查看>>
ASP.NET MVC的帮助类HtmlHelper和UrlHelper
查看>>
《Python数据科学手册》第五章机器学习的笔记
查看>>
ubuntu16.04 配置爬虫环境
查看>>
Centos7,PHP7安装swoole
查看>>
02_ListActive中响应事件 并LogCat输出
查看>>
doubleclick adx note
查看>>