##需求:
1. 获取未越狱设备的监管型号(如:A1453)
2. 获取越狱设备的监管型号
3. 获取越狱设备的ECID
4. 修改以上信息
代码:
- (NSString*)serialNumber
{
return [self deviceValueForKey:@"SerialNumber"];
}
// Returns an informational value from the device's root domain.
// 但是我没有找到监管型号和ECID对应的key,不知道是该方法的局限性还是其他的原因
已知key
Key | Typical value |
---|---|
ActivationState | “Activated” |
ActivationStateAcknowledged | 1 |
BasebandBootloaderVersion | “5.8_M3S2” |
BasebandVersion | “01.45.00” |
BluetoothAddress | ? |
BuildVersion | “7A341” |
DeviceCertificate | lots of bytes |
DeviceClass | “iPod” |
DeviceName | “SmartArray” |
DevicePublicKey | lots of bytes |
FirmwareVersion | “iBoot-596.24” |
HostAttached | 1 |
IntegratedCircuitCardIdentity | ? |
InternationalMobileEquipmentIdentity | ? |
InternationalMobileSubscriberIdentity | ? |
ModelNumber | “MA627” |
PhoneNumber | ? |
ProductType | “iPod1,1” |
ProductVersion | “3.0” |
ProtocolVersion | 2 |
RegionInfo | “ZP/B” |
SBLockdownEverRegisteredKey | 0 |
SIMStatus | “kCTSIMSupportSIMStatusReady” |
SerialNumber | “5282327” |
SomebodySetTimeZone | 1 |
TimeIntervalSince1970 | 1249723940 |
TimeZone | “Australia/Sydney” |
TimeZoneOffsetFromUTC | 36000 |
TrustedHostAttached | 1 |
UniqueDeviceID | “ab9999db56f0c444441b1c3cf6bb6666c53eea47” |
Uses24HourClock | 0 |
WiFiAddress | “00:1e:a1:52:91:ed” |
iTunesHasConnected | 1 |
HardwareModel | ??? |
UniqueChipID | ??? |
ProductionSOC(基带证书) | ??? |
操作步骤:
百度,google,bing,知乎,最后找到了这里,现在仅能读取,还不知道怎么改,我猜应该首先需要越狱吧。