From 2656c992b0e1ecb4324519c2355d26ccb1ab3a83 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 18 Mar 2011 10:10:08 -0700 Subject: [PATCH] Add cydia.operator. --- MobileCydia.mm | 7 +++++++ 1 file changed, 7 insertions(+) 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]; } -- 2.50.0