The problem when the smartphone screen lights up during a call and you accidentally hang up a call or turn on the speakerphone is familiar to many owners of Android devices. This is a classic symptom of incorrect operation proximity sensor, which in normal mode should turn off the display when you bring the phone to your ear. Users often look for hidden settings, trying to calibrate the sensor or change its sensitivity to correct the situation. However, it is almost impossible to find these parameters in the standard settings menu, since manufacturers often hide them deep in the system.
In this article we will look in detail where to look for the proximity sensor settings on Android, how to enter the engineering menu for manual calibration and what alternative diagnostic methods exist. You'll learn why the standard interface hides these options and how to safely access them without root. Understanding the principles of operation of this sensor will help you quickly eliminate a malfunction that can seriously interfere with comfortable communication.
It is worth noting right away that the location of the calibration tools directly depends on the model of your device and the version of the operating system. On smartphones Xiaomi, Samsung or Huawei the paths to the necessary functions may be radically different. Below are universal methods and specific codes that will help you find the menu you are looking for on almost any gadget.
Engineering menu: hidden access to settings
The most reliable way to get to the sensor settings is to use the engineering menu, which was originally intended for testing equipment by service centers. To get there, you don’t need complex apps, just enter a special USSD code in the “Phone” application. This method works on most devices, but the list of available commands depends on the processor and shell manufacturer.
The most common code for processor-based devices MediaTek is ##3646633##. After entering it, the engineering menu interface will open automatically. You need to go to the Hardware Testingtab, then select Sensor and find the item Proximity. Tests and basic calibration are available here. For devices Samsung the code #0#is often used, after which you need to select the button Sensor and place your finger on the top of the screen to check the reaction.
Owners of smartphones Xiaomi and Redmi can use code ##6484## or ##4636##which opens the testing menu. In the Proximity sensor section you can see the current readings and start the calibration procedure by covering the top of the screen with your hand. If the screen goes out and lights up correctly, it means that the sensor is physically working, and the problem may be software.
⚠️ Attention: Be extremely careful in the engineering menu. Changing unknown parameters in sections
TelephonyorConnectivitycan lead to loss of network signal or inoperability of communication modules. Use only sections related to sensor testing.
It is important to understand that not all codes are universal. If standard combinations do not work, the manufacturer may have blocked access to the engineering menu in your firmware version. In this case, you should look for specific codes for your model on the Internet or use third-party diagnostic applications.
Specific settings on Xiaomi and Redmi
The company's devices Xiaomi (including brands Redmi and Poco) have one of the most advanced diagnostic systems, built directly into the shell MIUI or HyperOS. Here it is not always necessary to use secret codes, since access to equipment tests is often placed in a separate application “Service and feedback” or is available through the dialing menu.
To enter the proximity sensor test mode on Xiaomi you can use the code ##6484##. The CIT menu will open (Customer Integration Test). Find the item Proximity sensorin the list. By clicking on it, you will see two numerical values: current and maximum. If you place your finger on the sensor, the values should change. Calibration often requires pressing a button Calibration (if it is active) and following the steps indicated on the screen.
On some models with an on-screen proximity sensor (ultrasonic or optical under the display), the settings may be hidden even deeper. In such cases, the system itself performs auto-calibration every time the screen is turned on. If you notice problems, try simply rebooting the device - this often resets temporary calibration errors.
Cases and protective glasses deserve special attention. On smartphones Xiaomi the sensor is often located in a narrow frame above the screen. If the protective glass covers this area or has a black border, the sensor will constantly “think” that the phone is at the ear and turn off the screen. In this case, no software settings will help - only replacing the accessory.
Calibration on Samsung and Huawei
Smartphones Samsung use their own diagnostic application called Samsung Members. This is an official tool that allows you to check all the components of your device without entering complex codes. Go to the application, select the “Diagnostics” section and find the proximity sensor test. The system itself will tell you whether the sensor is working.
For devices Huawei and Honor there is also a hidden menu accessible by code ##2846579##. In the menu that opens ProjectMenu you need to select Single test, and then Proximity. Here you can start testing. If the sensor does not respond to the approach of your hand, try cleaning the area around the front camera and speaker from dirt. It is worth noting that modern flagships use a virtual sensor that works based on data from the accelerometer and gyroscope in conjunction with AI algorithms. In such models, physical calibration through the menu may not be available as the system learns in the background. If the screen behaves incorrectly, try resetting all applications or performing a full reset to factory settings.
It is worth noting that on modern flagships Samsung And Huawei a virtual sensor is used that works based on data from the accelerometer and gyroscope in conjunction with AI algorithms. In such models, physical calibration through the menu may not be available as the system learns in the background. If the screen is not behaving correctly, try resetting all applications or performing a full factory reset.
Why can the sensor lie after replacing the screen?
If you replaced the display module with a non-original one, the new screen may have a sensor with a different sensitivity or may not have one at all (using data from the main module). In such cases, flashing the controller or installing patches is required, which can only be done by service center specialists.
Also on devices of these brands, the “Pocket Mode” function is often found, which increases the sensitivity of the sensor. You can find it along the path Settings → Accessibility → Pocket mode (the path may differ depending on the version Android). Disabling this function sometimes solves the problem of false positives.
Using third-party applications for calibration
If the built-in methods do not produce results or access to them is blocked, applications from Google Play. They allow you to bypass system limitations and gain access to hidden calibration functions. One of the most popular and proven tools is the application Proximity Sensor Reset/Fix.
After installing such an application, you usually need to perform the following steps:
- 📱 Launch the application and provide the necessary permissions (if required).
- 🧹 Press the “Clean” or “Calibrate” button to reset the current values.
- 👐 Close the sensor with your hand when the application asks, and remove your hand when it says “Open”.
- ✅ Reboot the device to apply the new settings.
Another powerful tool is the application Phone Doctor Plus or Test Your Android. They not only calibrate, but also show a graph of sensor readings in real time. This helps to understand whether the sensor is “buggy” (readings fluctuate) or whether it is simply incorrectly calibrated (there are readings, but the response threshold is off).
⚠️ Attention: Calibration applications may request broad permissions to access the system. Use only proven apps with a high rating and a large number of reviews so as not to compromise the security of your data.
If after calibration and reboot the sensor still does not work, the problem most likely lies in the cable or the sensor itself. In this case, software methods are powerless.
☑️ Check before calibration
Diagnostics via ADB and computer
For advanced users who are not afraid of the command line, an excellent tool is the debugging utility USB and utility ADB (Android Debug Bridge). This method allows you to receive direct data from sensors and even send commands to reconfigure them, bypassing interface restrictions.
First, you need to enable developer mode on your phone (tap 7 times on the build number in “About phone”) and activate “USB Debugging.” Once you connect your phone to your computer, you can use the command to check the status of the sensor. Enter into the console:
adb shell dumpsys sensor_service | grep -i proximity
This command will display the current state of the proximity sensor. You will see values valuethat vary from 0.0 (far) to 5.0 or 100.0 (close), depending on the sensor type. If the values do not change when covering the sensor with your hand, it means that the system is not receiving data from the hardware part.
You can also try to reset the sensor settings via ADB, although this does not work on all devices. The command may look like this:
adb shell settings put system proximity_sensor_enabled 0
adb shell settings put system proximity_sensor_enabled !
Before connecting to ADB, be sure to install the drivers for your device on your computer. For Samsung these are Samsung USB Drivers, for others - Universal ADB Drivers. Without drivers, the computer will not see the phone in debug mode.
Using ADB requires care. One wrong command can lead to system instability. However, for diagnosing “dead” sensors that are not visible in the regular menu, this is often the only working method.
Code table for different manufacturers
So that you don’t have to search for codes all over the Internet, we have compiled a current list of USSD commands for entering the engineering menu and testing sensors for the most popular brands. Save this table or add this article to bookmarks.
| Brand / Manufacturer | Code to enter the engineering menu | Code for equipment test | Menu section |
|---|---|---|---|
| MediaTek (general) | ##3646633## |
##3646633## |
Hardware Testing → Sensor |
| Samsung | #0# |
#0# |
Sensor → Proximity |
| Xiaomi / Redmi / Poco | ##6484## |
##4636## |
Proximity sensor |
| Huawei / Honor | ##2846579## |
##2846579## |
Single test → Proximity |
| Sony | ##7378423## |
##7378423## |
Service tests → Proximity |
Please note that codes may be blocked on some carriers or in certain regions. In this case, try entering the code without the asterisk and hash symbols in the search field of the phone settings - sometimes this also works.
If none of the codes work, your model may be using closed diagnostics. In this case, you can only rely on third-party applications from Play Market or contacting a service center for a hardware check.
Frequent problems and their solutions
Even after successful calibration, users may encounter repeated problems. Most often this is due to software conflicts or physical obstacles. Let's look at the main reasons why the sensor may behave incorrectly.
One of the common reasons is application conflict. Some apps that use the screen or camera (for example, smart lock, gesture control) can intercept control of the sensor. Try starting the phone in Safe Mode. If the sensor works perfectly in this mode, then one of the applications you installed is to blame.
It is also worth mentioning the problem with protective films. Even high-quality glass can create glare or distort the infrared radiation of the sensor. Try removing the protection and checking the operation. If the problem disappears, replace the accessory with a thinner one or with a cutout for the sensor.
In 80% of cases, the problem is solved by simply cleaning the top of the screen from grease and dirt. The proximity sensor is an optical or IR sensor, and any film in its path disrupts the operation.
If you have a phone with a cutout (“notch”) or a hole for the camera, make sure that the system wallpaper or theme does not cover this area with black. The black color above the sensor can be perceived by the system as a constantly approaching object.
FAQ: Frequently asked questions
Is it possible to completely disable the proximity sensor on Android?
No using standard system tools. This feature is critical for making calls properly. However, there are "crutch" applications (for example, "Proximity Sensor Fix") that emulate the operation of the sensor or force the screen to remain on during a call, but this uses up the battery and is inconvenient.
Why does the screen go blank when I just hold the phone in my hand without bringing it to my ear?
Most likely, you are blocking the sensor finger. On modern smartphones without frames, the sensor is located in a narrow strip above the screen. Try changing your grip. Also, the reason may be too high sensitivity after unsuccessful calibration.
Does a discharged battery affect the operation of the sensor?
Indirectly - yes. When low on power, some power saving systems may not poll sensors correctly to save power. In addition, voltage surges during a critical discharge can cause malfunctions in the controller.
What to do if the sensor stops working after updating Android?
After the update, configuration files are often lost. Try resetting to factory settings (saving data if possible) or flashing the device. If it doesn’t help, perhaps the update contains a bug, and you need to wait for a patch from the manufacturer.
Does replacing the screen affect the sensor?
Yes, if you changed the display module. In inexpensive copies of screens, the sensor may be missing or of poor quality. In original modules, it is usually built into the frame or the display itself, and after replacement, software calibration is often required.