Android - Screen turns off during call due to problem with proximity sensor - Xperia Z3 compact

I'm sure some of the solutions that were mentioned here will work for other people but unfortunately, the only solution that worked for me was a hardware solution. I took my phone to a lab and they pressed the screen to the back of the phone with some extra glue. After 24 hours the phone was good as new. As a programmer I was disappointed that no software solution could solve my problem, but I still feel obligated to share my solution.


The only way I managed to work around this issue with Macrodroid was to:

  • put the trigger to volume button (up)
  • put the action to reject call.

So when I make/receive a call, I can end it with volume up button.

Works on Z3 Compact.