i just fixed this issue
it started when i opened my phone to replace the battery, turns out the proximity sensor has a tiny rubber cover, if it isnt placed properly or on at all then it wont detect the right amount of light, i used AIDA64 to check these sensor readings, when it works properly it...