From: Jay Freeman (saurik) Date: Thu, 2 Jul 2015 16:18:00 +0000 (-0700) Subject: Using sbreload is not really needed anymore (yay). X-Git-Tag: v1.1.19~8 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/961a8eebb2a939226f87a6ec7bcacfa33d11c8b1 Using sbreload is not really needed anymore (yay). --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 95e5a40d..796c9d64 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 {