From: Jay Freeman (saurik) Date: Sat, 19 Feb 2011 14:23:36 +0000 (-0800) Subject: Shuffle set of system variables accessible via JS. X-Git-Tag: v1.1.0%b1~293 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/56296da00b08734c4491c75adef73afe358b9d4e Shuffle set of system variables accessible via JS. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 17fbf39d..1e96e7bc 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3861,9 +3861,10 @@ static NSString *Warning_; + (NSArray *) _attributeKeys { return [NSArray arrayWithObjects: @"device", - @"firewire", - @"imei", - @"mac", + @"ecid", + @"model", + @"plmn", + @"role", @"serial", nil]; } @@ -3880,27 +3881,25 @@ static NSString *Warning_; return [[UIDevice currentDevice] uniqueIdentifier]; } -#if 0 // XXX: implement! -- (NSString *) mac { - if (![indirect_ promptForSensitive:@"Mac Address"]) - return nil; +- (NSString *) plmn { + return PLMN_; +} + +- (NSString *) ecid { + return ChipID_; } - (NSString *) serial { - if (![indirect_ promptForSensitive:@"Serial #"]) - return nil; + return SerialNumber_; } -- (NSString *) firewire { - if (![indirect_ promptForSensitive:@"Firewire GUID"]) - return nil; +- (NSString *) role { + return Role_; } -- (NSString *) imei { - if (![indirect_ promptForSensitive:@"IMEI"]) - return nil; +- (NSString *) model { + return [NSString stringWithUTF8String:Machine_]; } -#endif + (NSString *) webScriptNameForSelector:(SEL)selector { if (false);