diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 03:02:31 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 03:02:31 -0700 |
commit | 0c0a966bea2bf3b32d0a5abb2658dd22215e9c7f (patch) | |
tree | 2fb82e58427fb63e46425919e3b7b4b2eec82a6c /MobileCydia.mm | |
parent | 232b396b15248b956dd18092649f378b0db8bd4d (diff) |
Trust in the mobile permissions on Cydia's caches.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index d0b89fb..d67a01e 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -5570,7 +5570,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { pid_t pid(ExecFork()); if (pid == 0) { - _root(execl("/usr/bin/sbreload", "sbreload", NULL)); + execl("/usr/libexec/cydia/cydo", "cydo", "/usr/bin/sbreload", NULL); perror("sbreload"); exit(0); @@ -8910,7 +8910,6 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi - (void) createDiskCachePath { [super createDiskCachePath]; - _root(chown([[self diskCachePath] UTF8String], 501, 501)); } @end @@ -9474,7 +9473,7 @@ _end NSAutoreleasePool *pool([[NSAutoreleasePool alloc] init]); _trace(); - _root(system([command UTF8String])); + system([command UTF8String]); _trace(); [pool release]; @@ -9790,7 +9789,7 @@ _end - (void) stash { [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque]; UpdateExternalStatus(1); - [self yieldToSelector:@selector(system:) withObject:@"/usr/libexec/cydia/free.sh"]; + [self yieldToSelector:@selector(system:) withObject:@"/usr/libexec/cydia/cydo /usr/libexec/cydia/free.sh"]; UpdateExternalStatus(0); [self removeStashController]; @@ -10486,13 +10485,13 @@ int main(int argc, char *argv[]) { dlopen("/Library/MobileSubstrate/MobileSubstrate.dylib", RTLD_LAZY | RTLD_GLOBAL);*/ if (kCFCoreFoundationVersionNumber > 1000) - _root(system([[NSString stringWithFormat:@"/usr/libexec/cydia/setnsfpn /var/lib"] UTF8String])); + system("/usr/libexec/cydia/cydo /usr/libexec/cydia/setnsfpn /var/lib"); int version([[NSString stringWithContentsOfFile:@"/var/lib/cydia/firmware.ver"] intValue]); if (access("/User", F_OK) != 0 || version != 6) { _trace(); - _root(system("/usr/libexec/cydia/firmware.sh")); + system("/usr/libexec/cydia/cydo /usr/libexec/cydia/firmware.sh"); _trace(); } @@ -10553,13 +10552,6 @@ int main(int argc, char *argv[]) { //UIKeyboardDisableAutomaticAppearance(); /* }}} */ - _root({ - chown([Cache("ApplicationCache.db") UTF8String], 501, 501); - chown([Cache("Cache.db") UTF8String], 501, 501); - chown([Cache("Cache.db-shm") UTF8String], 501, 501); - chown([Cache("Cache.db-wal") UTF8String], 501, 501); - }); - $SBSSetInterceptsMenuButtonForever = reinterpret_cast<void (*)(bool)>(dlsym(RTLD_DEFAULT, "SBSSetInterceptsMenuButtonForever")); const char *symbol(kCFCoreFoundationVersionNumber >= 800 ? "MGGetBoolAnswer" : "GSSystemHasCapability"); |