Screen permanently black with broken proximity sensor and Proximity Sensor Accelerometer App
The app settings are reset after the phone is restarted so I did this: power button + volume up. 

Press it at the same time for a few seconds to turn off the screen without needing to use touch. Then start the phone and the app is reset.