Browse Source

remove extraneous stuff

master
Burrit0z 4 years ago
parent
commit
dd16022bf9
5 changed files with 3 additions and 29 deletions
  1. BIN
      .DS_Store
  2. +2
    -0
      .gitignore
  3. +0
    -28
      4x3folders.x
  4. +1
    -1
      control
  5. BIN
      packages/com.burritoz.4x3folders_1.0.1_iphoneos-arm.deb

BIN
.DS_Store View File


+ 2
- 0
.gitignore View File


.theos/*

+ 0
- 28
4x3folders.x View File

} }
%end %end
%ctor { %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"]; 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"]; if (!dpkgInvalid) dpkgInvalid = ![[NSFileManager defaultManager] fileExistsAtPath:@"/var/lib/dpkg/info/com.burritoz.4x3folders.md5sums"];
} }

+ 1
- 1
control View File

Package: com.burritoz.4x3folders Package: com.burritoz.4x3folders
Name: 4x3 Folders Name: 4x3 Folders
Depends: mobilesubstrate Depends: mobilesubstrate
Version: 1.0
Version: 1.0.1
Architecture: iphoneos-arm Architecture: iphoneos-arm
Description: Sometimes 9 just isn't enough. Give your folders an extra column! Description: Sometimes 9 just isn't enough. Give your folders an extra column!
Maintainer: burrit0z Maintainer: burrit0z

BIN
packages/com.burritoz.4x3folders_1.0.1_iphoneos-arm.deb View File


Loading…
Cancel
Save