The proximity sensor is a small but critical component of any modern smartphone that automatically turns off the screen during a phone call when you bring the device to your ear. This function prevents accidental pressing of the cheek and saves battery power, however, in some situations it can cause serious inconvenience for users.

Often, device owners are faced with a situation where the screen does not turn on after moving the phone away from their face, or, conversely, goes out while using the speakerphone. Incorrect operation of the sensor can be caused by both software glitches and physical damage, for example, a cracked protective glass or a low-quality sticker that covers the touch area.

In this detailed guide, we will look at all the legal and technical ways to deactivate or calibrate the proximity sensor on devices running Android. We will look at built-in settings, using the engineering menu, using special applications and even the debugging method via a computer so that you can choose the most suitable option for your model.

Built-in settings and hidden menus

The first thing you should do is check the standard settings of your smartphone, as some manufacturers, such as Xiaomi, Redmi or Poco, provide users with the ability to control this sensor directly through the system interface. Usually this option is located in the call settings section and allows you to quickly solve the problem without using third-party software.

If there is no item in the regular menu, you can try to enter the extended service menu, which is hidden from the eyes of the average user. To do this, in the Phone application you need to enter a special combination of characters, which opens access to testing hardware components. Combinations vary depending on the brand: for Samsung the code #0#is often used, and for Xiaomi โ€” ##6484##.

Inside the engineering menu, find the section responsible for Proximity Sensor. Here you can run a test that will show the current sensor values โ€‹โ€‹in real time. If the values โ€‹โ€‹change when you move your hand to the top of the screen, then the sensor is working properly, and the problem is most likely in the signal processing software logic. If the values โ€‹โ€‹stay the same, there may be a hardware malfunction.

โš ๏ธ Attention: Be extremely careful when changing settings in the engineering menu. Do not press the reset or format buttons if you are not sure of their purpose, as this may lead to data loss or inoperability of communication modules.

๐Ÿ’ก

If you cannot find the code to enter the engineering menu for your model, try entering the universal code ##4636##, which works on many pure versions of Android and devices with Qualcomm processors.

Using third-party applications for calibration

When built-in tools do not help, specialized utilities from the store come to the rescue Google Play. These applications cannot always completely disable the sensor at the system level due to security restrictions Android, but they allow for deep calibration or emulation of the sensor, ignoring its readings in certain scenarios.

One โ€‹โ€‹of the most popular solutions is the application Proximity Sensor Reset/Fix. It scans the sensor's performance and prompts the user to cover the top of the screen with their palm, and then remove it to record the new response thresholds. This is especially true if the sensor is stuck in the proximity state due to a software glitch.

There are also applications that force the screen to remain on during a call, taking over control of the display. An example is Proximity Off, which creates a layer on top of the system and blocks the command to turn off the backlight. However, it is worth remembering that such solutions may consume additional battery life.

  • ๐Ÿ“ฑ Proximity Sensor Reset: Ideal for resetting calibration and correcting false positives on older devices.
  • ๐Ÿšซ Proximity Off: Allows you to force the screen to remain active, ignoring signals from the sensor during calls.
  • ๐Ÿ”ง Phone Info SAM: A powerful diagnostic tool that allows you to view raw data from the sensor in real time.
๐Ÿ“Š Have you encountered the problem of the screen sticking during a call?
Yes, all the time
Sometimes it happens
Never happened
I solved it through the service center

Disable via USB and ADB debugging

For advanced users who are not afraid to work with the command line, there is the most reliable way to manage system functions - using the toolkit Android Debug Bridge (ADB). This method requires connecting the smartphone to the computer via USB and having the drivers installed, but it gives full control over the settings without the need to obtain root access.

You must first activate developer mode on your device. To do this, go to Settings โ†’ About phone and quickly click 7 times on the โ€œBuild numberโ€ item. After a message appears that you have become a developer, go to the new menu section and turn on the switch USB debugging.

Having connected the phone to the PC, open a command line or terminal in the folder with ADB installed and enter the command to test connections: adb devices. A request for debugging permission will appear on the smartphone screen, which must be confirmed. You can then use commands to change global system settings, although directly disabling a sensor often requires changing a parameter in the settings database.

adb shell settings put system proximity_on 0

This command attempts to change the system flag that controls the behavior of the sensor. It is worth noting that on modern versions Android (starting from 10 and higher), Google has tightened security policies, and some commands may not work without superuser privileges. In this case, the method may be ineffective without first unlocking the bootloader.

What to do if ADB does not see the device?

Make sure that you are using an original or high-quality cable for data transfer, and not just for charging. Also check if ADB Interface drivers are installed in your computer's Device Manager. Try switching the USB connection mode on your phone to the โ€œFile Transferโ€ mode.

Solving problems with protective glasses and cases

Very often, the reason for the incorrect operation of the proximity sensor lies not in the software, but in physical accessories. The sensor is usually located at the top of the screen, next to the earpiece, and any obstacles in its path can distort the infrared radiation it uses to determine the distance to an object.

Poor quality screen protectors, especially those that have a black border or coating at the top, can partially or completely block the sensor. Even a microscopic layer of glue or dust under the glass can create interference. Owners of smartphones with a cutout in the screen (โ€œnotchโ€) should be especially careful when choosing accessories.

Also, thick cases that extend onto the front panel of the device can cause false alarms. If you notice that the problem appeared immediately after installing a new glass or cover, try removing it and checking the operation of the sensor in its โ€œbareโ€ form. This is the easiest and free diagnostic method.

Type of obstacle Probability of failure Recommended action
Protective glass with black frame High Replacement with clear glass without frames
Thick bumper case Medium Cutting the case or replacing the model
Film with air bubbles Low Smoothing the film or re-sticking
Dirty speaker Medium Careful cleaning with a soft brush

โš ๏ธ Attention: When cleaning the sensor area, do not use sharp objects or aggressive chemical solvents to avoid damaging the oleophobic coating of the screen or the touch layer itself.

Hardware faults and repairs

If software methods and replacement of accessories do not bring results, there is a high probability of hardware failure. The proximity sensor is an optocoupler consisting of an infrared LED and a photodetector. Over time, the LED may burn out, or the cable connecting the sensor to the motherboard may break.

Such problems are especially common after the smartphone has been dropped or moisture gets inside the case. Water can cause oxidation of the contacts, resulting in unstable operation or complete failure of the component. In such cases, software shutdown becomes the only way to continue using the phone, albeit with some inconvenience.

You can use a flashlight for diagnostics: point the light of another phone's camera at the proximity sensor area during a call. If you don't see a dim purple or red glow, the IR illuminator is not working. This is a sure sign that a part needs to be replaced at a service center.

๐Ÿ’ก

Software disabling the sensor does not eliminate physical damage, but only masks its symptoms, so it is recommended to carry out diagnostics at a service center as soon as possible.

Consequences of disabling and precautions

Before you completely deactivate the proximity sensor, it is important to understand what consequences this will lead to in everyday use. The main function of the sensor is protection against accidental clicks, and without it, you run the risk of pressing the end call button with your cheek, turning on the speakerphone, or accidentally opening an application right during a call.

In addition, constant operation of the display during a call significantly increases energy consumption. The screen is one of the most energy-consuming components of a smartphone, and if it does not turn off during a 10-20 minute call, the battery will drain much faster than usual. This is especially critical for devices with an already worn-out battery.

However, for some scenarios, turning off is justified. For example, if you often use a headset or speakerphone, or if you need to see information on the screen during a call (for example, when dictating numbers via spreedial). In such cases, the discomfort from accidental presses is less than the inconvenience from a constantly dimming screen.

  • ๐Ÿ”‹ Battery consumption: The screen will be constantly on during a call, reducing battery life.
  • ๐Ÿ‘† Accidental clicks: There is a high risk of pressing an extra button with your ear or cheek, interrupting the call.
  • ๐Ÿ›ก๏ธ Security: In your pocket, the phone can unlock and perform actions if the sensor does not block touch input when approaching.
Is it possible to completely remove the sensor driver?

Complete removal of the driver is impossible without rebuilding the firmware and obtaining root access, which is extremely not recommended for ordinary users. This can lead to a bricked device or unstable system operation. It is better to use software to ignore the signal.

Why does the sensor not work after replacing the screen?

Often, when replacing the display module, non-original spare parts are used, in which the proximity sensor is missing or incorrectly connected. Also, the master might have forgotten to connect the sensor cable or damaged it during assembly.

Does the dark theme affect the operation of the sensor?

No, the software theme (dark or light) does not in any way affect the operation of hardware sensors. This is a purely visual interface parameter that does not affect input device drivers.

Is there a difference between an IR sensor and an ultrasonic sensor?

Yes. Most smartphones use infrared (IR) sensors that are sensitive to opaque obstacles. Ultrasonic ones are less common and work on the principle of echolocation; they are less susceptible to the influence of the color of objects, but are more sensitive to acoustic interference.