From 961a8eebb2a939226f87a6ec7bcacfa33d11c8b1 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 2 Jul 2015 09:18:00 -0700 Subject: Using sbreload is not really needed anymore (yay). --- MobileCydia.mm | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 95e5a40..796c9d6 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -5531,31 +5531,12 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (void) reloadSpringBoard { - if (kCFCoreFoundationVersionNumber > 700) { // XXX: iOS 6.x + if (kCFCoreFoundationVersionNumber >= 700) // XXX: iOS 6.x system("/bin/launchctl stop com.apple.backboardd"); - sleep(15); - system("/usr/bin/killall backboardd SpringBoard sbreload"); - return; - } - - pid_t pid(ExecFork()); - if (pid == 0) { - if (setsid() == -1) - perror("setsid"); - - pid_t pid(ExecFork()); - if (pid == 0) { - execl("/usr/libexec/cydia/cydo", "cydo", "/usr/bin/sbreload", NULL); - perror("sbreload"); - - exit(0); - } ReapZombie(pid); - - exit(0); - } ReapZombie(pid); - + else + system("/bin/launchctl stop com.apple.SpringBoard"); sleep(15); - system("/usr/bin/killall backboardd SpringBoard sbreload"); + system("/usr/bin/killall backboardd SpringBoard"); } - (void) close { -- cgit v1.2.3