From: Jay Freeman (saurik) Date: Sun, 3 Feb 2013 09:37:23 +0000 (-0800) Subject: On iOS 6+, killall backboardd to Exit Safe Mode. X-Git-Tag: v0.9.3999.5^0 X-Git-Url: https://git.saurik.com/safemode-ios.git/commitdiff_plain/d10105f296d3c2c185e122fa3566cd033dff55f3?hp=e06a3b1a154e00752e2ffc73f38361e7389c7278 On iOS 6+, killall backboardd to Exit Safe Mode. --- 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: