diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-03 12:23:03 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:35 -0800 |
commit | 6ffdaae37da1b4c63d067805fc279ef5cbe847e5 (patch) | |
tree | ba8962d654ea6c57ca20d664c7195be82bac6495 /MobileCydia.mm | |
parent | 947a8eefa4cc11fbccdb9b1495ec0f0f28663bd9 (diff) |
Expose baseband serial number to SHSH service.
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 0548647..0faac89 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -838,6 +838,7 @@ static const char *Machine_ = NULL; static NSString *System_ = nil; static NSString *SerialNumber_ = nil; static NSString *ChipID_ = nil; +static NSString *BBSNum_ = nil; static _H<NSString> Token_; static NSString *UniqueID_ = nil; static NSString *PLMN_ = nil; @@ -3913,6 +3914,7 @@ static NSMutableSet *Diversions_; + (NSArray *) _attributeKeys { return [NSArray arrayWithObjects: + @"bbsnum", @"device", @"ecid", @"firmware", @@ -3959,6 +3961,10 @@ static NSMutableSet *Diversions_; return (id) PLMN_ ?: [NSNull null]; } +- (NSString *) bbsnum { + return (id) BBSNum_ ?: [NSNull null]; +} + - (NSString *) ecid { return (id) ChipID_ ?: [NSNull null]; } @@ -10073,6 +10079,7 @@ int main(int argc, char *argv[]) { _pooled SerialNumber_ = CYIOGetValue("IOService:/", @"IOPlatformSerialNumber"); ChipID_ = CYHex(CYIOGetValue("IODeviceTree:/chosen", @"unique-chip-id"), true, true); + BBSNum_ = CYHex(CYIOGetValue("IOService:/AppleARMPE/baseband", @"snum"), false, false); UniqueID_ = [[UIDevice currentDevice] uniqueIdentifier]; |