The proximity sensor in the Xiaomi Mi 9 is a small but critical element that automatically shuts down the screen during phone calls. When you hold your smartphone to your ear, the sensor registers the obstacle and extinguishes the display, preventing accidental pressing. However, users often face false positives: the screen goes out in your pocket, does not turn on after a call, or behaves unpredictably when using cases.
But before you deactivate the sensor, it's important to understand the consequences. Without it, the screen will remain active during calls, leading to accidental button pressing, speaker switching, or even ending the call. In addition, disabling through an engineering menu or ADB can disrupt the stability of the system, especially if you use informal firmware. In this article, we'll look at all the available ways, from safe to radical, as well as alternative solutions for those who are not willing to take risks.
1. Method through standard Android settings (without root)
The safest method is to use the built-in MIUI features. Unfortunately, the Xiaomi Mi 9 does not have a direct option to disable the proximity sensor, but you can bypass the restriction through special features settings. This method does not require superuser rights and is suitable for most firmware versions.
Instructions:
- π± Open the Settings. β Special facilities.
- π Scroll down and select Physical buttons (or System settings depending on version) MIUI).
- π οΈ Find the option Autoturn screen or Sensors (in some firmware options hidden under Additional).
- β Turn off the approach sensor (if available) or Automatically turn off the screen during a call.
If your MIUI version doesnβt have a direct option, try an alternative path:
- During a phone call, swipe down the notification panel.
- Click on the icon "Loud Communication" or "Dynamic".
- In some firmware, this temporarily disables the sensor's response to obstacles.
β οΈ Warning: After being turned off by special features, the screen can remain active even when the phone is held to the ear, increasing the risk of accidentally completing a call or switching to speakerphone.
βοΈ Preparation before sensor shutdown
2. Disconnection via the engineering menu (code ##)
The Engineering Menu is a hidden section of the Xiaomi Mi 9 that allows you to test hardware components, including sensors. This method does not require root rights, but requires caution: incorrect settings can lead to malfunctions of the sensors.
Step-by-step:
- Open the Phone app and type the combination: ##6484## (some firmware can run ##4636## β Hardware Testing β Sensors).
- In the menu that opens, select Proximity Sensor.
- Click Disable or uncheck Enable.
- Restart the device to apply the changes.
If the combination doesnβt work, try the alternative code for Xiaomi:
##36446337##After you enter, you will open the EngineerMode menu, where you will go to Hardware Testing β Sensors β Proximity.
| Combination | Appointment | Works on Mi 9? |
|---|---|---|
| ##6484## | Direct access to sensors | Yes (on most firmware) |
| ##4636## | Testing of hardware | Partially (requires Sensors selection) |
| ##36446337## | MIUI Engineering Menu | Yes (may differ in global versions) |
| ##2664## | Touchscreen test | No (not applicable to the proximity sensor) |
β οΈ Note: Changes to the engineering menu are not saved after resetting or updating the firmware. MIUI The sensor can be activated again after restarting.
π‘
If the engineering menu doesn't open, check if it's blocked by an antivirus or security app (e.g., Security from Xiaomi). temporarily turn off the protection and try again.
3. Disconnection via ADB (for power users)
If standard methods donβt work, you can use Android Debug Bridge (ADB), a debugging tool that allows you to manage system settings via a computer, which requires you to enable USB debugging and install ADB drivers.
Instructions:
- Turn on Developer Mode: Go to Settings β About Phone. 7 times click on the MIUI Version until the notification appears You became a developer.
USB debugging
Settings β Additional β For Developers
Xiaomi Mi 9
adb shell settings put global proximity_sensor_enabled 0Reset the device.
To return the sensor to working condition, use the command:
adb shell settings put global proximity_sensor_enabled 1If the command fails, try an alternative method by changing the configuration file (requires root rights):
adb shell
su
echo "0" > /sys/class/sensors/proximity/enableβ οΈ Attention: Use ADB This can cause a loss of warranty if the device is in official service, and incorrect commands can cause system failures.
What if the ADB does not recognize the device?
4. Disable via build.prop editing (root only)
For users with superuser rights (root) available method of editing the system file build.prop. This method is the most radical and can lead to unstable operation of the device if you make errors.
Step-by-step:
- Install a file manager with root support (such as Root Explorer or Solid Explorer).
- Go to /system/build.prop.
- Create a backup of the file (copy it elsewhere).
- Open build.prop in the text editor and add the line at the end: persist.sys.proximity.disable=1
- Save the changes, set the rights 644 (rw-r-----).
- Reset the device.
β οΈ Attention: On some firmware MIUI (especially custom) disabling the proximity sensor may result in loss of Always-On Display functionality or gesture control.
7.How to check the operation of the proximity sensor on Xiaomi Mi 9
Before you turn off the sensor, make sure it's really the problem. Use built-in tools or third-party apps to diagnose.
Method 1: Through the Engineering Menu
- Enter the code ##6484##.
- Select Proximity Sensor.
- Put your hand to the top of the screen (where the sensor is located).
- If the values change from 5.0 cm to 0.0 cm, the sensor works correctly.
Method 2: CPU-Z or Sensor Box
- Install the app from Google Play.
- Open the Sensors tab.
- Find Proximity and check for the reaction to the obstacle.
Method 3: Test call
- Call another phone.
- Hold the Xiaomi Mi 9 to your ear, and the screen should go out.
- Take the phone away, the screen should turn on.
- If there is no reaction or it is delayed, the sensor is faulty.
| Sign. | Possible cause | Decision |
|---|---|---|
| The screen does not go out during the call. | Sensor is disabled or faulty | Check the settings, test the sensor |
| The screen does not turn on after the conversation. | Sensor or software getting stuck | Reboot the phone, calibrate the sensor |
| False positives in your pocket | Sensitivity of the sensor, case | Reduce sensitivity or change the cover |
| The sensor is not responding at all. | Hardware breakdown | Contact the service center. |