diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..8f6edf8 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0576cc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.theos/* diff --git a/4x3folders.x b/4x3folders.x index 92ba05f..733e06a 100644 --- a/4x3folders.x +++ b/4x3folders.x @@ -38,34 +38,6 @@ BOOL dpkgInvalid = NO; } %end %ctor { -if (![NSProcessInfo processInfo]) return; - NSString *processName = [NSProcessInfo processInfo].processName; - bool isSpringboard = [@"SpringBoard" isEqualToString:processName]; - - // Someone smarter than Nepeta invented this. - // https://www.reddit.com/r/jailbreak/comments/4yz5v5/questionremote_messages_not_enabling/d6rlh88/ - bool shouldLoad = NO; - NSArray *args = [[NSClassFromString(@"NSProcessInfo") processInfo] arguments]; - NSUInteger count = args.count; - if (count != 0) { - NSString *executablePath = args[0]; - if (executablePath) { - NSString *processName = [executablePath lastPathComponent]; - BOOL isApplication = [executablePath rangeOfString:@"/Application/"].location != NSNotFound || [executablePath rangeOfString:@"/Applications/"].location != NSNotFound; - BOOL isFileProvider = [[processName lowercaseString] rangeOfString:@"fileprovider"].location != NSNotFound; - BOOL skip = [processName isEqualToString:@"AdSheet"] - || [processName isEqualToString:@"CoreAuthUI"] - || [processName isEqualToString:@"InCallService"] - || [processName isEqualToString:@"MessagesNotificationViewService"] - || [executablePath rangeOfString:@".appex/"].location != NSNotFound; - if ((!isFileProvider && isApplication && !skip) || isSpringboard) { - shouldLoad = YES; - } - } - } - - if (!shouldLoad) return; - dpkgInvalid = ![[NSFileManager defaultManager] fileExistsAtPath:@"/var/lib/dpkg/info/com.burritoz.4x3folders.list"]; if (!dpkgInvalid) dpkgInvalid = ![[NSFileManager defaultManager] fileExistsAtPath:@"/var/lib/dpkg/info/com.burritoz.4x3folders.md5sums"]; } diff --git a/control b/control index eea8a23..d6beccb 100644 --- a/control +++ b/control @@ -1,7 +1,7 @@ Package: com.burritoz.4x3folders Name: 4x3 Folders Depends: mobilesubstrate -Version: 1.0 +Version: 1.0.1 Architecture: iphoneos-arm Description: Sometimes 9 just isn't enough. Give your folders an extra column! Maintainer: burrit0z diff --git a/packages/com.burritoz.4x3folders_1.0.1_iphoneos-arm.deb b/packages/com.burritoz.4x3folders_1.0.1_iphoneos-arm.deb new file mode 100644 index 0000000..0c1f5dc Binary files /dev/null and b/packages/com.burritoz.4x3folders_1.0.1_iphoneos-arm.deb differ