New issue
Advanced search Search tips

Issue 845524 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Feature



Sign in to add a comment

User agent for the 64-bit version of Chrome for Android

Project Member Reported by n...@fb.com, May 22 2018

Issue description

On desktop the useragent tells you if the browser is running the 64-bit flavor or not, with the upcoming 64-bit changes to Android (https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html) we were wondering what the plan was for bringing this to Chrome on Android. This is important for perf tracking as the two different modes have very different perf characteristics. It's also important for native app developers who need to know the right version of an apk to serve or direct users to download from the play store.


On desktop useragents right now this information is contained in the operating system filed in useragents. For example a Windows useragent looks like this: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.....". Presumably this information will already be searchable by looking at the build id in the Android useragent, but rather than having to keep track of each individual build it'd be more ideal to put this information into the useragent to begin with.
 
Cc: torne@chromium.org
Components: Internals
Owner: yfried...@chromium.org
yfriedman@ can you help triage this? (I saw that you are assigned to a user agent string issue, couldn't find the right components if any...)

Comment 2 by torne@chromium.org, May 23 2018

Cc: tnagel@chromium.org
So there's a bunch of different issues here that would need to be considered:

1) Currently the WebView and Chrome useragents are the same overall format, with just an additional "; wv" token to differentiate WebView (and a mysterious "Version/4.0" token that's there because the old webview had it). We would like to keep it this way, because it's the same codebase and it makes sense if they are handled the same - but WebView's useragent format is rigidly enforced by Android CTS/CDD and can't easily be changed in arbitrary ways. WebView could not include the architecture information at present as a result, which makes it less ideal to include it for Chrome. :/

2) There's ongoing investigation into removing some of the identifying information from the current useragent for privacy reasons; tnagel@ may have an opinion on whether adding the architecture here would be going against that or not. One of the main things being removed is the build ID, so you should not count on being able to use the build ID to infer what architecture the device uses..

3) It's a *bad* idea to make decisions about what APK to send people to install based on what the browser's user agent is. On most current android devices both 32-bit and 64-bit apps are supported and browsers may be running with either architecture - that doesn't imply anything useful about which architecture of native app you should use. For example, Chrome is currently 32-bit on all devices, even high spec devices for which 64-bit APKs are generally preferred.

4) We don't currently have a finalised plan for what we're going to do with Chrome in general regarding the Android changes you refer to, so this may be a little premature :)
Owner: ----
Status: Available (was: Untriaged)
Marking as available and unassigning. No active work streams for this and as torne@ indicates, it's not clear this is actually desirable.
Cc: -kenjibaheux@chromium.org

Sign in to add a comment