diff options
Diffstat (limited to 'sbreload.m')
-rw-r--r-- | sbreload.m | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -265,7 +265,7 @@ int main(int argc, const char *argv[]) { platformizeme(); _assert(argc == 1, "usage: sbreload"); - if (kCFCoreFoundationVersionNumber >= 1443.00) { + if (kCFCoreFoundationVersionNumber >= 1400.00) { dlopen("/System/Library/PrivateFrameworks/PineBoardServices.framework/PineBoardServices", RTLD_LAZY); Class $PBSSystemService = objc_getClass("PBSSystemService"); if ($PBSSystemService) { @@ -299,6 +299,9 @@ int main(int argc, const char *argv[]) { } } } + // Don't fail back to old behavior on iOS11+ since it can cause hangs + system("launchctl stop com.apple.backboardd"); + return 0; } CFDictionaryRef plist = CreateMyPropertyListFromFile(SpringBoard_plist); _assert(plist != NULL, "CreateMyPropertyListFromFile() == NULL"); |