Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 813a4ed

Browse files
author
张国晔
committed
Version 1.0
0 parents  commit 813a4ed

File tree

6 files changed

+70
-0
lines changed

6 files changed

+70
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
*.deb
3+
obj/
4+
_/
5+
*theos

HideSoftwareUpdate.plist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ Filter = { Bundles = ( "com.apple.preferences-framework" ); }; }

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org>

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ARCHS = armv7 armv7s arm64
2+
TARGET = iphone:clang:7.0:5.0
3+
4+
include theos/makefiles/common.mk
5+
6+
TWEAK_NAME = HideSoftwareUpdate
7+
HideSoftwareUpdate_FILES = Tweak.x
8+
9+
include $(THEOS_MAKE_PATH)/tweak.mk
10+
iMessageSpamReporter_FRAMEWORKS = UIKit
11+
ADDITIONAL_OBJCFLAGS = -fobjc-arc
12+
13+
after-install::
14+
install.exec "killall -9 Preferences"

Tweak.x

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@interface PSSpecifier
2+
@property(strong, nonatomic) NSString *identifier;
3+
@end
4+
5+
@interface PSListController
6+
- (PSSpecifier *)specifier;
7+
@end
8+
9+
%hook PSListController
10+
11+
- (NSInteger)tableView:(id)view numberOfRowsInSection:(NSInteger)section {
12+
if ([[self specifier].identifier isEqualToString:@"General"] && (section == 0))
13+
return 1;
14+
else
15+
return %orig(view, section);
16+
}
17+
18+
%end

control

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Package: com.ccdog.hidesoftwareupdate
2+
Name: HideSoftwareUpdate
3+
Depends: firmware (>= 5.0), mobilesubstrate
4+
Version: 1.0
5+
Architecture: iphoneos-arm
6+
Description: Hide Software Update in Preferences.app.
7+
Author: CC-Dog <[email protected]>
8+
Section: Tweaks

0 commit comments

Comments
 (0)