Chosen Solution

I ordered a replacement screen and frame (screen mounted to frame) from aliexpress. The assembly seems original and recovered from another phone. Everything works well except for the proximity sensor, which always shows NEAR or INIT in the Service Menu - Auto Test. I think when it shows init it’s a contact problem as also the light sensor doesn’t seem to work. I tried cleaning the screen where the sensor is and removing the protective film, but it always shows NEAR. Any suggestions? Is the sensor defective? If so, I still have the one from the old phone, but it seems embedded between the screen and frame and wouldn’t want to pry apart the screen from the frame.

I managed to make it work by pressing the calibration button in the test screen. Be careful so as the sensor is not covered before starting and during calibration. For calibration: Go to service menu: call *#546368#*710#Device Test -> SAAT -> Auto TestLong press power button -> “Don’t touch proximity sensor” appears in redPress “PASS”You will reach the proximity and light sensor test screenMake sure the sensor is clear and not covered and press “Cal Start”After calibration is done the sensor should work OK

i replaced full display proximeter not working after try this working fine (#546368#710#) thank you