How do I get the real device in http_user_agent? When I use a WebView, I can get the real value like this:
[HTTP_USER_AGENT] => Mozilla/5.0(Linux; U; And
You can read useragent using webview:
new WebView(this).getSettings().getUserAgentString();
Or using system property:
System.getProperty("http.agent")
Source: https://stackoverflow.com/a/50610164/3317927