summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-02-03 01:37:23 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2013-02-03 01:37:23 -0800
commitd10105f296d3c2c185e122fa3566cd033dff55f3 (patch)
tree396278990e59df0046e4239aee47e3edd21dd38d
parente06a3b1a154e00752e2ffc73f38361e7389c7278 (diff)
On iOS 6+, killall backboardd to Exit Safe Mode.
-rw-r--r--MobileSafety.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/MobileSafety.mm b/MobileSafety.mm
index e4c23f9..4a373d8 100644
--- a/MobileSafety.mm
+++ b/MobileSafety.mm
@@ -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: