Tech for geeks and beginners

Fix Proximity Sensor Issues on Lineage OS or Custom Android ROMs

Read how to fix proximity sensor issue on custom ROMs likes of LineageOS and Resurrection Remix.

Fix proximity sensor Redmi 2 (Custom Rom)
Fix proximity sensor in Xioami/MI devices.
Fix proximity sensor issue when Call screen goes OFF.

The thing I want to mention here.

You need to know what caused your proximity sensor is not working properly. You will find your answer if you,

  • Flashed new ROM and proximity sensor are not working and was working fine before.
  • Your proximity sensor is not working because of any software.

I had a redmi 2 device on which I flashed CM12 (Android 5) and faced some bugs, One major bug was when you call or receive a call the screen goes OFF.

Reason – I checked the proximity sensor log’s via SensorSense App, just to notice that its value stuck between 0 to 4  and generally proximity sensor can detect distance up to value 20. So even there is nothing in front of it, it acts like something is covering it. I research it on google a lot and found nothing that can help me in this case for redmi 2 devices.

But then, I found a fix.

I took a backup of my old Rom and found a file responsible for the proximity sensor. I checked on current ROM and it too has the same file on the same location. The file name can vary on different devices, you need to find that on your old ROM and need to replace it in new ROM. Make sure to use ES file manager with root permissions.

[Enable Root Access and in ES manager in setting check ‘ROOT Explorer’]

The proximity sensor works with help of this file “”

And the location is “system folder > lib  > hw >”

  1. This filename is specifically for Redmi 2 device. you can download “” file here. Other devices may have this file starting with ” ” at the location written above.
  2. Download file (if redmi 2) or (locate the file on your old ROM, copy it. Now delete the current rom sensor file and paste the old file there
  3. After replacing you need to change its permissions to “-rr-w–“

That’s how you fix simple issues regarding proximity sensor. If you are here for fixing the issue on Redmi 2 you can download this file above and Replace it and reboot. it will work 100%. Don’t be so mean like us on facebook as credit.

Since you are here…

I’ve got a small favor to ask. This is an independent site, and producing content takes a lot of hard work and time. Although many people are reading Quickfever, many use adblocker. And unlike many other sites, there is no paywall blocking. 

So you can see why your help is needed. If everyone who finds this website useful and helps to support it, the future would be much more secure. Thank you.

1. Buy everything from US, India

2. Donate for coffee

If you use adblocker, please disable it for this site.

* Some of the links are affiliate links, which means that if you choose to make a purchase, I may earn little commission. This commission comes at no additional cost to you.
Share this article
Shareable URL
Prev Post

Adsense Approval Definitive Guide – Tips to Make Best Revenue

Next Post

Root MI4I [100% Working] With TWRP and SuperSu

Comments 2
  1. Dude, I am using redmi note 3 and installed Cyanogemod 14.1. only sound sensor and fingerprint sensor works. i found the sensor file ( can you just get me the file bcoz i dint take the old rom backup bcoz i hate miui rom and never want to go back to that rom again. Please help. Thank You,

Leave a Reply

Read next