diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a3c36dd --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.theos/ +packages/ +*.DS_Store +Payload/ +TrollDecrypt.tipa \ No newline at end of file diff --git a/Payload/TrollDecrypt.app/AppIcon60x60.png b/Payload/TrollDecrypt.app/AppIcon60x60.png deleted file mode 100644 index 9989629..0000000 Binary files a/Payload/TrollDecrypt.app/AppIcon60x60.png and /dev/null differ diff --git a/Payload/TrollDecrypt.app/AppIcon76x76~ipad.png b/Payload/TrollDecrypt.app/AppIcon76x76~ipad.png deleted file mode 100644 index b2d07fb..0000000 Binary files a/Payload/TrollDecrypt.app/AppIcon76x76~ipad.png and /dev/null differ diff --git a/Payload/TrollDecrypt.app/Info.plist b/Payload/TrollDecrypt.app/Info.plist deleted file mode 100644 index 598a85f..0000000 --- a/Payload/TrollDecrypt.app/Info.plist +++ /dev/null @@ -1,68 +0,0 @@ - - - - - CFBundleExecutable - TrollDecrypt - CFBundleIcons - - CFBundlePrimaryIcon - - CFBundleIconFiles - - AppIcon60x60 - - UIPrerenderedIcon - - - - CFBundleIcons~ipad - - CFBundlePrimaryIcon - - CFBundleIconFiles - - AppIcon60x60 - AppIcon76x76~ipad - - UIPrerenderedIcon - - - - CFBundleIdentifier - com.fiore.trolldecrypt - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleSignature - ???? - CFBundleSupportedPlatforms - - iPhoneOS - - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - UIDeviceFamily - - 1 - 2 - - UIRequiredDeviceCapabilities - - armv7 - - UILaunchStoryboardName - LaunchScreen - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - - - diff --git a/Payload/TrollDecrypt.app/TrollDecrypt b/Payload/TrollDecrypt.app/TrollDecrypt deleted file mode 100644 index 33c01bc..0000000 Binary files a/Payload/TrollDecrypt.app/TrollDecrypt and /dev/null differ diff --git a/TDUtils.m b/TDUtils.m index 68a5b75..a803467 100644 --- a/TDUtils.m +++ b/TDUtils.m @@ -193,14 +193,24 @@ void bfinject_rocknroll(pid_t pid, NSString *appName, NSString *version) { [alertController dismissViewControllerAnimated:NO completion:nil]; doneController = [UIAlertController alertControllerWithTitle:@"Decryption Complete!" message:[NSString stringWithFormat:@"IPA file saved to:\n%@", [dd IPAPath]] preferredStyle:UIAlertControllerStyleAlert]; + UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Ok", @"Ok") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) { - NSLog(@"[trolldecrypt] Ok action"); - [doneController dismissViewControllerAnimated:NO completion:nil]; [kw removeFromSuperview]; kw.hidden = YES; }]; - [doneController addAction:okAction]; + + if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"filza://"]]) { + UIAlertAction *openAction = [UIAlertAction actionWithTitle:@"Show in Filza" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) { + [kw removeFromSuperview]; + kw.hidden = YES; + + NSString *urlString = [NSString stringWithFormat:@"filza://view%@", [dd IPAPath]]; + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil]; + }]; + [doneController addAction:openAction]; + } + [root presentViewController:doneController animated:YES completion:nil]; }); // dispatch on main