的越狱开发者iPhone

的越狱开发者iPhone

本文介绍了带有task_for_pid()的越狱开发者iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 我想使用task_for_pid()并附加到另一个进程,然后在iOS系统上更改其内存.我可以借助授权服务API在OS X上成功完成此操作,但是在iOS上,task_for_pid()始终返回KERN_FAILURE.我需要get task_for_pid()函数才能在根目录下的越狱iPhone上工作.如身份验证"中所述,iOS不提供此API,该怎么办?

  1. I want use task_for_pid() and attach to another process and then change its memory on iOS system. I could do it successfully on OS X with the help of authorization services API, but on iOS, task_for_pid() always returns KERN_FAILURE. I need to get task_for_pid() function to work on jailbreak iPhone under root. As discussed in "Authentication" iOS does not provide this API, What should I do?

我可以在iOS Simulator上以root身份运行,以及如何测试以root身份运行所需的应用程序吗?

Could I run as root on iOS Simulator and how to test app required running as root?

推荐答案

由于沙箱限制,它正在返回KERN_FAILURE.您的可执行文件需要task_for_pid-allowget-task-allow权利.有关将它们添加到可执行文件的帮助,请参见此处.

It is returning KERN_FAILURE because of sandbox restrictions. Your executable needs the task_for_pid-allow and get-task-allow entitlements. See here for help on adding them to an executable.

这篇关于带有task_for_pid()的越狱开发者iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 00:30