微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

xcode – 以编程方式获取macbook / device颜色

我想检测用户设备的颜色以将其与实际设备的图像相关联(例如:Macbook SpaceGray或Gold).

我找到了一个用于iOS设备的私有API,但有没有办法在OSX中做到这一点(如果可能,合法)?

任何帮助是极大的赞赏.

解决方法

如果您的Mac应用使用互联网连接,那么 second answer on this page可能会有用:

07001

Download the OUI list from this page. However this will only supply
manufacturers portion of the OUI (the first 3 octets). You will need
to go to each manufacturer to obtain a copy of the address portion,
usually the 4th octet which will identify the device type. the 6th
octet is usually used for the unique device ID.

A mac address is a 48 bit hexadecimal number. The first 24 bits are
the OUI which can be used to identify the manufacturer.

困难的部分是确定Apple为每台计算机分配的mac代码

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐