在越狱手机上杀死应用程序
我正在尝试创建一个应用程序来杀死我越狱手机上的其他应用程序。我尝试了许多不同的终止命令,但似乎没有一个能解决问题。我想知道是否有人找到了有效的终止命令?
I am trying to create an app that kills other apps on my jailbroken phone. I have tried many different kill commands but none of them seem to do the trick. I am wondering if anybody has found a kill command that works?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有多种方法可以在 Unix 系统上获取 root 权限;我不知道什么最适合您的越狱 iOS 设备,但我至少可以概述底层平台上的可能性:
安装您的程序
setuid root
:当您的程序运行时,它将以
root
身份运行,并拥有root
的全部权限和职责。使用
setuid root
帮助程序,例如su(1)
或sudo(8)
以身份运行您的程序根
:配置系统启动工具以在启动时以
root
权限运行您的程序;这对我来说要描述起来要复杂得多,因为系统启动非常依赖于系统。查找/etc/inittab
或/etc/rc*
作为起点。 (也许 iOS 使用较新的 launchd?)There's a handful of ways to get
root
privileges on Unix systems; I don't know what would be most appropriate for your jail-broken iOS device, but I can at least outline what's possible on the underlying platform:Install your program
setuid root
:When your program runs, it will run as
root
and have the full privileges and responsibilities ofroot
.Use a
setuid root
helper program, such assu(1)
orsudo(8)
to run your program asroot
:Configure the system startup tools to run your program with
root
privileges at boot time; this is much more complicated for me to describe, since system boot is extremely system dependent. Look for/etc/inittab
or/etc/rc*
as starting points. (Maybe iOS uses the newer launchd?)