The proximity sensor is the part of the phone which turns off the display while you're in a call. If the sensor is covered, it also turns off the Ambient Display feature, which shows you the time and notifications even if your device is locked. However, after the Pixel 2 XL got the Android 8.1 update, the proximity sensor started behaving differently on some devices. This resulted in Ambient Display never turning off, people getting locked from using their phone while in a call, and other bizarre problems.
The problems were reported in a thread found on the Google community forums which gained humongous popularity, listing all sorts of proximity-related problems. The struggle might be near its end though, as Google Community Manager Orrin has posted that the fix for the proximity sensor issues has been found. Unfortunately, it will take some time until it gets rolled out to users.
Pixel 2 XL fingerprint sensor issues, but there hasn't been any official statement on that case yet.On a related note, users have also reported