val webView = WebView(applicationContext)
Logs.i("onCreate: WebView UA: 【${webView.settings.userAgentString}】")
onCreate: WebView UA: 【Mozilla/5.0 (Linux; Android 7.1.2; Redmi 4X Build/N2G47H; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36】
UA:
Mozilla/5.0 (Linux; Android 7.1.2; Redmi 4X Build/N2G47H; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.158 Mobile Safari/537.36
字符串 | 解释 |
---|---|
Mozilla/5.0 | 伪装成Mozilla排版引擎的浏览器以达到兼容 |
Linux; Android 7.1.2; Redmi 4X Build/N2G47H; wv | 浏览器所运行的系统的详细信息 |
AppleWebKit/537.36 | 浏览器所使用的平台 |
(KHTML, like Gecko) | 浏览器平台的细节 |
Version/4.0 | |
Chrome/66.0.3359.158 | chromium内核版本 |
Mobile | 当前终端访问为:手机 |
Safari/537.36 |
网友评论