diff options
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index e8d8cfc..632fb3a 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3964,6 +3964,7 @@ static _H<NSMutableSet> Diversions_; @"mcc", @"mnc", @"model", + @"operator", @"role", @"serial", @"token", @@ -4011,6 +4012,12 @@ static _H<NSMutableSet> Diversions_; return nil; } +- (NSString *) operator { + if (CFStringRef (*$CTRegistrationCopyOperatorName)(CFAllocatorRef) = reinterpret_cast<CFStringRef (*)(CFAllocatorRef)>(dlsym(RTLD_DEFAULT, "CTRegistrationCopyOperatorName"))) + return [(NSString *) (*$CTRegistrationCopyOperatorName)(kCFAllocatorDefault) autorelease]; + return nil; +} + - (NSString *) bbsnum { return (id) BBSNum_ ?: [NSNull null]; } |