summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2012-09-20 20:38:38 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2012-09-20 20:38:38 -0700
commit2b6abb5670bfa1bb1cb3273e3e7531bcab0e418c (patch)
tree75d9f96f21647fee5a959077dd81776ddf490cc3
parent3ef539929ef61b6ebe2c07c3b5edb002ea628f3f (diff)
Restart/Reload SpringBoard -> Restart backboardd.v1.1.8
-rw-r--r--MobileCydia.mm9
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 {