Proximity sensor: During a call, the screen still stays on and doesn't turn off automatically, the Pocket mode is always on when unlocking the screen, or the screen does not light up during an incoming call.
Solutions,
1. Install "sensor list" app to check whether Proximity sensor works or not;
2. Please try to clear the cache, back up all the data and flash to the latest OS version