summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-01-15 04:29:54 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2014-01-15 04:29:54 -0800
commit7ebd339758c06a951d708150bb13924d80160d08 (patch)
tree03ee8a3fba7832a1c95df83e3a6c1a81b1bf9d71
parentc5182285772ffdfabf5731528da3ffbf1dfd2290 (diff)
Attempt to disable the user's wallpaper on iOS 7.
-rw-r--r--Tweak.xm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tweak.xm b/Tweak.xm
index 9b4a133..5b6f143 100644
--- 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_];