Tuesday, 15 May 2012

ios6 - kill application from other application on ios 6 using void kill dont work -



ios6 - kill application from other application on ios 6 using void kill dont work -

i got jailbreak iphone ios 6

in tweak on ios 4&5 used (void) kill close other app running in background. code:

class="lang-objc prettyprint-override">#import "sbapplication.h" sbapplication *app ; app = [[objc_getclass("sbapplicationcontroller") sharedinstance] applicationwithdisplayidentifier:@"my killed programme id "]; if(app) [app kill];

now when trying in ios 6 cant work ! need help?

just expand on victors reply bit... want pid application , if greater 0(a valid pid), kill either sigterm(nicer, though it's not guaranteed kill it) or sigkill(forceful termination)

sbapplicationcontroller *appcontroller = [objc_getclass("sbapplicationcontroller") sharedinstance]; sbapplication *app = [appcontroller applicationwithdisplayidentifier:appid]; if (app.pid > 0) kill(app.pid, sigterm);

info termination signals: http://www.gnu.org/software/libc/manual/html_node/termination-signals.html

ios6 jailbreak kill tweak

No comments:

Post a Comment