4K Android TV reporting wrong resolution (HD)

I tried submitting this as a bug report, but for some reason it keeps redirecting me to homepage, so I’ll post it here.

I’m testing on a Sony Bravia Android TV, which is 4K resolution (3840 x 2160).

However display.pixelWidth and display.pixelHeight report 1920 and 1080 respectively, instead of the expected 3840 and 2160.

This also causes the scale factor to be wrong and the dynamic image resolution to pick up the HD images, instead of the UHD ones.

I suspect this may be a Sony/Android bug, because I’ve had the same problem when developing native Android apps for this TV and this is a known thing:

https://github.com/google/ExoPlayer/issues/1685

So Google’s ExoPlayer uses the following workaround to fix this:

https://github.com/google/ExoPlayer/blob/42e5d5c2e61d2715d62d715bbd92b715e7f78f88/library/src/main/java/com/google/android/exoplayer/chunk/VideoFormatSelectorUtil.java#L202

Is this really a bug or am I doing something wrong?

Thanks!

I’m asking engineering to look at this. We don’t have a Sony Bravia Android TV and we are very unlikely to do so, therefore, I don’t know how well we can test any changes.

Rob

Yeah I understand. If I can help with anything, please let me know.

Thanks!

I’m asking engineering to look at this. We don’t have a Sony Bravia Android TV and we are very unlikely to do so, therefore, I don’t know how well we can test any changes.

Rob

Yeah I understand. If I can help with anything, please let me know.

Thanks!