From 5685d5148f9cbab872d63dcd00ab278c1a8a762f Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 2 Jul 2015 09:40:49 -0700 Subject: [PATCH] We can no longer protect ourself from the kill -9. --- MobileCydia.mm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 796c9d64..8765b7dc 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(); } -- 2.45.2