diff options
-rw-r--r-- | MobileCydia.mm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index e2f1d85..8541b05 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 { |