Skip to content

Commit

Permalink
got uicache working, now to fix autosign?!
Browse files Browse the repository at this point in the history
  • Loading branch information
hrtowii committed Jul 28, 2024
1 parent 4431270 commit 0df218d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified Bootstrap/jb.zip
Binary file not shown.
7 changes: 3 additions & 4 deletions RootHelperSample/launchdshim/launchdhook/jitter/jitter.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,17 @@ void jitterd_received_message(mach_port_t machPort, bool systemwide)
}
}
}

extern char **environ;
int main(int argc, char* argv[])
{
@autoreleasepool {
setJetsamEnabled(true);
if (shouldUiCache == true) {
pid_t pid;
extern char **environ;
char *argv[] = {"/var/jb/usr/bin/uicache", "-a", NULL};
char *argv[] = {"/var/jb/usr/bin/uicache", "-p", "/var/jb/Applications/Sileo.app", NULL};
posix_spawn(&pid, argv[0], NULL, NULL, argv, environ);
shouldUiCache = false;
}
}
mach_port_t machPort = 0;
kern_return_t kr = bootstrap_check_in(bootstrap_port, "com.hrtowii.jitterd", &machPort);
if (kr != KERN_SUCCESS) {
Expand Down
1 change: 1 addition & 0 deletions RootHelperSample/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ int main(int argc, char *argv[], char *envp[]) {
[[NSFileManager defaultManager] copyItemAtPath:[usprebooterappPath() stringByAppendingPathComponent:@"generalhooksigned.dylib"] toPath:jbrootobjc(@"/generalhooksigned.dylib") error:nil];
[[NSFileManager defaultManager] copyItemAtPath:[usprebooterappPath() stringByAppendingPathComponent:@"jitterd"] toPath:jbrootobjc(@"/jitterd") error:nil];
[[NSFileManager defaultManager] copyItemAtPath:[usprebooterappPath() stringByAppendingPathComponent:@"jitterd.plist"] toPath:jbrootobjc(@"/Library/LaunchDaemons/com.hrtowii.jitterd.plist") error:nil];
spawnRoot(@"/var/jb/usr/bin/uicache", @[@"-p", @"/var/jb/Applications/Sileo.app"], nil, nil);
// [[NSFileManager defaultManager] copyItemAtPath:[usprebooterappPath() stringByAppendingPathComponent:@"Serotonin.jp2"] toPath:@"/var/mobile/Serotonin.jp2" error:nil];
}
} else if ([action isEqual: @"uninstall"]) {
Expand Down

0 comments on commit 0df218d

Please sign in to comment.