Skip to content

Commit

Permalink
This was a fluke (not surprising...)
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Feb 24, 2024
1 parent 7fecb10 commit 0f822c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions Application/Dopamine/Jailbreak/DOEnvironmentManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,6 @@ - (void)setJailbreakHidden:(BOOL)hidden
[self unregisterJailbreakApps];
[[NSFileManager defaultManager] removeItemAtPath:NSJBRootPath(@"/basebin/.fakelib/systemhook.dylib") error:nil];
carbonCopy(NSJBRootPath(@"/basebin/.dyld.orig"), NSJBRootPath(@"/basebin/.fakelib/dyld"));

// For some weird reason after removing systemhook from fakelib, accessing "/usr/lib/systemhook.dylib" still works
// For some even more weird reason, just opening /usr/lib and closing it again fixes it o.O
int fd = open("/usr/lib", O_RDONLY);
if (fd >= 0) close(fd);
}
[[NSFileManager defaultManager] removeItemAtPath:@"/var/jb" error:nil];
}
Expand Down
4 changes: 0 additions & 4 deletions BaseBin/launchdhook/src/update.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,4 @@ void jbupdate_finalize_stage2(const char *prevVersion, const char *newVersion)
if (!access(JBRootPath("/basebin/.idownloadd_enabled"), F_OK)) {
remove(JBRootPath("/basebin/.idownloadd_enabled"));
}

// Seems to fix systemhook taking a while to become updated
int fd = open("/usr/lib", O_RDONLY);
if (fd >= 0) close(fd);
}

0 comments on commit 0f822c9

Please sign in to comment.