FORUMS
Remove All Ads from XDA

How to Disable proximity sensor in Nougat

183 posts
Thanks Meter: 103
 
By swapnil0545, Senior Member on 1st September 2016, 09:24 PM
Post Reply Email Thread
Hello everyone,
My sensor went bad after screen replacement. It always detects as near. Until now I was using xposed to disable it. But now after upgrading to Android N, I don't have xposed and I don't know how to fix it.
The screen is turned off when I make/attend a call, making it difficult to end.
Is there any config file or something in source where I can disable it??


Thank you.
The Following User Says Thank You to swapnil0545 For This Useful Post: [ View ] Gift swapnil0545 Ad-Free
2nd September 2016, 10:56 AM |#2  
Senior Member
Thanks Meter: 57
 
More
You can use settings>accessibility>Use power button to end call...
2nd September 2016, 08:53 PM |#3  
swapnil0545's Avatar
OP Senior Member
Thanks Meter: 103
 
More
Thanks. I am doing what you said now. But still it would be better if I get and solution to disable it.
3rd September 2016, 09:07 PM |#4  
Senior Member
Flag Kraków
Thanks Meter: 1,137
 
More
Quote:
Originally Posted by swapnil0545

Thanks. I am doing what you said now. But still it would be better if I get and solution to disable it.

I have not tested in N, but it works in MM.

Copy android.hardware.sensor.proximity.xml the known position and change its string
Code:
<feature name="android.hardware.sensor.proximity" />
to
Code:
<feature name="" />
  1. Go to the TWRP.
  2. Mount the partition system.
  3. Check the permission and assignment to groups for file android.hardware.sensor.proximity.xml
  4. Rename the file android.hardware.sensor.proximity.xml
  5. Copy the changed file android.hardware.sensor.proximity.xml to the /system/etc/permissions
  6. Change the file permission and assignment to groups that have the original file.
  7. Reboot.
4th September 2016, 04:47 AM |#5  
Senior Member
Thanks Meter: 12
 
More
The solution for that it change the black thing make the bigger hole on sensor of light and the small one with other

Default for that is small one with sensor light and bigger one for something else

So sorry for bad language see that steps here

http://forum.xda-developers.com/nexu...ement-t2657176
4th September 2016, 05:03 PM |#6  
swapnil0545's Avatar
OP Senior Member
Thanks Meter: 103
 
More
Quote:
Originally Posted by ze7zez

I have not tested in N, but it works in MM.

Copy android.hardware.sensor.proximity.xml the known position and change its string

Code:
<feature name="android.hardware.sensor.proximity" />
to
Code:
<feature name="" />
  1. Go to the TWRP.
  2. Mount the partition system.
  3. Check the permission and assignment to groups for file android.hardware.sensor.proximity.xml
  4. Rename the file android.hardware.sensor.proximity.xml
  5. Copy the changed file android.hardware.sensor.proximity.xml to the /system/etc/permissions
  6. Change the file permission and assignment to groups that have the original file.
  7. Reboot.

I am going to try this. I hope I don't soft brick it.
17th October 2016, 03:07 PM |#7  
Junior Member
Flag Bangalore
Thanks Meter: 1
 
More
Quote:
Originally Posted by swapnil0545

I am going to try this. I hope I don't soft brick it.

Hey did you get it to work?
6th November 2016, 01:03 PM |#8  
Senior Member
Vilnius
Thanks Meter: 145
 
More
I've tried - no, did not work on 7.1.
12th November 2016, 08:21 AM |#9  
Member
Thanks Meter: 0
 
More
Have you any other solution? I've the same issue on nexus 6p After display replacement. And now on nougat i can't fix it. Simeone Can help me?
13th November 2016, 12:55 AM |#10  
Senior Member
Vilnius
Thanks Meter: 145
 
More
My other solution was to recompile Dialer.apk with proximity disabled.
The Following 3 Users Say Thank You to digital0 For This Useful Post: [ View ] Gift digital0 Ad-Free
22nd November 2016, 06:53 PM |#11  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by digital0

My other solution was to recompile Dialer.apk with proximity disabled.

Where is the apk located? I'm running 7.0 and cannot find it in the system/apps folder.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes