问题描述
-
我想使用
task_for_pid()
并附加到另一个进程,然后在iOS系统上更改其内存.我可以借助授权服务API在OS X上成功完成此操作,但是在iOS上,task_for_pid()
始终返回KERN_FAILURE
.我需要get task_for_pid()
函数才能在根目录下的越狱iPhone上工作.如身份验证"中所述,iOS不提供此API,该怎么办?
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 returnsKERN_FAILURE
. I need toget 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-allow
和get-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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!