Disable the proximity sensor on Xiaomi Mi 11 Lite

Modern smartphones like the Xiaomi Mi 11 Lite have a variety of sensors designed to make it easier to interact with the device. One key component is the proximity sensor, which automatically turns off the screen when you hold the phone to your ear, but in some situations this feature may not work properly or interfere with the user, causing it to be forced to turn off or fine-tuned.

Owners of the Mi 11 Lite often face a situation where the screen goes off too early or, conversely, does not turn off during the call, which leads to accidental cheek pressing. In this article, we will discuss in detail the technical aspects of the sensor, consider software methods for deactivating it through system settings and engineering menus, and touch on hardware nuances.

It is worth noting that completely disabling the sensor is an extreme measure that deprives you of automatic screen quenching. Most often, the problem is solved by correct calibration or resetting, but if your goal is to turn off the feature, we will provide comprehensive instructions for the MIUI and HyperOS shell.

Why you might need to shut down the sensor

The main reason why Xiaomi Mi 11 Lite users are looking for ways to turn off the sensor is because the recognition algorithms are not working correctly: The situation when the screen goes out while the phone is lying on the table or in the hand at a distance from the ear is classic, this is due to the high sensitivity of the sensor or software bugs in the drivers.

Another scenario is the use of specific accessories. Some protective glasses or covers can overlap the sensor area, causing false positives. In such cases, turning off the function becomes a temporary solution until the accessory is replaced or repaired, and this is also true for people with hearing impairments who use loudspeakers or headsets where automatic screen suppression is not required.

It is believed that the constant operation of the sensor affects the autonomy of the device, although the energy consumption of the infrared emitter is minimal.

  • 🚫 Eliminating accidental cheek presses during conversation due to false positives.
  • πŸ›‘οΈ Solving problems with incorrect operation of protective glasses that overlap the sensor.
  • βš™οΈ Diagnostics of hardware serviceability of the module before contacting the service.
  • πŸ”‹ Theoretical (minimum) reduction of the energy consumption of background services.

It's important to note that the standard Android or MIUI settings menu often doesn't have a direct "Disable the proximity sensor" button, which is specifically designed by manufacturers because it's considered critical to the basic functionality of the phone, so you have to use workarounds.

Software Methods through MIUI Settings

Before we get to the complex engineering menu, it's worth checking the standard system settings. In the latest versions of the HyperOS shell and MIUI 14/15, the logic of the sensors has been changed, and now the system relies more on software processing of data from the gyroscope and accelerometer, rather than just the IR sensor.

The first step is to check the call settings. Go to the Phone app, click three dots in the corner, and select Settings. This could be "Mode in your pocket" or "Block in your pocket," and turning off this feature will prevent the screen from quenching when the phone is in your bag, but it won't shut down the sensor completely during the call.

Also worth paying attention to special features settings. Sometimes conflicting applications or smart screen settings can affect sensor behavior. Check Settings β†’ Advanced settings β†’ Special features. Here you can find parameters related to screen control and gestures that indirectly affect the approach sensor.

⚠️ Warning: Disabling the Lock in Your Pocket feature can lead to random dials when the phone is lying in your bag or pocket along with the keys.

If the standard settings don't work, we'll move on to a deeper setup. In some regions and firmware versions, the "Draw-up Sensor" option is hidden in the call menu. If you find one, switching it to "Off" will solve the problem, but on the Xiaomi Mi 11 Lite, this option is often hidden by developers.

πŸ“Š How often do you turn off your screen while you’re talking?
It's always intruding.
Sometimes, it's rare.
Never, everything works perfectly.
Only in the case.

Use of the CIT Engineering Menu

The most effective way to manage Xiaomi’s hidden features is through the CIT (Customer Interface Test) engineering menu, a diagnostic interface designed to test all smartphone modules in the factory, which not only allows you to check, but in some cases, reconfigure the behavior of sensors.

To enter the menu, you need to open the Phone app and type a special code. On Mi 11 Lite devices, the combination ##6484## works. Once you enter the code, the menu will open automatically. If the code does not work, try #4636##, although it leads to a more general test menu.

In the list that opens, look for "Proximity Sensor" or "Approximation Sensor." If you click on it, you'll be taken to the test menu. Here you'll see the current sensor readings. Close the top of the screen with your hand -- the value should change from 5.0 to 0.0. If the values "jump" for no reason, you may need calibration.

β˜‘οΈ Checking in CIT menu

Done: 0 / 5

Some versions of the CIT menu have a Calibration button, and by pressing it and following the instructions on the screen (usually closing the sensor and then opening it), you can reset the reference values, which often solves the problem when the sensor "thinks" it's closed, when it's not.

Remember, the engineering menu is a powerful tool, and changing unknown parameters can cause the system to run in an unstable way, and only use validation and calibration if you don't have deep Android debugging experience.

Disconnection through ADB and system commands

For users who are ready to connect a smartphone to a computer, there is a method to disable the sensor through the ADB (Android Debug Bridge) debugging bridge, which allows you to change system parameters that are not available through the usual interface, it requires the developer mode on and the software installed on the PC.

First, activate Developer Mode. Go to Settings β†’ About Phone and quickly press 7 times on the build number (MIUI Version). After you see the "You became a developer" sign, go to Advanced Settings β†’ For Developers and turn on "Debugging by USB".

Connect the Xiaomi Mi 11 Lite to your computer and open the command line with administrator permissions. Enter a command to check the connection:

adb devices

You'll see a debugging request on your phone -- press "Allow." Then, to try to turn off the sensor, you can use commands to change the global settings. However, there's no direct command to completely disable the proximity sensor driver in ADB, because it's a low-level component, but you can try to reset it or disable related services.

One method is to use a command to reset the sensor calibration, which can help if the problem is a software failure:

adb shell settings delete system proximity_sensor_calibrated

You can also try to disable the service responsible for processing sensor data (caution, this may affect the screen as a whole):

adb shell pm disable-user --user 0 com.android.providers.sensorhub

⚠️ Attention: Teams ADB This can lead to unstable operation of the system.Be sure to create a full backup of data before execution.

If standard commands don’t help, enthusiasts often use specialized manipulator apps that require root rights, but on the Mi 11 Lite with the unlocked bootloader, this gives complete control.

Table of codes and commands for diagnosis

For ease of diagnosis and sensor tuning on Xiaomi Mi 11 Lite, we have compiled the basic codes and commands into a single table, and use them to check the status of the device before deciding to disconnect.

Team/CodeAppointmentOutcome of implementation
Action.FunctionExpected impact
##6484##CIT's Engineering MenuOpening a full list of equipment tests
##4636##Test menuInformation on battery and use
adb shell dumpsys sensorSensor statusLogs of all sensors in real time
settings get system screen_brightness_modeAutobrightness checkShows if the light sensor is on (often linked)
pm list packages | grep sensorSearch for sensor packagesList of system applications working with sensors

Using these commands, you can get detailed information about how the system sees the proximity sensor. If you see constant state changes (NEAR/FAR) in the dumpsys logs without the phone moving, this is a sign of hardware malfunction or severe interference.

On some global firmware, the codes of the engineering menu may be blocked by the carrier, in which case, try entering the code through the Phone app in dial mode, rather than through settings search. If it doesn't work, install the Shortcut Master app from the Play Market, which allows you to run hidden system activities.

Third-party applications for sensor management

If system methods seem too complex or ineffective, Google Play apps come to the rescue. There are many utilities designed specifically to control sensors on Android, including Xiaomi models, which allow you to programmatically ignore sensor signals.

One popular solution is the Proximity Sensor Reset/Fix app, which doesn't physically turn off the sensor, but resets it if it's stuck. Another option is Lesser Notification Control or Call Blockers, which have their own algorithms for processing incoming calls, ignoring the standard sensor.

There are also calibration apps like Sensor Calibration & Test, which allow you to do a deep sensitivity setting, so you can set the trigger threshold higher, so that the phone only responds to the full sensor overlap, ignoring the partial dimming.

When installing third-party sensor control applications, be sure to check the permissions requested. Do not give access to contacts or microphone to calibration applications unless clearly necessary.

It's important to understand that third-party applications run on top of the system, and if a kernel sensor driver gives a "closed" signal, the application may not be able to intercept it, so the effectiveness of these methods varies from Android version to specific MIUI build.

Hardware causes and physical solutions

Physical factors can’t be discounted either. On the Xiaomi Mi 11 Lite, the proximity sensor is located narrowly above the display. Any contamination, greasy traces, or dust in this hole can block the IR ray. Regularly wiping the top of the smartphone with microfiber often solves the problem without software intervention.

Another common reason is the protective glass, which is that if the glass is not evenly glued or has a black edge that goes into the sensor, it will work incorrectly, in which case it helps to neatly scrape the black paint from the inside of the glass above the sensor or replace the glass with a model with a cutout under the sensor.

The unique problem with the Mi 11 Lite is the design of the display plume, which in some cases can be slightly removed when impacted or dropped, resulting in loss of contact with the sensor, which requires disassembling the device and reconnecting the plume in the service center.

⚠️ WARNING: Self-disassembly Xiaomi Mi 11 Lite is difficult due to the glass back cover and adhesive base.Inexperienced intervention can lead to a shattering of the body.

If you notice that the sensor stopped working after falling or getting moisture, the software methods of shutting down will be only a "crut," in such a situation, the most reasonable solution is to diagnose the specialists, since the problem may be oxidation of the contacts.

Frequently Asked Questions (FAQ)

Can the proximity sensor driver be removed completely?
Theoretically, yes, but only if you have root rights and unlocked bootloaders, which would require modifications to system files or the kernel, which is extremely dangerous and can turn the phone into a brick. It's easier to use software ignoring.
Why does the sensor work normally on the menu, but it turns off the screen when you call?
This indicates a conflict of software algorithms, and when you call, the phone application logic comes into play, which may be more sensitive, and try to clear the cell phone and Google Play services cache.
Does the sensor shutdown affect autobrightness?
No, they're different sensors. The light sensor (for brightness) and the proximity sensor (for screen) are separate modules, although they're often side by side.
Will the sensor calibration via the CIT menu reset the warranty?
Calibration through the regular engineering menu is not a breach of warranty, but if traces of body opening or software flashing (unlocking the bootloader) are found, warranty service may be denied.
What is the reset code for all sensor settings?
There is no universal code for completely resetting all sensors, and you can try resetting the network settings (#726### on some models) or completely resetting the phone via Recovery, but this will delete all user data.