diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 09:40:49 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 09:40:49 -0700 |
commit | 5685d5148f9cbab872d63dcd00ab278c1a8a762f (patch) | |
tree | 2208a09b823ca85194f3a056c1ba0535921ea353 | |
parent | 961a8eebb2a939226f87a6ec7bcacfa33d11c8b1 (diff) |
We can no longer protect ourself from the kill -9.
-rw-r--r-- | MobileCydia.mm | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 796c9d6..8765b7d 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -678,7 +678,6 @@ static const NSString *UI_; static int Finish_; static bool RestartSubstrate_; -static bool UpgradeCydia_; static NSArray *Finishes_; #define SpringBoard_ "/System/Library/LaunchDaemons/com.apple.SpringBoard.plist" @@ -5125,8 +5124,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { issues_ = [NSMutableArray arrayWithCapacity:4]; - UpgradeCydia_ = false; - for (Package *package in packages) { pkgCache::PkgIterator iterator([package iterator]); NSString *name([package id]); @@ -5238,9 +5235,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [removes addObject:name]; } - if ([name isEqualToString:@"cydia"]) - UpgradeCydia_ = true; - substrate_ |= DepSubstrate(policy->GetCandidateVer(iterator)); substrate_ |= DepSubstrate(iterator.CurrentVer()); } @@ -9277,12 +9271,7 @@ _end - (void) _uicache { _trace(); - - if (UpgradeCydia_ && Finish_ > 0) - system("/usr/libexec/cydia/cydo /bin/su -c /usr/bin/uicache mobile"); - else - system("/usr/bin/uicache"); - + system("/usr/bin/uicache"); _trace(); } |