Huawei P20 Pro Safe Area Issue

Hello, everyone!

I am facing the problem that the safe area on my device shows different results.
My device is Huawei P20 Pro. It has notches.

Screen resolution 2240 × 1080
Unity version 2019.4.19f1


So there are three cases:

  1. Correct behavior. Safe Area = (x: 81, y: 0, width: 2159, height: 1080)
  2. Sometimes, for some reason, the safe area is scaled. Safe Area = (x: 54, y: 0, width: 1439, height: 720)
  3. Sometimes, I get safea area without offset. Safe Area = (x: 0, y: 0, width: 2240, height: 1080). This is the worst case, positions of my ui elements become broking.

It seems to me that Unity does not detect Huawei P20 Pro safe area properly.

Has anyone reproduced a similar problem?
How to solve it?

anyboy
I have the same problem, does anyone have an answer?

the same in unity 2020.3.29…