]> git.saurik.com Git - cydia.git/commitdiff
Removed Sandbox Template hashing.
authorJay Freeman (saurik) <saurik@saurk.com>
Sun, 31 May 2009 06:22:29 +0000 (06:22 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:13:15 +0000 (07:13 +0000)
Cydia.mm

index dec55587ecc54a13f84eaeb6179bac4f5b0630db..e069dd7f40d29a88605a173ab28982c9ef51fcd2 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -1051,7 +1051,6 @@ static const int ButtonBarHeight_ = 48;
 static const float KeyboardTime_ = 0.3f;
 
 #define SpringBoard_ "/System/Library/LaunchDaemons/com.apple.SpringBoard.plist"
-#define SandboxTemplate_ "/usr/share/sandbox/SandboxTemplate.sb"
 #define NotifyConfig_ "/etc/notify.conf"
 
 static bool Queuing_;
@@ -4042,19 +4041,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
     [delegate_ progressViewIsComplete:self];
 
-    if (Finish_ < 4) {
-        FileFd file;
-        if (!file.Open(SandboxTemplate_, FileFd::ReadOnly))
-            _error->Discard();
-        else {
-            MMap mmap(file, MMap::ReadOnly);
-            SHA1Summation sha1;
-            sha1.Add(reinterpret_cast<uint8_t *>(mmap.Data()), mmap.Size());
-            if (!(sandplate_ == sha1.Result()))
-                Finish_ = 4;
-        }
-    }
-
     if (Finish_ < 4) {
         FileFd file;
         if (!file.Open(NotifyConfig_, FileFd::ReadOnly))
@@ -4226,18 +4212,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     [delegate_ setStatusBarShowsProgress:YES];
     running_ = YES;
 
-    {
-        FileFd file;
-        if (!file.Open(SandboxTemplate_, FileFd::ReadOnly))
-            _error->Discard();
-        else {
-            MMap mmap(file, MMap::ReadOnly);
-            SHA1Summation sha1;
-            sha1.Add(reinterpret_cast<uint8_t *>(mmap.Data()), mmap.Size());
-            sandplate_ = sha1.Result();
-        }
-    }
-
     {
         FileFd file;
         if (!file.Open(NotifyConfig_, FileFd::ReadOnly))