]> git.saurik.com Git - safemode-ios.git/commitdiff
Attempt to disable the user's wallpaper on iOS 7.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 15 Jan 2014 12:29:54 +0000 (04:29 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 15 Jan 2014 12:29:54 +0000 (04:29 -0800)
Tweak.xm

index 9b4a1338a6ef9a5a166400554af628b6c2f2047a..5b6f143e7e775cb70cd2595f48f82111111c4884 100644 (file)
--- a/Tweak.xm
+++ b/Tweak.xm
@@ -278,6 +278,11 @@ static void AlertIfNeeded() {
 
 #define Paper_ "/Library/MobileSubstrate/MobileSafety.png"
 
+%hook SBWallpaperImage
++ (id) alloc {
+    return nil;
+} %end
+
 %hook UIImage
 + (UIImage *) defaultDesktopImage {
     return [UIImage imageWithContentsOfFile:@Paper_];