From: Jay Freeman (saurik) Date: Wed, 15 Jan 2014 12:28:37 +0000 (-0800) Subject: On iOS 7, fix dialog pop on unlock (parrotgeek1). X-Git-Tag: v0.9.4000~5 X-Git-Url: https://git.saurik.com/safemode-ios.git/commitdiff_plain/a41140486c4507fb803fdc20272e6a746965afb6?ds=sidebyside On iOS 7, fix dialog pop on unlock (parrotgeek1). --- diff --git a/Tweak.xm b/Tweak.xm index cbab28d..e91b4b6 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -205,6 +205,15 @@ static void AlertIfNeeded() { MSAlert(); } +// on iOS 7 (maybe also iOS 6) we should really just hook the unlock mechanism +// XXX: deterine where this works and maybe unify this code + +%hook SBLockScreenManager +- (void) _finishUIUnlockFromSource:(int)source withOptions:(id)options { + %orig; + AlertIfNeeded(); +} %end + // on iOS 4.3 and above we can use this advertisement, which seems to check every time the user unlocks // XXX: verify that this still works on iOS 5.0