简体   繁体   English

在越狱的iPhone上杀死一个应用程序

[英]Killing an app on a jailbroken iPhone

I am currently trying to build an app that will kill other apps on my jailbroken iPhone. 我目前正在尝试构建一个将在越狱的iPhone上杀死其他应用程序的应用程序。 I would like my app to be able to kill apps even when my app is in the background. 我希望我的应用程序即使在后台运行也能够杀死它们。 I only have one problem though I can not find a kill command to do this. 我只有一个问题,尽管找不到杀死命令来执行此操作。 I am a newer programmer so as many details as you can give would be appreciated. 我是一名新手程序员,您将提供尽可能多的详细信息。 Thank You 谢谢

A very simple way (untested, but should work): 一种非常简单的方法(未经测试,但应该可以工作):

system("killall \"NAME-OF-EXECUTABLE\"");

Generally speaking, however, I would recommend using a branch of the exec functions instead of system to perform this task. 但是总的来说,我建议使用exec函数的一个分支而不是system来执行此任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 越狱手机的背景iPhone应用程序 - Background iPhone app for Jailbroken phones 为没有Cydia的越狱iPhone分发未签名的应用程序iPhone - Distribute unsigned app iPhone for jailbroken iPhone with no Cydia 如何在越狱的iPhone上测试iPhone应用程序? - How can I test an iPhone app on my iPhone that is Jailbroken? 试图在越狱的iphone上部署我的应用程序,但该应用程序立即关闭! - Attempting to deploy my app on my jailbroken iphone, but the app closes immediately! 无法在越狱的iPhone 4s 5.1.1上打开xcode 4.5.1应用 - cant open xcode 4.5.1 app on jailbroken iphone 4s 5.1.1 是否有任何“Hello world”教程,其中包含用于为越狱iPhone构建应用程序的XCode 4? - Is there any “Hello world” tutorial featuring XCode 4 for building app for jailbroken iPhone? 辞去Cydia应用程序以在非越狱iPhone上安装 - Resign Cydia App to Install on Non-Jailbroken iPhone 如何在越狱iPhone中使用命令shell卸载iOS应用程序 - How to uninstall iOS app using command shell in jailbroken iPhone 如何在越狱的iPhone上安装任意.app iPhone应用程序? - How do I install arbitrary .app iPhone applications to jailbroken iPhones? 在没有开发人员ID的越狱设备上部署iPhone应用程序的工作方法 - Working method to deploy iPhone app on jailbroken device without developer ID
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM