]> git.saurik.com Git - safemode-ios.git/commitdiff
On iOS 6+, killall backboardd to Exit Safe Mode. v0.9.3999.5
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Feb 2013 09:37:23 +0000 (01:37 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Feb 2013 09:37:23 +0000 (01:37 -0800)
MobileSafety.mm

index e4c23f975d5da46a0abcbd2a6ef3b92e272c5640..4a373d85c5fca5d9b5f0b3019271b01cc3513c27 100644 (file)
@@ -96,8 +96,11 @@ void SafeModeAlertItem$alertSheet$buttonClicked$(id self, SEL sel, id sheet, int
         break;
 
         case 2:
-            // XXX: there are better ways of restarting SpringBoard that would actually save state
-            exit(0);
+            if (kCFCoreFoundationVersionNumber > 700)
+                system("killall backboardd");
+            else
+                // XXX: there are better ways of restarting SpringBoard that would actually save state
+                exit(0);
         break;
 
         case 3: