From: Jay Freeman (saurik) Date: Fri, 18 Mar 2011 17:10:08 +0000 (-0700) Subject: Add cydia.operator. X-Git-Tag: v1.1.0%rc1~79 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/2656c992b0e1ecb4324519c2355d26ccb1ab3a83 Add cydia.operator. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index e8d8cfc1..632fb3af 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3964,6 +3964,7 @@ static _H Diversions_; @"mcc", @"mnc", @"model", + @"operator", @"role", @"serial", @"token", @@ -4011,6 +4012,12 @@ static _H Diversions_; return nil; } +- (NSString *) operator { + if (CFStringRef (*$CTRegistrationCopyOperatorName)(CFAllocatorRef) = reinterpret_cast(dlsym(RTLD_DEFAULT, "CTRegistrationCopyOperatorName"))) + return [(NSString *) (*$CTRegistrationCopyOperatorName)(kCFAllocatorDefault) autorelease]; + return nil; +} + - (NSString *) bbsnum { return (id) BBSNum_ ?: [NSNull null]; }