]> git.saurik.com Git - cydia.git/commitdiff
Avoid using SystemVersion.plist.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Mar 2011 01:45:02 +0000 (18:45 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Mar 2011 01:45:02 +0000 (18:45 -0700)
MobileCydia.mm

index 632fb3af8dc22d8ea34e78414cab9c4df8589bc7..ae69acf2008957e2bd85b47c295ee280ef8d5fa7 100644 (file)
@@ -691,7 +691,6 @@ static NSString *ChipID_ = nil;
 static NSString *BBSNum_ = nil;
 static _H<NSString> Token_;
 static NSString *UniqueID_ = nil;
-static NSString *Build_ = nil;
 static NSString *Product_ = nil;
 static NSString *Safari_ = nil;
 
@@ -4623,8 +4622,8 @@ static _H<NSMutableSet> Diversions_;
 
     if (Safari_ != nil)
         application = [NSString stringWithFormat:@"Safari/%@ %@", Safari_, application];
-    if (Build_ != nil)
-        application = [NSString stringWithFormat:@"Mobile/%@ %@", Build_, application];
+    if (System_ != nil)
+        application = [NSString stringWithFormat:@"Mobile/%@ %@", System_, application];
     if (Product_ != nil)
         application = [NSString stringWithFormat:@"Version/%@ %@", Product_, application];
 
@@ -10236,8 +10235,6 @@ int main(int argc, char *argv[]) {
 
     UniqueID_ = [device uniqueIdentifier];
 
-    if (NSDictionary *system = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"])
-        Build_ = [system objectForKey:@"ProductBuildVersion"];
     if (NSDictionary *info = [NSDictionary dictionaryWithContentsOfFile:@"/Applications/MobileSafari.app/Info.plist"]) {
         Product_ = [info objectForKey:@"SafariProductVersion"];
         Safari_ = [info objectForKey:@"CFBundleVersion"];