获取iOS的私有API方法的签名 [英] Getting signatures of private API methods for iOS

查看:247
本文介绍了获取iOS的私有API方法的签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道SpringboardService包含许多私有API(例如:SBGetApplicationState,SBDimScreen等)。我使用nm工具获得了这些方法的列表。

I know that SpringboardService contains a lot of private API's (as example: SBGetApplicationState, SBDimScreen etc). I got the list of these methods using "nm" tool.

我想找到一个工具,它可以让我获得这些私有API方法的签名。据我所知,SBGetApplicationState是一个C调用(vs Objective C方法)。因此,我不确定是否可以在不拆卸和其他手动操作的情况下恢复签名。但是,我希望至少存在半自动化过程。

I want to find a tool which will let me get signatures for these private API methods. As I understand SBGetApplicationState is a C call (vs Objective C method). So I am not sure whether it's possible to recover signatures without disassembling and additional manual actions. However, I hope that at least semi-automated process exist.

几个注释:

a)我有看到这个链接(iOS运行时私有标题):
https://github.com/nst / iOS-Runtime-Headers

a) I have seen this link (iOS Runtime private headers): https://github.com/nst/iOS-Runtime-Headers

它只包含Objective C标头。

It contains only Objective C headers.

b)我看过这个链接(SpringBoard.app/MIG子系统)
http://iphonedevwiki.net/index.php/SpringBoard.app/MIG_subsystem

b) I have seen this link (SpringBoard.app/MIG subsystem) http://iphonedevwiki.net/index.php/SpringBoard.app/MIG_subsystem

It包含一些有趣的信息,但文档有点过时(对于iOS 3.1-4.2)

It contains some interesting information, but the documentation is a little bit outdate (for iOS 3.1-4.2)

c)我正在做研究,我不打算提交AppStore的任何应用程序。我很清楚基于私有API使用的AppStore拒绝

c) I am doing a research and I don't plan to submit any application to AppStore. I am well aware of AppStore rejections based on usage of private API's

推荐答案


  1. 您对C函数的假设很遗憾 - 你不能自动获得他们的签名。

  2. 但是,你可以用Objective-C消息做到这一点 - 看看 class-dump (或者更好, class-dump-z )。

  1. Your assumption about C functions is unfortunately correct -- you can't automatically get their signature.
  2. However, you can do this with Objective-C messages -- have a look at class-dump (or, even better, class-dump-z).

这篇关于获取iOS的私有API方法的签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆