element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.35k stars 711 forks source link

If i cover my light sensor, that auto adjusts the brightness of my phone, the whole screen goes black #5431

Open CodeCubeNeo opened 2 years ago

CodeCubeNeo commented 2 years ago

Steps to reproduce

If i am in a middle of a call (voice or video) and I cover the front sensor that ig receives light and is responsible for auto adjusting the phone brightness, so that it doesnt receive any light, the whole screen goes black. Nothing helps, even if i click the power button. Only If i uncover the sensor the screen lights back up. It may have something to do that Element requires some proof, that someone is in front of the phone or i don't know.

Outcome

If i cover the sensor nothing should happen. I think it is not phone/hardware related, since with other messaging apps, like facebook messenger, nothing happens if i cover my light sensor, but here the screen goes black.

Your phone model

Huawei Mate 9

Operating system version

Android 9

Application version and app store

Element version 1.4.2., olm version 3.2.10

Homeserver

matrix.org

Will you send logs?

Yes

ouchadam commented 2 years ago

If I've understood correctly, this is intentional for voice calls and is common practice for telephone apps. The feature is used to prevent accidental screen presses whilst the device is next to your ear

however the power button not working does sound odd...

CodeCubeNeo commented 2 years ago

Yes. I guess that the screen going blank is normal, but the power button should turn the screen back up again (just like in normal android calls). I think this is a very serios bug, since if you have your camera/light sensor covered with a tape or whatever, the entire phone becomes unusable when you make a call from element (since the whole screen goes blank and you can't bring it up with the power button). The only way to make the phone interactable again is to remove the tape (give light to the sensor) or to press the power button a bunch of times, so that it calls emergency number, neither of which is a good solution.

CodeCubeNeo commented 2 years ago

Any progress on this?

CodeCubeNeo commented 1 year ago

Any progress on this?