diff --git a/Controllers/IPARAccountAndCreditsController.h b/Controllers/IPARAccountAndCreditsController.h index eb729d2..3ffb8d4 100644 --- a/Controllers/IPARAccountAndCreditsController.h +++ b/Controllers/IPARAccountAndCreditsController.h @@ -1,3 +1,5 @@ +#import +#import @interface IPARAccountAndCredits : UIViewController @end \ No newline at end of file diff --git a/Controllers/IPARAccountAndCreditsController.m b/Controllers/IPARAccountAndCreditsController.m index 0c72ee2..4ef6edc 100644 --- a/Controllers/IPARAccountAndCreditsController.m +++ b/Controllers/IPARAccountAndCreditsController.m @@ -91,6 +91,8 @@ - (void)loadView { UILabel *angelXwindLabel = [self createLabelWithText:@"angelXwind (appinst)" fontSize:14.0]; [contentView addSubview:angelXwindLabel]; + UILabel *versionLabel = [self createLabelWithText:@"Version 1.8" fontSize:14.0]; + [contentView addSubview:versionLabel]; [NSLayoutConstraint activateConstraints:@[ [headerImageView.centerXAnchor constraintEqualToAnchor:headerView.centerXAnchor], @@ -120,7 +122,9 @@ - (void)loadView { [majdLabel.topAnchor constraintEqualToAnchor:credits.bottomAnchor constant:8], [majdLabel.centerXAnchor constraintEqualToAnchor:self.view.centerXAnchor], [angelXwindLabel.topAnchor constraintEqualToAnchor:majdLabel.bottomAnchor constant:8], - [angelXwindLabel.centerXAnchor constraintEqualToAnchor:self.view.centerXAnchor] + [angelXwindLabel.centerXAnchor constraintEqualToAnchor:self.view.centerXAnchor], + [versionLabel.topAnchor constraintEqualToAnchor:angelXwindLabel.bottomAnchor constant:32], + [versionLabel.centerXAnchor constraintEqualToAnchor:self.view.centerXAnchor] ]]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateCountry) name:kIPARCountryChangedNotification object:nil]; diff --git a/Controllers/IPARDownloadViewController.m b/Controllers/IPARDownloadViewController.m index 3b5d97d..827eac2 100644 --- a/Controllers/IPARDownloadViewController.m +++ b/Controllers/IPARDownloadViewController.m @@ -47,6 +47,17 @@ - (void)loadView { _progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault]; _noDataLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.tableView.bounds.size.width, self.tableView.bounds.size.height)]; _downloadViewController = [[UIViewController alloc] init]; + + NSFileManager *fileManager = [NSFileManager defaultManager]; + // Check if the folder exists + BOOL created = NO; + BOOL isDirectory = NO; + BOOL directoryExists = [fileManager fileExistsAtPath:kIPARangerDocumentsPath isDirectory:&isDirectory]; + NSError *error = nil; + if ((directoryExists && isDirectory) == NO) { + created = [fileManager createDirectoryAtPath:kIPARangerDocumentsPath withIntermediateDirectories:YES attributes:nil error:&error]; + } + [self setupTableviewPropsAndBackground]; [self setupProgressViewCenter]; [self setupCountryButton]; diff --git a/Controllers/IPARLoginScreenViewController.m b/Controllers/IPARLoginScreenViewController.m index 52bec5a..111e36e 100644 --- a/Controllers/IPARLoginScreenViewController.m +++ b/Controllers/IPARLoginScreenViewController.m @@ -69,7 +69,7 @@ - (void)setupUnderlabel { - (void)setupVersionLabel { UILabel *versionLabel = [[UILabel alloc] initWithFrame:CGRectZero]; versionLabel.translatesAutoresizingMaskIntoConstraints = NO; - versionLabel.text = @"Version 1.4"; + versionLabel.text = @"Version 1.8"; versionLabel.textColor = [UIColor whiteColor]; [self.view addSubview:versionLabel]; [NSLayoutConstraint activateConstraints:@[ diff --git a/IPARAppDelegate.m b/IPARAppDelegate.m index 10b446b..be92a1f 100644 --- a/IPARAppDelegate.m +++ b/IPARAppDelegate.m @@ -11,7 +11,7 @@ @implementation IPARAppDelegate - (void)applicationDidFinishLaunching:(UIApplication *)application { _window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; - [self basicSanity]; + //[self basicSanity]; if ([[IPARUtils getKeyFromFile:kAuthenticatedKeyFromFile defaultValueIfNil:@"NO"] isEqualToString:@"YES"]) { IPARSearchViewController *searchVC = [[IPARSearchViewController alloc] init]; @@ -34,17 +34,17 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application { [_window makeKeyAndVisible]; } -- (void)basicSanity { - NSString *s = [IPARUtils sha256ForFileAtPath:kIpatoolScriptPath]; - AlertActionBlockWithTextField alertBlockConfirm = ^(UITextField *textField) { - exit(0); - }; - if (s == nil) { - [IPARUtils presentDialogWithTitle:kIPARangerErrorHeadline message:@"ipatool file was not found inside resources directory!" hasTextfield:NO withTextfieldBlock:nil - alertConfirmationBlock:alertBlockConfirm withConfirmText:@"Exit IPARanger" alertCancelBlock:nil withCancelText:nil presentOn:self]; - } else if (![s isEqualToString:kSha256verification]) { - [IPARUtils presentDialogWithTitle:kIPARangerErrorHeadline message:@"Could not verify the integrity of files" hasTextfield:NO withTextfieldBlock:nil - alertConfirmationBlock:alertBlockConfirm withConfirmText:@"Exit IPARanger" alertCancelBlock:nil withCancelText:nil presentOn:self]; - } -} +// - (void)basicSanity { +// NSString *s = [IPARUtils sha256ForFileAtPath:kIpatoolScriptPath]; +// AlertActionBlockWithTextField alertBlockConfirm = ^(UITextField *textField) { +// exit(0); +// }; +// if (s == nil) { +// [IPARUtils presentDialogWithTitle:kIPARangerErrorHeadline message:@"ipatool file was not found inside resources directory!" hasTextfield:NO withTextfieldBlock:nil +// alertConfirmationBlock:alertBlockConfirm withConfirmText:@"Exit IPARanger" alertCancelBlock:nil withCancelText:nil presentOn:self]; +// } else if (![s isEqualToString:kSha256verification]) { +// [IPARUtils presentDialogWithTitle:kIPARangerErrorHeadline message:@"Could not verify the integrity of files" hasTextfield:NO withTextfieldBlock:nil +// alertConfirmationBlock:alertBlockConfirm withConfirmText:@"Exit IPARanger" alertCancelBlock:nil withCancelText:nil presentOn:self]; +// } +// } @end diff --git a/Makefile b/Makefile index 713c24d..9860eef 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ -export TARGET = iphone:clang:14.4:14.4 +export TARGET = iphone:clang:14.5:14.5 INSTALL_TARGET_PROCESSES = IPARanger ARCHS = arm64 arm64e include $(THEOS)/makefiles/common.mk GO_EASY_ON_ME = 1 APPLICATION_NAME = IPARanger +DEBUG = 1 SOURCES = $(shell find . -name 'IPAR*.m') diff --git a/Utils/IPARUtils.h b/Utils/IPARUtils.h index dded7dd..933ae4b 100644 --- a/Utils/IPARUtils.h +++ b/Utils/IPARUtils.h @@ -1,4 +1,6 @@ #import +#import +#import #pragma clang diagnostic ignored "-Wunused-variable" @interface NSTask : NSObject diff --git a/entitlements.plist b/entitlements.plist index 34a6fc7..56b293d 100644 --- a/entitlements.plist +++ b/entitlements.plist @@ -10,5 +10,11 @@ com.apple.private.persona-mgmt + com.apple.security.iokit-user-client-class + + AGXDeviceUserClient + IOHDIXControllerUserClient + IOSurfaceRootUserClient + \ No newline at end of file diff --git a/layout/DEBIAN/control b/layout/DEBIAN/control index 381d277..4fe14a9 100644 --- a/layout/DEBIAN/control +++ b/layout/DEBIAN/control @@ -1,9 +1,9 @@ Package: com.0xkuj.iparanger Name: IPA Ranger -Version: 1.4 +Version: 1.8 Architecture: iphoneos-arm Description: GUI Based Application for ipatool -Depends: ai.akemi.appsyncunified, gawk, unzip +Depends: gawk, unzip Maintainer: 0xkuj Author: 0xkuj -Section: Applications \ No newline at end of file +Section: Applications diff --git a/layout/DEBIAN/postinst b/layout/DEBIAN/postinst index 7b7e0b4..0293f7d 100755 --- a/layout/DEBIAN/postinst +++ b/layout/DEBIAN/postinst @@ -3,6 +3,13 @@ FILES_DIR="//var/mobile/Documents/IPARanger" echo "Settings up permissions to the main files directory..." +if [ -d $FILES_DIR ]; then + echo "$FILES_DIR Already exists!" +else + echo "$FILES_DIR Does not exists, Creating directory.." + mkdir $FILES_DIR +fi + chown -R 501:501 $FILES_DIR if [ $? -ne 0 ]; then echo "Settings up permissions FAILED with exit status $?. this may cause unexpected behavior" diff --git a/packages/com.0xkuj.iparanger_1.8_iphoneos-arm.deb b/packages/com.0xkuj.iparanger_1.8_iphoneos-arm.deb new file mode 100644 index 0000000..d4c9f8e Binary files /dev/null and b/packages/com.0xkuj.iparanger_1.8_iphoneos-arm.deb differ diff --git a/packages/com.0xkuj.iparanger_1.8_iphoneos-arm64.deb b/packages/com.0xkuj.iparanger_1.8_iphoneos-arm64.deb new file mode 100644 index 0000000..785616e Binary files /dev/null and b/packages/com.0xkuj.iparanger_1.8_iphoneos-arm64.deb differ