diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2012-09-20 20:38:38 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2012-09-20 20:38:38 -0700 |
commit | 2b6abb5670bfa1bb1cb3273e3e7531bcab0e418c (patch) | |
tree | 75d9f96f21647fee5a959077dd81776ddf490cc3 | |
parent | 3ef539929ef61b6ebe2c07c3b5edb002ea628f3f (diff) |
Restart/Reload SpringBoard -> Restart backboardd.v1.1.8
-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 { |