From 6ffdaae37da1b4c63d067805fc279ef5cbe847e5 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 3 Mar 2011 12:23:03 -0800 Subject: Expose baseband serial number to SHSH service. --- MobileCydia.mm | 7 +++++++ 1 file changed, 7 insertions(+) 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 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]; -- cgit v1.2.3