Back to Security.framework on iOS 16+, apparently ldid signed binaries don't work on 16+

This commit is contained in:
opa334
2023-11-28 02:58:01 +01:00
parent 1b26441eb6
commit 1bd49022fa
4 changed files with 20 additions and 20 deletions
+5 -5
View File
@@ -54,12 +54,12 @@ extern NSUserDefaults* trollStoreUserDefaults();
errorDescription = @"The app's main executable does not exist.";
break;
case 175: {
//if (@available(iOS 15, *)) {
// errorDescription = @"Failed to sign the app.";
//}
//else {
if (@available(iOS 16, *)) {
errorDescription = @"Failed to sign the app.";
}
else {
errorDescription = @"Failed to sign the app. ldid returned a non zero status code.";
//}
}
}
break;
case 176:
+2 -2
View File
@@ -76,7 +76,7 @@
// or if it's the one from an old TrollStore version that's no longer supported
- (void)handleLdidCheck
{
//if (@available(iOS 15, *)) {} else {
if (@available(iOS 16, *)) {} else {
NSString* tsAppPath = [NSBundle mainBundle].bundlePath;
NSString* ldidPath = [tsAppPath stringByAppendingPathComponent:@"ldid"];
@@ -86,7 +86,7 @@
{
[TSInstallationController installLdid];
}
//}
}
}
- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
+4 -4
View File
@@ -34,7 +34,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
}
});
//if (@available(iOS 15, *)) {} else {
if (@available(iOS 16, *)) {} else {
fetchLatestLdidVersion(^(NSString* latestVersion)
{
NSString* ldidVersionPath = [NSBundle.mainBundle.bundlePath stringByAppendingPathComponent:@"ldid.version"];
@@ -54,7 +54,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
});
}
});
//}
}
}
- (NSMutableArray*)specifiers
@@ -113,7 +113,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
[_specifiers addObject:rebuildIconCacheSpecifier];
//if (@available(iOS 15, *)) { } else {
if (@available(iOS 16, *)) { } else {
NSString* ldidPath = [NSBundle.mainBundle.bundlePath stringByAppendingPathComponent:@"ldid"];
NSString* ldidVersionPath = [NSBundle.mainBundle.bundlePath stringByAppendingPathComponent:@"ldid.version"];
BOOL ldidInstalled = [[NSFileManager defaultManager] fileExistsAtPath:ldidPath];
@@ -188,7 +188,7 @@ extern NSUserDefaults* trollStoreUserDefaults(void);
installLdidSpecifier.buttonAction = @selector(installOrUpdateLdidPressed);
[_specifiers addObject:installLdidSpecifier];
}
//}
}
PSSpecifier* persistenceGroupSpecifier = [PSSpecifier emptyGroupSpecifier];
persistenceGroupSpecifier.name = @"Persistence";