How to identify product model in Android app on ARC (Build.model is n/a)?

纵饮孤独 提交于 2019-12-12 04:56:33

问题


Android apps can get product information by reading BUILD.MANUFACTURER and BUILD.MODEL, but when running on ARC (chrome) these are always "chromium" and "App Runtime for Chrome".

Motivation: It is useful for apps which a person uses across multiple devices to be able to identify the model of device the person is using, so you can eg. tell them that some data or action came from their "Nexus 7", or their "Acer Chromebook C910". It is also useful when trying to resolve an obscure issue, to know what product(s) it is occurring on. As well, though this isn't recommended, sometimes it is useful to identify a model for special handling of that device's characteristics.

In theory it would be possible to take a hash of some static hardware characteristics and use this as a signature for a product, but I think this would be difficult to get right. If anyone has done this I would be interested to know what api's they used.


回答1:


I don't think there is currently any substitute for BUILD.MANUFACTURER and BUILD.MODEL on ARC.

I think it should be technically possible - I know this information is available to Windows applications, and I believe it comes from the BIOS, so in theory I think it could also be available on Mac, Linux, and Chrome OS.

I submitted this as a Chromium issue here.



来源:https://stackoverflow.com/questions/29655597/how-to-identify-product-model-in-android-app-on-arc-build-model-is-n-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!