Xiaomi Redmi 7A is one of the most popular budget smartphones, but its proximity sensor is often a source of irritation. Users complain of spontaneously turning off the screen during calls, false positives when using cases or even in your pocket. If you are tired of these problems, this article will help permanently disable the proximity sensor in three proven ways.
We'll look at formal and informal methods, including hidden MIUI settings, engineering menus, and ADB commands. It's important to understand that turning off the sensor has consequences: the screen won't go out during a conversation, which can lead to accidental taps. But for many users, it's less of a bad thing compared to the constant sensor failures.
Before you start, make sure that the sensor is the problem, and do the test: when you call, cover the top of the screen with your hand -- if the display goes out and doesn't turn back on, the sensor doesn't work properly, and if the screen stays active, it may already be off at the software level.
Why the Redmi 7A's proximity sensor doesn't work properly
The Redmi 7A uses an infrared proximity sensor that detects the distance to an object (like your ear while you're ringing), which Xiaomi's budget models often suffer from several problems:
- πΉ Sensor pollution β dust, grease, or protective film block infrared signal.
- πΉ Software bugs - errors in firmware MIUI lead to false positives.
- πΉ Low-quality cases β dense or metallized cases interfere with the sensor.
- πΉ Hardware wear β over time, the sensitivity of the sensor decreases.
Before turning off the sensor, try simple solutions:
- Wipe the top of the screen with an alcohol napkin (especially the area next to the speaker).
- Remove the protective film or cover β they can block the signal.
- Update your firmware to the latest version of MIUI (path: Settings β About Phone β System Update).
If these measures do not help, go to radical methods.
Method 1: Disconnect the sensor via MIUI settings (official method)
The easiest and safest way is to use hidden MIUI settings. It doesnβt require root or PC connection, but it doesnβt work on all firmware versions.
Instructions:
- Open the phone (calling) application.
- Dial the combination: ##6484## (this is a code for testing sensors).
- You'll be taken to the Manual Test menu. Select Proximity Sensor.
- Press the Disable button (if it is active).
- Reboot the phone.
If there is no Disable button, try an alternative path:
- Go to Settings. β The phone.
- Tap 7 times on the MIUI version 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).
βοΈ Preparation for sensor shutdown
Important! On some versions of MIUI 12+, this method may not work due to manufacturer limitations, so move on to the following.
Method 2: Use of the MTK Engineer Mode
The Redmi 7A is built on a Qualcomm Snapdragon 439 processor, but it retains the MediaTek engineering menu (a legacy from previous models) that allows you to manually calibrate or disable the sensor.
Step-by-step:
- Install the MTK Engineer Mode app from Play Market (if it is not available, download the APK from a trusted source, such as APKPure).
- Open the app and go to Hardware Testing β Sensors.
- Select Proximity Sensor.
- In the PS Calibration field, enter the value of 0 (this will turn off the sensor).
- Press Set Calibration and restart the phone.
If the sensor is active again after the reboot, try a different approach:
- π§ In the same menu, find a paragraph. PS Config.
- π§ Set the parameter. PS Distance to maximum value (usually 255).
- π§ Save the settings and restart the device.
What if the engineering menu does not save the settings?
Warning: Changes to the engineering menu can cause other sensors to work unstable (e.g., light or gyroscope). If artifacts appear after manipulation, reset settings through Settings β System β Reset settings.
Method 3: Disable the sensor via ADB (for power users)
If previous methods have failed, the most reliable way is to disable the sensor via Android Debug Bridge (ADB), which requires a connection to a computer, but is guaranteed to work on any version of MIUI.
What you need:
- π₯οΈ Computer with Windows/Linux/macOS.
- π USB-cable (preferably original).li>
- π₯ Installed drivers Xiaomi and ADB Tools.
- βοΈ Initiated debugging mode USB phone-on.
Instructions:
- Activate the developer mode (7 taps according to the MIUI version in the settings).
- Enable USB debugging in Settings β Additional β For developers.
- Connect the phone to the PC and confirm the debugging permission.
- Open the command prompt (Windows) or terminal (Linux/macOS) in the folder with ADB.
- Enter the command to check the connection: Adb devices must appear serial number of your device.
- Sensor Disable: Adb shell settings put global proximity_delay 0 adb shell settings put global proximity_sensor_enabled 0
- Reboot the phone.
To get the sensor back to work, use the commands:
adb shell settings put global proximity_delay 250
adb shell settings put global proximity_sensor_enabled 1π‘
If the screen does not go out during calls after the sensor is turned off, install the Gravity Screen app from the Play Market β it automatically locks the screen when approaching the ear.
Attention! Some versions of MIUI 13+ block changes through ADB. If the commands don't work, try adding the --user 0 flag:
adb shell settings --user 0 put global proximity_sensor_enabled 0Table: Comparison of methods for disconnecting the proximity sensor
| Method | Difficulty | PC required | Root is required. | Reversibility | Risk of failure |
|---|---|---|---|---|---|
| Through MIUI settings | β | β No. | β No. | β Yes. | β Low. |
| Engineering menu | ββ | β No. | β No. | β Yes. | ββ Medium. |
| ADB-team | βββ | β Yes. | β No. | β Yes. | β Low. |
| Editing by build.prop | ββββ | β Yes. | β Yes. | β οΈ Partially. | ββββ High-pitched |
For most Redmi 7A users, the best way to do this is through ADB, which is universal and doesn't require super-user rights. The engineering menu is suitable for temporary shutdowns, and MIUI settings only work on older versions of the firmware.
What to do if the sensor is turned off, but the screen is not locked during calls
Once you turn off the proximity sensor, you'll have a new problem: the screen won't go out when you bring the phone to your ear, and this leads to random taps (such as volume keys or the end of a call).
- π± Install the Gravity Screen app β it uses an accelerometer to lock the screen when the angle of inclination changes.
- π Enable the power button lock: during the call manually press the lock button.
- π§ Use a headset with a microphone β so the screen will not interfere.
- π Put the sensor back in operation, but calibrate it (via an engineering menu or service center).
If you have chosen Gravity Screen, set it up like this:
- Open the app and enable the Lock on Proximity option.
- Set the sensitivity on High.
- Activate Pocket Detection to protect against pressing in your pocket.
Attention, apps like Gravity Screen increase battery consumption by constantly polling the accelerometer. 7A low-powered 4000 This can reduce the battery life of 10-15%.
Alternative solutions: calibration and replacement of the sensor
If the sensor isn't working properly, but you don't want to turn it off completely, try recalibrating the sensor. This can help with false positives.
How to Calibrate the Approach Sensor:
- Install the Sensor Box for Android app from the Play Market.
- Open the Proximity Sensor tab.
- Cover the sensor with your hand - the value should change from 5.0 cm to 0.0 cm.
- If the readings do not change, the sensor is defective.
- For manual calibration, use the engineering menu (see Method 2).
If the calibration didn't work, it's possible that the sensor is physically damaged.
- π οΈ Contact Xiaomi Service Center (guarantee covers sensor replacement).
- π° Replacement cost in informal workshops: 800-1500 rubles (depending on the region).
- π§ When replacing yourself, buy the original sensor (article: XIAOMI 1607-0158).
Before replacing, check if the problem is caused by firmware. Sometimes resetting to factory settings (Settings β System β Reset) brings the sensor back to life. Remember to back up the data!
π‘
Turning off the proximity sensor is a temporary solution, so if there's a hardware problem, it's better to replace the sensor or take the phone to the service.