-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
#import "ForgetYourUpdate.h" | ||
|
||
%group iOS13 // 13-16 Works confirmed. (Palera1n rootless on iOS 16.2). | ||
%group iOS15 // 15-16 Works confirmed. (Palera1n rootless on iOS 16.2). | ||
%hook PSGGeneralController | ||
-(void)viewWillAppear:(BOOL)arg1 { %orig; [self removeSpecifierID:@"SOFTWARE_UPDATE_LINK" animated:NO]; } | ||
%end | ||
%end | ||
|
||
%group iOS12 // I have no idea, if this works iOS 11 and older versions. | ||
%hook PSUIGeneralController | ||
-(void)viewDidAppear:(BOOL)arg1 { %orig; [self removeSpecifierID:@"SOFTWARE_UPDATE_LINK" animated:NO]; } | ||
%end | ||
%end | ||
|
||
%ctor { if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"13.0")) { %init(iOS13); } else { %init(iOS12); } } | ||
%ctor { %init(iOS15); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#import "ForgetYourUpdate.h" | ||
|
||
__attribute__((constructor)) int main(int argc, char **argv, char **envp) | ||
{ | ||
[[NSUserDefaults standardUserDefaults] setObject:@NO forKey:@"MobileAssetSUAllowOSVersionChange"]; | ||
[[NSUserDefaults standardUserDefaults] setObject:@NO forKey:@"MobileAssetSUAllowSameVersionFullReplacement"]; | ||
[[NSUserDefaults standardUserDefaults] setObject:@"NULL" forKey:@"MobileAssetServerURL-com.apple.MobileAsset.SoftwareUpdate"]; | ||
[[NSUserDefaults standardUserDefaults] setObject:@"MULL" forKey:@"MobileAssetServerURL-com.apple.MobileAsset.MobileSoftwareUpdate.UpdateBrain"]; | ||
} |