Proximity sensor error

Ash.VIII

Member
Apr 14, 2011
7
0
0
Hello,

I have been using XZ for two years now with no problems and started flashing about a year ago.
Now, my first problem came when I wanted to connect my phone with a bluetooth headset. It works fine until I turned off the screen and placed it into my pocket. After investigating the possible issues, it seems to come from the proximity sensor.
First tried to install another ROM, as maybe the error came from there but it was to no use.
Then I tried dialing *#*#757....... the sensor will be off, if I block it, it will say on, but when I unblock it it stilll says "on".
So I went to try to turn off the proximity sensor completely, as every apk i tried didn't fix the error.

The other fix I found was an Xposed framework.
I followed the instructions of installing ExistenZ_Y but when I tried to flash the ROM it said "can't mount /system" and had to go through recovery to flash a stock ROM. The problem is that even now, when I enter TWRP and try to flash the xposed-v78-sdk22-arm it still says it can't mount the system. I tried going to the terminal and typing "mount -o rw,remount /system" but to no avail, it won't mount the system as rw.

So here I come, after searching every thread I could find, to know if someone could help me in any way.
Many thanks in advance
 

Pyramid Head

Senior Member
Mar 6, 2015
446
141
0
Silent Hill
Hello,

I have been using XZ for two years now with no problems and started flashing about a year ago.
Now, my first problem came when I wanted to connect my phone with a bluetooth headset. It works fine until I turned off the screen and placed it into my pocket. After investigating the possible issues, it seems to come from the proximity sensor.
First tried to install another ROM, as maybe the error came from there but it was to no use.
Then I tried dialing *#*#757....... the sensor will be off, if I block it, it will say on, but when I unblock it it stilll says "on".
So I went to try to turn off the proximity sensor completely, as every apk i tried didn't fix the error.

The other fix I found was an Xposed framework.
I followed the instructions of installing ExistenZ_Y but when I tried to flash the ROM it said "can't mount /system" and had to go through recovery to flash a stock ROM. The problem is that even now, when I enter TWRP and try to flash the xposed-v78-sdk22-arm it still says it can't mount the system. I tried going to the terminal and typing "mount -o rw,remount /system" but to no avail, it won't mount the system as rw.

So here I come, after searching every thread I could find, to know if someone could help me in any way.
Many thanks in advance
add the line:
gsm.proximity.enable=false
to the end of the file build.prop located in /system, reboot, and the sensor will be disabled.
 
  • Like
Reactions: Ash.VIII

akisg

Senior Member
Dec 26, 2013
416
114
43
add the line:
gsm.proximity.enable=false
to the end of the file build.prop located in /system, reboot, and the sensor will be disabled.
I am trying to disable the proximity sensor by editing the build.prop file as suggested but with no luck. Is there any other solution? I am using RRemix Rom v5.8.2
 

akisg

Senior Member
Dec 26, 2013
416
114
43
As far as my knowledge goes no there isnt... Maybe with an app but i dont know

PS: Damnnnn thats an old post
Tried some that use light sensor (which is working) instead of proximity sensor but still no luck...
How hard can it be to disable one sensor?

PS: I know, found it during a forum search so no need to open a new one :p
 

Pyramid Head

Senior Member
Mar 6, 2015
446
141
0
Silent Hill
Tried some that use light sensor (which is working) instead of proximity sensor but still no luck...
How hard can it be to disable one sensor?

PS: I know, found it during a forum search so no need to open a new one :p
Dont know man, are you sure you entered the command exactly as i wrote?

If yes try to find the command inside the build prop on your own and edit the true part to false
eg: gsm.proximity.enable=true --> gsm.proximity.enable=false
 
Last edited:

Ash.VIII

Member
Apr 14, 2011
7
0
0
I am trying to disable the proximity sensor by editing the build.prop file as suggested but with no luck. Is there any other solution? I am using RRemix Rom v5.8.2
That is also the only way I found. The easiest way is to go through adb. You go 'adb pull /system/build.prop' modify it on your computer then go 'adb push build.prop /system/'. It worked for me. It didn't solve every problem but sure did help a lot!

If that does not work, maybe it isn't your proximity sensor? I know there are apps that can "write" the info that your proximity sensor info is either 0 or 1 (or in between), but that didn't work for me, maybe with you it will
 

akisg

Senior Member
Dec 26, 2013
416
114
43
What rom are you using? I edited build.prop file from phone and saved successfully. I tried some apps but no luck. I wonder if that command maybe is different in nougat roms