检测iPhone / iPod的颜色 [英] Detect color of iPhone / iPod

查看:187
本文介绍了检测iPhone / iPod的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

检测iPhone / iPod touch的颜色?

是否可以检测iPhone / iPod的颜色 - 无论是在本机还是在移动浏览器中?

Is it at all possible to detect the color of an iPhone / iPod - either natively or in the mobile browser?

我正在与一位设计师合作,网络应用程序会响应设备的颜色。

I'm working with a designer who would love to make a web app respond to the color of the device.

推荐答案

我认为这是不可能的。内部硬件(保持所有部件在一起的主板和部件本身)在没有关于最终外壳的任何知识的情况下制造。对于软件(固件和iOS)也是如此,因为除了可能嵌入在固件中的任何序列号,所有设备都获得完全相同的软件的相同拷贝,字节相同。可能的情况是,苹果使用不同的设备序列号范围不同的外壳,但这只是一个疯狂的猜测。

I don't think this is possible. The internal hardware (the "motherboard" keeping all the components together and the components themselves) is manufactured without any knowledge about the final casing. The same is true for the software (firmware and iOS), since all devices get an equal copy of exactly the same software, byte for byte identical, except for any serial numbers that might be embedded in the firmware. It might be the case that Apple uses different device serial number ranges for different casings, yet that is just a wild speculation.

这就像建一辆汽车:所有组件(发动机,电子产品等)都是同样制造的,不管最终的汽车涂装什么颜色。实际的汽车是完全组装,所有硬件和所有软件,并准备使用之前它的颜色涂层;

It's like building a car: All components (engine, electronics, etc.) are equally manufactured, regardless with what color the final car will be coated. Actual the car is completely assembled, all hardware and all software, and ready to be used before it is color coated; and up to the last second the final decision how to color it may change.



UPDATE

我对这个话题做了一些更多的调查,我发现野生投机并不像我假设的那么疯狂。这似乎是苹果使用不同的序列号范围不同的设备颜色的情况。

I did some more investigations on this topic and I found out that the "wild speculation" is not as wild as I assumed it to be. It really seems to be the case that Apple uses different serial number ranges for different device colors. The serial number (as well as similar numbers, like the IMEI of iPhones) are the only parts of the device firmware that are different for each device manufactured.

Apple使用的是以下的序列号格式(不确定这是否仍然是最新的,但它仍然是最新的iPhone 4):

Apple used the following serial number format in the past (not sure if this is still up-to-date, but it was still up-to-date for the iPhone 4):

AABCCDDDEEE

 AA = ID of the factory that manufactured the device.
  B = Year of production: 8=>2008, 9=>2009, 0=>2010, 1=>2011, etc.
 CC = Week number of the year.
DDD = Production index number, is reset every week, base-34 encoded.
EEE = Model ID.

有趣的值是Model ID。相同的设备生成具有不同的型号ID,具体取决于它们的颜色和可用存储量。

The interesting value is the "Model ID". The same device generation has different Model IDs depending on their color and the amount of available storage.

我没有找到所有可能的值的完整列表。即使有这样一个完整的列表,你仍然有一个问题,你需要保持最新,因为苹果不断发布新模型,所以该列表可能过时的任何几个月(至少一年或甚至两次)。以下是序列号(EEE)最后3位数字的一些示例值:

I haven't found any complete list of all the possible values, though. And even if there was such a complete list, you still have the problem that you need to keep it up-to-date, since Apple is constantly releasing new models, so the list could be out-dated any couple of months (at least once or even twice a year). Here are some sample values for the last 3 digits of the serial number (EEE):

VR0: iPhone 2G Silver 4GB
WH8: iPhone 2G Silver 8GB
0KH: iPhone 2G Silver 16GB
Y7H: iPhone 3G Black 8GB
Y7K: iPhone 3G Black 16GB
3NP: iPhone 3GS Black 16GB
3NR: iPhone 3GS Black 32GB
3NQ: iPhone 3Gs White 16GB
3NS: iPhone 3Gs White 32GB
A4S: iPhone 4 Black 16GB
A4T: iPhone 4 Black 32GB

到目前为止,我还没有找到当前iPod代的任何示例值。

I haven't found any sample values for the current iPod generations so far.

这篇关于检测iPhone / iPod的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆