From 9972f38199626a8fd3783c35b246fa9132543aa5 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 1 Jun 2012 05:32:37 +0000 Subject: [PATCH] Stop SpringBoard while we are messing with lsd. --- uicache.mm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/uicache.mm b/uicache.mm index 91609b7..71ee523 100644 --- a/uicache.mm +++ b/uicache.mm @@ -81,6 +81,11 @@ int main(int argc, const char *argv[]) { NSString *home(NSHomeDirectory()); NSString *path([NSString stringWithFormat:@"%@/Library/Caches/com.apple.mobile.installation.plist", home]); + system("killall -SIGSTOP SpringBoard"); + sleep(1); + + @try { + Class $LSApplicationWorkspace(objc_getClass("LSApplicationWorkspace")); LSApplicationWorkspace *workspace($LSApplicationWorkspace == nil ? nil : [$LSApplicationWorkspace defaultWorkspace]); @@ -151,6 +156,10 @@ int main(int argc, const char *argv[]) { system("killall installd"); + } @finally { + system("killall -SIGCONT SpringBoard"); + } + if (respring) system("launchctl stop com.apple.SpringBoard"); else -- 2.45.2