Black screen during Whastapp call/audio My proximity sensor is broken, and, Whastapp turns the screen off during call/audio. Not even power button will turn it back on.

All "solutions" out there tell me to clean the sensor. Impossible here.

How to disable this completely ?

I've tried Xposed's Disable Sensor module, entirely disabling this sensor or mocking it's values. No results.

I thought about revoking a sensor usage permission for that app, but could not find a module that has such an option

I can't remember if the problem happens during phone calls, but if the fix could be extended to this area, great

Xperia Z3
Searching all over the web tonight 1/22/21 looking for an answer on how to fix this and found NOTHING. So with trial and error and a little ingenuity I developed my own solution which worked.

Turn on airplane mode while the black error screen for in call is opened up on your phone.
After the first beep notifying you the the call is losing connection the screen/app realizes it's error and reverts back to the normal state. In call screen will now be normal.
Turn off airplane mode immediately after the in call screen is remedied so you do not lose your call.
You're welcome