Compare commits

..

3 Commits

Author SHA1 Message Date
alfiecg24 1092d91b5d 2.0.15 2024-03-30 17:31:09 +00:00
alfiecg24 8e9b3caa93 Fix broken error output 2024-03-30 17:24:27 +00:00
alfiecg24 4d8982545d Allow specifying binary paths for persistence helper 2024-03-30 12:08:58 +00:00
7 changed files with 22 additions and 10 deletions

View File

@ -1,6 +1,6 @@
Package: com.opa334.trollstoreroothelper Package: com.opa334.trollstoreroothelper
Name: trollstoreroothelper Name: trollstoreroothelper
Version: 2.0.14 Version: 2.0.15
Architecture: iphoneos-arm Architecture: iphoneos-arm
Description: An awesome tool of some sort!! Description: An awesome tool of some sort!!
Maintainer: opa334 Maintainer: opa334

View File

@ -1310,12 +1310,16 @@ BOOL _installPersistenceHelper(LSApplicationProxy* appProxy, NSString* sourcePer
return YES; return YES;
} }
void installPersistenceHelper(NSString* systemAppId) void installPersistenceHelper(NSString* systemAppId, NSString *persistenceHelperBinary, NSString *rootHelperBinary)
{ {
if(findPersistenceHelperApp(PERSISTENCE_HELPER_TYPE_ALL)) return; if(findPersistenceHelperApp(PERSISTENCE_HELPER_TYPE_ALL)) return;
NSString* persistenceHelperBinary = [trollStoreAppPath() stringByAppendingPathComponent:@"PersistenceHelper"]; if (persistenceHelperBinary == nil) {
NSString* rootHelperBinary = [trollStoreAppPath() stringByAppendingPathComponent:@"trollstorehelper"]; persistenceHelperBinary = [trollStoreAppPath() stringByAppendingPathComponent:@"PersistenceHelper"];
}
if (rootHelperBinary == nil) {
rootHelperBinary = [trollStoreAppPath() stringByAppendingPathComponent:@"trollstorehelper"];
}
LSApplicationProxy* appProxy = [LSApplicationProxy applicationProxyForIdentifier:systemAppId]; LSApplicationProxy* appProxy = [LSApplicationProxy applicationProxyForIdentifier:systemAppId];
if(!appProxy || ![appProxy.bundleType isEqualToString:@"System"]) return; if(!appProxy || ![appProxy.bundleType isEqualToString:@"System"]) return;
@ -1528,8 +1532,15 @@ int MAIN_NAME(int argc, char *argv[], char *envp[])
else if([cmd isEqualToString:@"install-persistence-helper"]) else if([cmd isEqualToString:@"install-persistence-helper"])
{ {
if(args.count < 2) return -3; if(args.count < 2) return -3;
NSString* systemAppId = args.lastObject; NSString* systemAppId = args[1];
installPersistenceHelper(systemAppId); NSString* persistenceHelperBinary;
NSString* rootHelperBinary;
if (args.count == 4) {
persistenceHelperBinary = args[2];
rootHelperBinary = args[3];
}
installPersistenceHelper(systemAppId, persistenceHelperBinary, rootHelperBinary);
} }
else if([cmd isEqualToString:@"uninstall-persistence-helper"]) else if([cmd isEqualToString:@"uninstall-persistence-helper"])
{ {

View File

@ -52,7 +52,7 @@
<string>iPhoneOS</string> <string>iPhoneOS</string>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2.0.14</string> <string>2.0.15</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>UIDeviceFamily</key> <key>UIDeviceFamily</key>

View File

@ -1,6 +1,6 @@
Package: com.opa334.trollstorehelper Package: com.opa334.trollstorehelper
Name: TrollStore Helper Name: TrollStore Helper
Version: 2.0.14 Version: 2.0.15
Architecture: iphoneos-arm Architecture: iphoneos-arm
Description: Helper utility to install and manage TrollStore! Description: Helper utility to install and manage TrollStore!
Maintainer: opa334 Maintainer: opa334

View File

@ -50,7 +50,7 @@
<string>iPhoneOS</string> <string>iPhoneOS</string>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2.0.14</string> <string>2.0.15</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>UIDeviceFamily</key> <key>UIDeviceFamily</key>

View File

@ -88,6 +88,7 @@ extern NSUserDefaults* trollStoreUserDefaults();
break; break;
case 184: case 184:
errorDescription = @"The app was installed successfully, but has additional binaries that are encrypted (e.g. extensions, plugins). The app itself should work, but you may experience broken functionality as a result."; errorDescription = @"The app was installed successfully, but has additional binaries that are encrypted (e.g. extensions, plugins). The app itself should work, but you may experience broken functionality as a result.";
break;
case 185: case 185:
errorDescription = @"Failed to sign the app. The CoreTrust bypass returned a non zero status code."; errorDescription = @"Failed to sign the app. The CoreTrust bypass returned a non zero status code.";
} }

View File

@ -1,6 +1,6 @@
Package: com.opa334.trollstore Package: com.opa334.trollstore
Name: TrollStore Name: TrollStore
Version: 2.0.14 Version: 2.0.15
Architecture: iphoneos-arm Architecture: iphoneos-arm
Description: An awesome application! Description: An awesome application!
Maintainer: opa334 Maintainer: opa334