Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,725 Members 37,810 Now Online
XDA Developers Android and Mobile Development Forum

[req] Disable Proximity Sensor

Tip us?
 
redball
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Default [req] Disable Proximity Sensor

I've been trying to pour through the API and find a way I can access and disable the proximity sensor with some code, but have been unsuccessful.

Does anyone know of a way, rooted or unrooted, that I can disable the proximity sensor completely?

I searched the forums and the only ways I found seem applicable to WinMo based phones.

Heck, I'll pay for a way to do it, I hate the proximity sensor that much.

Even if someone knows of a way I could disconnect it by opening my phone, I might even spring for that - but obviously a software approach would be much more appreciated...

Thanks!
 
larsrya8
Old
#2  
Senior Member
Thanks Meter 3
Posts: 329
Join Date: Mar 2010
Quote:
Originally Posted by redball View Post
Heck, I'll pay for a way to do it, I hate the proximity sensor that much.
Why do you hate it, if I may ask?
 
redball
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Quote:
Originally Posted by larsrya8 View Post
Why do you hate it, if I may ask?
It is unreliable, and I know it isn't just my phone because a number of people I know also have an HTC Incredible and it seems to behave just as erratically on theirs.

Based on the code I read through for Phone.apk or whatever, it seems like it is supposed to disable the proximity sensor when you're using bluetooth, just like when using the speakerphone - but it doesn't. I can't figure out why, and I noticed another thread floating around with users having the same issue.

I want to be able to use my phone while on a call and not have to worry about a shift in overhead light or something passing over the sensor and flipping the screen off while I'm trying to use it.

I would much prefer the ability to disable it entirely, and have full control of the screen off/on using the power button.

There was one app on the app store recommended in my searches that let's you lock the screen on and only go off based on orientation or something, but it doesn't seem to work for the HTC Incredible
 
drawde
Old
#4  
Senior Member
Thanks Meter 2
Posts: 223
Join Date: Apr 2007
Try screebl? Should keep your phone on based on orientation, I think even during a call? Not sure though.

Sent from my ADR6300 using XDA App
Current: BlackBerry Q10 | RIM BlackBerry PlayBook (64GB) | Google Nexus 7 (16GB)

Retired smartphones:
Samsung Galaxy Note II
RIM BlackBerry Bold 9930
HTC Thunderbolt 4G LTE
RIM BlackBerry Bold 9650
HTC Droid Incredible
RIM BlackBerry Bold 9000
HTC Touch Pro
AT&T Tilt
Cingular 8125

Retired tablets:
Motorola XOOM
 
redball
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Quote:
Originally Posted by drawde View Post
Try screebl? Should keep your phone on based on orientation, I think even during a call? Not sure though.
I tried Screebl, too...but unless I'm configuring it wrong - it doesn't seem to work while in phone calls.
 
hexto
Old
#6  
hexto's Avatar
Senior Member
Thanks Meter 60
Posts: 670
Join Date: Aug 2008
Location: Middletown, CT
I hate it too. Makes my screen turn on and off when I use my bluetooth.

Sent from my HTC Incredible
Motorola Droid Maxx
Verizon Wireless

Slackdragon is Slacking

Twitter @h3xto
 
JTCGiants56
Old
#7  
Member
Thanks Meter 0
Posts: 69
Join Date: Jun 2010
I'm right there with you on this. I really hate being on a call and having the screen turn off and have to shake the phone around to be able to end the call.
 
redball
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Quote:
Originally Posted by JTCGiants56 View Post
I'm right there with you on this. I really hate being on a call and having the screen turn off and have to shake the phone around to be able to end the call.
That's the worst! It's like it gets doubly worse just when I want to be able to hang up.

If it helps anyone...I found these links. (If you google for "mProximityWakeLock", and follow the first Stack Overflow link, it also has two links in it to PhoneApp.java and InCallScreen.java)

I tried making an app that just kept calling release(), but it ended up just creating force closes.
 
cray1000
Old
#9  
Member
Thanks Meter 1
Posts: 72
Join Date: Jul 2010
you guys should email HTC so t hey fix it in the next OTA.
 
jazzgott
Old
#10  
Member
Thanks Meter 5
Posts: 49
Join Date: Apr 2011
Location: Vilnius
I know this is not really about droid, but what proximity sensor also does is scale down CPU speed (even despite using setcpu) making Skype completely useless without a headset.

When you initialize a call - everything is cool.
If you hold your phone on your hand and use loudspeeker - it's cool.

As soon as you put it to close to your face/ear - not cool anymore. To the point where it's absolutely impossible...

Cheers!

Tags
disable, htc incredible, proximity, sensor
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes