Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rootful branch #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Controllers/IPARAccountAndCreditsController.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface IPARAccountAndCredits : UIViewController
@end
6 changes: 5 additions & 1 deletion Controllers/IPARAccountAndCreditsController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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];
Expand Down
11 changes: 11 additions & 0 deletions Controllers/IPARDownloadViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion Controllers/IPARLoginScreenViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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:@[
Expand Down
28 changes: 14 additions & 14 deletions IPARAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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')

Expand Down
2 changes: 2 additions & 0 deletions Utils/IPARUtils.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#import <CommonCrypto/CommonDigest.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#pragma clang diagnostic ignored "-Wunused-variable"

@interface NSTask : NSObject
Expand Down
6 changes: 6 additions & 0 deletions entitlements.plist
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
<true/>
<key>com.apple.private.persona-mgmt</key>
<true/>
<key>com.apple.security.iokit-user-client-class</key>
<array>
<string>AGXDeviceUserClient</string>
<string>IOHDIXControllerUserClient</string>
<string>IOSurfaceRootUserClient</string>
</array>
</dict>
</plist>
6 changes: 3 additions & 3 deletions layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -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
Section: Applications
7 changes: 7 additions & 0 deletions layout/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Binary file added packages/com.0xkuj.iparanger_1.8_iphoneos-arm.deb
Binary file not shown.
Binary file not shown.