From: Jay Freeman (saurik) Date: Fri, 21 Sep 2012 03:38:38 +0000 (-0700) Subject: Restart/Reload SpringBoard -> Restart backboardd. X-Git-Tag: v1.1.8^0 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/2b6abb5670bfa1bb1cb3273e3e7531bcab0e418c?hp=3ef539929ef61b6ebe2c07c3b5edb002ea628f3f Restart/Reload SpringBoard -> Restart backboardd. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index e2f1d85d..8541b057 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -5287,6 +5287,13 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (void) reloadSpringBoard { + 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) { pid_t pid(ExecFork()); @@ -5302,7 +5309,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { ReapZombie(pid); sleep(15); - system("/usr/bin/killall SpringBoard"); + system("/usr/bin/killall backboardd SpringBoard sbreload"); } - (void) close {