The proximity sensor on Xiaomi smartphones is a useful feature that automatically turns off the screen during a conversation, preventing accidental taps. However, many users face situations where this sensor does not work correctly: the screen does not go out when you call, buttons are accidentally pressed, or, conversely, the display does not turn on after a call is completed. In some cases, the sensor is not necessary at all β for example, if you use a headset or often call on speakerphone.
In this article, weβll look at all the ways you can completely disable the proximity sensor on Xiaomi, Redmi and POCO devices, from standard MIUI settings to system file editing. Youβll learn which methods are safe and which require root rights, and the risks of permanently shutting down the sensor, if youβre tired of crashing during calls or just want more control over your smartphone, this guide is for you.
Why does the proximity sensor interfere?
Before you turn off a function, you need to understand where it actually causes problems, and here are the most common scenarios.
- π False positives β the screen goes out for no reason or, conversely, remains active during the call, which leads to the pressing of the buttons with the cheek.
- π§ Sensor malfunction β after falling or getting moisture, the sensor may not work properly, requiring replacement or software shutdown.
- π§ Headset use β if you call through headphones or Bluetooth device, the proximity sensor becomes useless.
- π Conflict with the shell - after the update MIUI Or install custom firmware sensor may fail.
Interestingly, on some Xiaomi models (such as the Redmi Note 10 Pro or the POCO X3 Pro), the proximity sensor is combined with the light sensor, which means that when it is turned off, the automatic brightness adjustment may stop working.
Method 1: Disconnect via MIUI settings (without root)
The easiest and safest method is to use built-in MIUI options. Unfortunately, in the latest versions of the shell (starting with MIUI 12), the direct option to disable the proximity sensor has been removed, but it can be returned through hidden settings.
Follow the instructions:
- Open the Phone app (standard or Google Phone if installed).
- Dial the combination: ##6484## (this is a code for testing sensors).
- In the menu that opens, find the Proximity Sensor and tap it.
- If the sensor is in good shape, you'll see 5.00 cm (or similar) when you remove your hand and 0.00 cm when you approach it, and you can see a Disable or Turn Off button.
If there is no shutdown button, try an alternative path:
- Go to Settings. β The phone.
- Tap the MIUI version several times to activate the developer mode.
- Go back to the basic settings, open Additional β for developers.
- Find the option to Disable the proximity sensor (on some firmware it is hidden - use the search by settings).
Check the sensor with ##6484##
Make sure the problem isnβt with the cover or the protective glass.
Make a backup copy of settings
Record the initial values of the sensor (if any)
-->
Important! On some models (e.g. Xiaomi Mi 11 or Redmi K40), this method may not work due to manufacturer limitations, so move on to the next method.
Method 2: Use of the ADB-commands (without root, but with PC)
If standard settings donβt help, you can turn off the proximity sensor via Android Debug Bridge (ADB). This method does not require root rights, but requires a computer and USB-cable.
Step-by-step:
- Download and install ADB Tools on PC.
- Turn on the smartphone debugging by USB (Settings β About phone β MIUI version (tap 7 times) β For developers β debugging by USB).
- Connect the phone to the PC and confirm the debugging permission.
- Open the command line (Windows) or terminal (macOS/Linux) in the adb folder.
- Enter the command to check the connection: Adb devices must appear serial number of your device.
- Execute the command to disable the sensor: adb shell settings put global proximity_sensor_disabled 1
- Reboot your smartphone.
To get the sensor back to work, use the same command by replacing 1 by 0.
adb shell settings put system proximity_sensor_disabled 1
This duplicates the setting in another branch of system parameters.-->
Warning: Some Xiaomi firmwares reset ADB after the MIUI update, and you will have to repeat the procedure after each update.
Method 3: Editing system files (requires root)
For users with unlocked bootloader and root rights, a radical method is available - editing Android configuration files, which is guaranteed to turn off the sensor at the system level, but requires caution.
You'll need:
- π± Smartphone with root access (for example, through Magisk).
- π Root-enabled file manager (e.g., Root Explorer or Solid Explorer).
- π§ Backup of the system (in case of errors).
Instructions:
- Open the file manager and go on the path: /system/build.prop
- Find ro.lge.proximity.delay=25 or similar (may vary depending on the model).
- Add a new line to the end of the file: persist.sys.proximity.disable=1
- Save the changes and restart the device.
If there is no build.prop file or the changes didnβt work, try editing: /system/vendor/build.prop or /system/system.prop.
What if the phone doesnβt turn on after editing?
Critical! Incorrect editing of system files can lead to a "brick" (complete failure) of the device. If you are not sure of your actions, use other methods.
Method 4: Disconnecting through Engineering Mode (engineering menu)
On some Xiaomi models (especially older or Chinese firmware versions), the proximity sensor can be turned off via an engineering menu, which does not require root, but does not work on all devices.
How to get into Engineering Mode:
- Open the Phone app.
- Enter the code: ##36446337## (or #4636## for the alternative menu).
- Go to the Hardware Testing or Sensor section.
- Find Proximity Sensor and select Disable or Turn Off.
If the engineering menu doesnβt open, try the alternative codes:
- ##6484## is a sensor test.
- #64663## - Extended sensor settings
On new models (such as Xiaomi 13 or Redmi Note 12), the engineering menu can be blocked, in which case use ADB or root method.
Method 5: Install custom firmware (for advanced)
If none of the above methods worked, the last option is to install custom firmware (for example, LineageOS, Pixel Experience or ArrowOS). In most alternative builds, the proximity sensor can be disabled through configuration settings or editing.
The advantages of this method:
- β Full control of the system.
- β No restrictions MIUI.
- β Regular updates and bug fixes.
Cons:
- β Installation difficulty (requires unlocking the loader).
- β Risk of loss of guarantee.
- β Possible bugs (e.g., non-functioning) NFC camera).
If you decide to do this, follow the official instructions for your model on the XDA Developers or 4PDA forums.
π‘
Custom firmware is the most reliable way to turn off the sensor permanently, but is only suitable for advanced users.
What is the danger of constantly turning off the proximity sensor?
Before permanently deactivating the sensor, assess the possible consequences:
| Problem. | Description | How to minimize risk |
|---|---|---|
| Random taps | During the call, the screen will remain active, which can lead to the buttons being pressed with the cheek or ear. | Use the lock screen with a power button or gestures. |
| Fast battery discharge | Active screening during a conversation increases energy consumption. | Reduce the brightness of the screen or use a dark theme. |
| Inconvenient when calling | If there is no sensor, you will have to manually turn on / off the screen. | Set up gestures or use a headset. |
| Conflict with applications | Some programs (e.g. banking) may require a working sensor. | Check compatibility before disconnecting. |
If you make frequent calls in noisy places, turning off the sensor can cause microphone problems β the screen will respond to touches and you can accidentally press the microphone switch off button.
π‘
Before you shut down the sensor completely, try using a transparent film on the sensor area, which sometimes helps reduce false positives without drastic measures.
Alternative solutions: if you do not want to turn off the sensor
You don't always have to deactivate the sensor completely. Here are some alternative ways to fix the problem:
- π Sensor calibration: In the engineering menu (#6484###) you can reset the sensor settings.
- π± Use of gestures: in MIUI There is a gesture option to lock the screen (double touch).
- π‘οΈ Replacement of protective glass: sometimes thick or poor quality glass interferes with the sensor.
- π§ Update of the firmware: in new versions MIUI Often fix sensor bugs.
If the problem occurs after a fall or moisture, the sensor may be physically damaged, in which case it is better to contact the service center for diagnosis.