如何检测Android版本和品牌的WebKit浏览器? [英] How to detect Android version and brand from webkit browser?

查看:182
本文介绍了如何检测Android版本和品牌的WebKit浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检测Android版本,并通过品牌的WebKit浏览器,是它可靠吗?

How to detect Android version and brand via webkit browser and is it reliable?

推荐答案

我相信你可以检查用户代理。

I believe you could check for the user agent.

不过,我不认为,因为有许多方法,人们可以用它来欺骗用户代理它的安全。

However, I don't think it's safe since there are many method that one can use to spoof the user agent.

在这个问题上搜索谷歌给了我们很多上的答案。它的工作原理,即使在默认浏览器...你只需键入有关:调试作为地址,然后调试选项 UASTRING 出现在设置,允许您更改iPhone和其他的东西。

Searching Google on that issue gives us lots of answers on that. It works even on the default browser... you just type "about:debug" as address, and then a debug option UAString comes up in the settings, allowing you to change that to iPhone and other stuff.

当然,用合适的第三方应用程序,我猜的天空是极限。

Of course, with a proper 3rd party app, I'd guess the sky is the limit.

*编辑:我的Nexus S的显示这是现在:

*edit: my Nexus S shows this as of now:

Mozilla/5.0 (Linux; U; Android 2.3.6; pt-br; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

这篇关于如何检测Android版本和品牌的WebKit浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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