diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 06:23:36 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 06:39:47 -0800 |
commit | 56296da00b08734c4491c75adef73afe358b9d4e (patch) | |
tree | 3bf25fa7d0b082f03a01c138db16f53e1bc92067 | |
parent | 5c32f89eceebdb0cc215134529145762a9951f51 (diff) |
Shuffle set of system variables accessible via JS.
-rw-r--r-- | MobileCydia.mm | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 17fbf39..1e96e7b 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); |