Pixel 4: deactivate the proximity sensor - Google Pixel 4 XL Questions & Answers

Hello!
Is it possible to deactivate the proximity sensor? I know that ALL sensors can be deactivated in the quick setting panel, but I want just the proximity sensor to be deactivated, so the "always-on-screen", showing a clock and incoming messages, does also stay on when I put the phone into a transparent rain cover on my bike. Right now I need to push the on-button to be able to see the clock or other information, and that is something I'd rather avoid while riding.
Does anyone know a solution for this? An app or a patch maybe?
Nearly forgot to mention: the phone is running on LOS 18.1.

If you have root it's posible to do everything, though I am not sure how to help you...
What I know is that you will propably have to edit some tables on the system, maybe the system table. There is an app from the playstore that you can downlaod that allows you to modify some system tables(like global tables as well). Maybe if you play with that you may be able to deactivate the proximity sensor. The app is called SetEdit.
Hope this helps you, and in case it did, and you downlaod the app, could you please tell me if it is posible to modify the android properties table?
thx!

Thanks for your reply!
I should have been more precise when expressing my wish: I meant to switch the proximity sensor off while system is running and switch it back on later. The app that you pointed me to, reads as if the sensor will be deactivated at boot time and stay off until I reverse the change to the table and reboot again.
Basically, what I need, is an app that can switch the sensor off and on again without the need for rebooting in between, or an option in the system settings, that can be set within a profile: switching to profile A, which has proximity sensor on, switching to profile B, which has the sensor turned off, while all other sensors stay unchanged, would be a very good solution.
I don't know it that would be possible at all. On the other hand, there are "tasker apps", which can do "X if Y happens" or something like that. If such an app could "turn proxi sensor off when profile B is activated", that would also be a solution to my problem.
Do you know of any such app?

Oh. Yeah, that seems to be a very specific usage, and I don't believe you will find an app to disable the proximity sensor. Maybe you can develop that, it shouldn't be very hard, especially if you already have some knowledge of android development.
Good luck!

To my opinion the screen's on/off status should not always be determined by the proximity sensor, but by surrounding brightness instead, because the way it is now, you can not put the phone into a transparent cover, without the screen being switched off.
I agree that only a very few people will use transparent covers, and that the proximity sensor does have its advantages when holding the phone to your ear, but I also can imagine more situations where the screen wil be turned off by accident, when it rather should be kept on.
So, an option like
Code:
Use proximity sensor to turn off screen [ ]
Use light sensor to turn off screen [ ]
inside a system profile would be a great thing!

Related

How to turn on auto turn off during call

I checked the power settings(I set it off after 1 Min),but the phone display is on during calls. It's on for 6-7 mins,not turning off. What to do? Please rep ASAP
Just press the power button on the top of the phone, and it will turn the screen off. Well thats what i do any way. Try it out
Dont hold it for to long otherwise the phone will turn off, just give it a quick press!
Download XperiaTweak v2.0
Hi,
I have the exactly opposite problem. I have installed XperiaTweak (current version) and enabled the option "Disable Screen Turning Off during calls", but it's still turning off after a minute (like the normal standby settings...).
Do you know the registry key etc. for that feature so that I can check the settings?
regards
Nils
Whats most retarded is why we can't have what the iPhone ALREADY does...
the Xperia X1 has a front facing (near your ear) light sensor. It should turn the screen off when it is next to your ear, and turn it on when you move it away from your ear... JUST LIKE HOW THE iPHONE DOES IT.
I mean, something this simple... why hasn't it been implemented?
Think about it. Why put the light sensor near the ear then? When not put it on the side or something? because obviously someone thought that, well, when the phone is near the ear, it will go from light to immediate darkness, and when moved away, dark to light.
Why cant we have somethign this simple? Or anyone know of a workaround or third party app?
johnchan78 said:
Why cant we have somethign this simple? Or anyone know of a workaround or third party app?
Click to expand...
Click to collapse
The X1 as you probably know has no light sensor or accelerometer, so there is no way to interpret when the phone is at your ear or otherwise.
FingAZ.
dalgibbard said:
The X1 as you probably know has no light sensor or accelerometer, so there is no way to interpret when the phone is at your ear or otherwise.
FingAZ.
Click to expand...
Click to collapse
Actually, it does have a light sensor. What else do you think automatically adjusts the screen's brightness? This really is an ingenious idea, can someone cook up an app that runs in the background to do this?
I want to have light during call all time I tray Advanced_Configuration_Tool_v3.3 and did not find nathing no option on battery display or call thet will keep my back linght on durring call some idea?
And the touch pro 2 does have the feature to turn off screen when you put it to your ear. Devs?
I hate how when I'm on skype on the phone and the screen dims, cutting off my wifi.
Sfkn2 said:
I hate how when I'm on skype on the phone and the screen dims, cutting off my wifi.
Click to expand...
Click to collapse
Use Advance Configuration Tools to fix this by enabling Wifi during standby.

[Q] Disable proximity Sensor

Hi...
Does anyone knows if there is a way to disable the proximity sensor on a Milestone??? or better yet.. recalibrate it..
I have replaced the glass after having smashed the old one.. and now the phone always think the proximity sensor is activated..
my stone,too .
anybody help us? please!!! i lov my stone!
So, ur phone is thinkin' that sensor activated? If that has mean only in dialer, try installing this program: myLock phone tools and set there "Onscreen Accept", "Onscreen Reject" and "Touchscreen lock", that should help u.
I am having same problem, proximity sensor isn't working properly, once screen goes off, can't drop the call. Is there any script or app which can disable prox sensor completely. I am using Android 2.1 rooted phone.
Thank you very much in advance.
same problem
Same problem here my proximity doesn't works, if I call or I attend call screen gets black
None of the keys works at this time. I found an app in market called 'proximity screen off' but as its an app It eats ram & it needs to run anytime in background I need a permanent solution.
Somebody have any idea to disable this sensor using
Any scripts through terminal? Or ...
Check out here: http://forum.xda-developers.com/showthread.php?t=779189
I have the same issue I already put some spongy tape above the proximity sensor but it's not perfect. I always press the the display with my finger an inch below the left upper corner of the phone after a call and the screen is back.
http://www.youtube.com/watch?v=5R5BM9dXmMg
I used Proximity Sensor Finder app from market to test my sensor.

Stop phone from turning on when rotated on side during phone call?

My GF and I are very annoyed at this problem. When you tilt the phone on it's side, lik eholding it with your shoulder the phone will turn on. It just so happens that your phone's mute button will be on your cheek and we mute each other.
Is there anyway to stop this? Thank you guys in advance.
Are u sure u are not "uncovering" the light proximity sensor when u tilt it. Its very sensitive, and I have noticed it get turned on when the phone gets an inch or more away from ear exposing the light sensor to any form of light.
While on the phone with my girlfriend at night this happens a lot. Because it is so dark, any movement I do will cause the screen to turn on and I have to hit the button to turn it off.
Just try vto keep it glued to your face :/
Sent from my Nexus One using XDA Premium App
Yeah I'm sure. The feature is suppose to be for when you set the phone on your desktop the screen will turn on so you can hit speaker or end the call.
Sent from my SAMSUNG-SGH-I897 using XDA App
Umm simple work around, get something opaque and stick it over the light sensor with something that won't leave a residue so you can take it off when your call is over?
obviously some people fail to understand how this works. there is a light sensor for screen brightness and a proximity sensor. it is the proximity sensor that detects your face and turns off the screen. the light sensor is not involved in this process. what is happening is that the i9000 roms have default android 2.2 settings that force the proximity sensor to be ignored in certain orientations, i dont know about the new att updates but the 2.1 roms had the overrided from samsung. i tried to fix it in tasker but tasker lacks the option to power off the screen, it can go to lock screen instead which may be acceptable for some. there may be a different way to do this in tasker but i need to experiment more.
there is no external workaround for this as it is not the proximity sensor being uncovered that causes most problems but the phones orientation. any workaround or fix must be done with software or a change in a file somewhere.
I am sorry, and have been humbled •_•
Dani897 said:
obviously some people fail to understand how this works. there is a light sensor for screen brightness and a proximity sensor. it is the proximity sensor that detects your face and turns off the screen. the light sensor is not involved in this process. what is happening is that the i9000 roms have default android 2.2 settings that force the proximity sensor to be ignored in certain orientations, i dont know about the new att updates but the 2.1 roms had the overrided from samsung. i tried to fix it in tasker but tasker lacks the option to power off the screen, it can go to lock screen instead which may be acceptable for some. there may be a different way to do this in tasker but i need to experiment more.
there is no external workaround for this as it is not the proximity sensor being uncovered that causes most problems but the phones orientation. any workaround or fix must be done with software or a change in a file somewhere.
Click to expand...
Click to collapse
This is correct. In simple terms the orientation sensor takes presidence over the proximity sensor. So if you turn the phone on its back while on the phone, the screen will turn on.
There are no fixes for it that I'm aware of.
How abt keeping auto-rotation off all the time, and turning it on only when needed, as a work around?
diablo009 said:
How abt keeping auto-rotation off all the time, and turning it on only when needed, as a work around?
Click to expand...
Click to collapse
It's not linked to auto-rotation unfortunately, Its just something that we have to live with.
Man... wish there could be one but sounds like there can't be.
Sent from my SAMSUNG-SGH-I897 using XDA App

Black screen during calls even with proximity sensor disabled

I use the phone as navigation in the car, so I never hold it to my ear. I did not have a SIM in it for a year, now I put one back in order to also use it for hands-free talking. Issue is the famous black screen when starting or accepting a call.
I have rooted it, installed Xposed and enabled modules CallScreenFix and Sensor Disabler. In Sensor Disabler, I have tried to things with the same result: hard lock the Proximity sensors shown to maximum distance or also disabling them.
AIDA64 shows as expected either proximity 5.0 or no sensor at all (info: before installing Xposed it was 0.0 constantly).
However, the screen still turns off when a call is in progress. I would not even care that much, but I cannot enabled speakerphone to use it for hands-free talking.
Any further ideas? At the very minimum any phone /dialer apps where I can pick up and call directly in speakerphone mode?
As mentioned above, I have the phone rooted. So anything goes
Cheers,
Daniel.
I would try without Xposed first. Xposed is very much a hack, and you never know what it actually does.
Do you have a screen protector that covers the sensor?
runekock said:
Do you have a screen protector that covers the sensor?
Click to expand...
Click to collapse
No, I never used any of that. Without Xposed, the sensor always shows 0.0 on AIDA64. With Xposed, I can choose between 5.0 and not having a sensor at all. None of that has an effect. I'd very much like to find a non-hacked solution of course. However, since it's my secondary device, I'd also be ok with half a hack...
nexus 6 proximity sensor fix
In my case it was the protective glass, when it was removed it worked again. I saw in a video that the sensor may be "released" or something. I can not publish external links, but on YouTube you find videos showing possible solutions when writing nexus 6 proximity sensor fix... Sorry for my English, use a translator.

how to disable proximity sensor (with root)?

this have been issue for Pixel devices, proximity sensor not working properly.
Mine's on same boat, proximity sensor always read something blocks (distance 0cm).
actually it does not hurt for most of time, but only 2 things.
AOD turned off, i prefer AOD is always on..
display off when calling.
There is workaround.. just press the screen, the proximity area, then it works normally for a while.
I kept doing that, and it fixed for couple of months in last winter.
It started happening again when I stayed in Desert area, 90F over night.
looks like proximity sensor should be stuck on some "right" place, but glue does not hold it tight?
I donno... anyways, it happened again when weather comes warmer.
so, I was looking for a solution, just disable the proximity sensor, or make it always 5cm reading.
nothing works so far!
first trial. use "disable sensors" in developer option.
I created a tasker command for toggle that function --> this works. but...
it disables mic as well, cannot use during phone call.
for AOD, that command does not work when screen is off. command does not go through for AOD.
second trial. use disable sensor addon for xposed (now LSPOSED with magisk)
not working on Android 13 and 12.
Looks like it worked on Android 8 or 9? not an option for pixel 5.
I gave up at this point.
Pixel 5 is great phone, light and small enough, easy to carry. performance is not great but ok for me. battery life is also ok.
easy to unlock bootloader, flip to other custom roms..
because of only for this small proximity sensor, this is hard to use for me..
Is there any way to disable it?
see this thread for a general idea of what to do.
[Q] Disable proximity sensor via terminal emulator
Hi @ all, I have that following problem: My phones display turns off automatically while im receiving or doing a call. My proximity sensor is broken and i would like disable it and i found a good solution here in this formus...
forum.xda-developers.com
that is for a HTC phone and is a 10 year old thread but I think if you can identify the correct device you can use root to effectively prevent it from changing state.
Maybe not. its been a while since I messed with Android Internals.
Worth a try.
I recently got a refurbished Pixel 5 and had this same issue, a few searches on the internet and I learned about the screen gap fiasco. If I'm not wrong isn't the reason behind the proximity issue this same screen gap on top left. As far as mine is concerned, I heated it up a little to loosen the adhesive, covered it in a soft cloth and then applied a plastic clip I had lying around on top left for compression. I left it overnight and voila the sensor works perfectly now. Also I have a relatively tight case on.

Categories

Resources