如何识别产品型号的Andr​​oid应用程序上的ARC(Bui​​ld.model是N / A)? [英] How to identify product model in Android app on ARC (Build.model is n/a)?

查看:190
本文介绍了如何识别产品型号的Andr​​oid应用程序上的ARC(Bui​​ld.model是N / A)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android应用可以通过阅读BUILD.MANUFACTURER和BUILD.MODEL,但ARC(铬),这些都是始终铬和应用程序运行Chrome浏览器运行时,获得的产品信息。

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".

动机:这是一个人在多个设备上使用,能够识别人正在使用设备的型号应用程序非常有用,这样你就可以如。告诉他们一些数据或行动从他们的Nexus 7,还是他们的宏碁Chromebook C910来了。当试图解决一个不起眼的问题,知道什么产品(第)这是发生在它也是有用的。同时,虽然这是不推荐的,有时它是有用的,以确定的该设备的特点进行特殊处理的模型。

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.

在理论上有可能采取的一些静态硬件特性的哈希,并以此作为产品的签名,但我认为这将是很难得到的权利。如果有人做了这个,我很想知道他们用什么的API。

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.

推荐答案

我不认为这是目前BUILD.MANUFACTURER和BUILD.MODEL对ARC的替代品。

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

我想应该是技术上是可行的 - 我知道这个信息是提供给Windows应用程序,我相信它来自BIOS,因此从理论上讲,我认为它也可以提供在Mac,Linux和Chrome操作系​​统

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.

这篇关于如何识别产品型号的Andr​​oid应用程序上的ARC(Bui​​ld.model是N / A)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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