Search Issue Tracker

Won't Fix

Votes

1

Found in

5.6.0p4

Issue ID

909890

Regression

No

[Android] Returns wrong resolution on second launch if ProductName in the Package Name starts with lowercase

Mobile

-

Steps to reproduce:

1) Download attached project 'bug-resolution-gearvr.zip' and open in Unity
2) In Player Settings, disable Virtual Reality Supported
3) In Player Settings, make sure ProductName in the Package Name starts with lowercase at the beginning (com.fiveminlab.toyclash)
4) Build and Run project on a device
5) After first launch, close the application and reopen it
Resolution will change from 2560x1440 to 1920x1080(Image attached)

Expected result: Resolution should stay at 2560x1440
Actual result: Screen resolution returns to 1920x1080 when launching application second time

Reproduced with:
5.5.1f1, 5.5.3p3, 5.6.1f1, 2017.1.0b5

DUT:
Samsung SM G925F (Galaxy S6 Edge)*, OS:6.0.1, CPU:arm64-v8a, GPU:Mali-T760, Build:samsung/zeroltexx/zerolte:6.0.1/MMB29K/G925FXXU5DQA7:user/release-keys
Samsung SM G928F*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T760, Build:samsung/zenltexx/zenlte:6.0.1/MMB29K/G928FXXS3BPIA:user/release-keys

Note: Resolution is always at 2560x1440 if ProductName name in the Package Name starts with uppercase (com.fiveminlab.Toyclash)

Note: Reproduced only with this package name 'com.fiveminlab.toyclash' . Change the PackageName to something other
e.g. 'com.hey.hello', and resolution will be returned correctly on every launch

Comments (5)

  1. roberto_sc

    Feb 05, 2020 03:43

    This is crazy... but real.

    For some devices the problem only happens if androidMaxAspectRatio is high enough (like 3) - even if androidSupportedAspectRatio is set to 1 (Aspect Ratio Mode = Native Aspect Ratio).

    Reproduced in a Galaxy S9 and Galaxy Tab A 10.1, using Unity 2019.2.8f1.

    Can we reopen the issue?

  2. battlecompanytestee

    Dec 16, 2019 21:07

    Thank you for this.
    Can confirm this is an issue using Unity 2018.3.0f2 with Galaxy Note 8.

    It is such a weird bug, but it is real. I changed the android manifest and also changed the aspect ratio in player settings, but neither of those worked. My screen was still black-barred.

    After changing the package name's first letter to lower case, the screen rendered the full aspect ratio. (For example com.Package.Name to com.Package.name)

    @ULTRAMATTT I believe the reason you don't see the issue is it is only affecting screens that are taller than 16:9 aspect ratio, and maybe even only certain handsets (I'm using Galaxy Note 8). Also as mentioned in another forum, there were changes that came with Oreo 8.0, which I don't think was officially supported by S4.

  3. riadkasabaqi

    Nov 17, 2019 16:42

    Is there a reason as to why this specific change needs to be made to the projects package name ?

  4. Ultramattt

    Nov 06, 2019 21:53

    Ok, we have this same issue in version 2018.1.4f1 of Unity. But there is NO WAY that the package name being lower case has anything to do with this issue. Thats just nonsense. I dont know why it happens, I suspect a hidden Unity file is storing something hidden and using it on build, but Unity is causing it because we have many, many testing devices and it happens on many of them. But on Samsung Galaxy S4 it doesnt happen at all. Maybe old phones are immune?

  5. JackHamma

    Jun 08, 2017 08:03

    I've got the same problem on galaxy S6.
    Uppercase package name: Resolution is 2560x1440
    lowercase package name: Resolution is 1920x1080

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.