summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-02 09:18:00 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-02 09:18:00 -0700
commit961a8eebb2a939226f87a6ec7bcacfa33d11c8b1 (patch)
tree0c565f79f3256c826484ebb248105be31caf2b0b
parent49cc457aa95e5bb3f5b461c607ab4e0d8f94b499 (diff)
Using sbreload is not really needed anymore (yay).
-rw-r--r--MobileCydia.mm27
1 files changed, 4 insertions, 23 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 95e5a40..796c9d6 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 {