Checking the proximity sensor on Xiaomi Redmi 7A: from diagnosis to repair

Why the Redmi 7A's proximity sensor is failing and how to determine it

The proximity sensor in the Xiaomi Redmi 7A is a small but critical element responsible for turning off the screen during a phone conversation. If it breaks, you risk accidentally pressing buttons on your face or ear during a call, leading to crashes, unintentional actions or even a communication break. Typical symptoms of malfunction: the screen does not go out when you bring the phone to your ear, accidental pressing during a conversation, or, conversely, the screen does not turn on after the call is completed.

The causes of failure range from software failures to physical damage, most often the problem lies in:

  • πŸ“± Sensor contamination – dust, grease, or protective film can block the infrared signal.
  • πŸ”§ Damage after falling – even a minor impact can displace or damage the sensor.
  • πŸ–₯️ Firmware failure - errors in the system MIUI This can cause the sensor to work incorrectly.
  • πŸ”Œ Contact oxidation – moisture or corrosion on the board disrupts the connection.

Before you take your phone to a service center, you should check the sensor's performance yourself, and 80 percent of the time, it's software or simple cleaning, and then we'll look at all the diagnostic tools available, from built-in tests to third-party applications.

πŸ“Š Have you experienced a failure of the proximity sensor?
Yes, on Redmi 7A.
Yes, on another Xiaomi model.
No, but I've heard about this problem.
I don't know what that is.

Method 1: Check through the engineering menu (code ##6484##)

The most reliable way to diagnose is to use a hidden engineering menu, which is available on all Xiaomi smartphones and allows you to test the sensor without additional applications.

  1. Open the Phone app.
  2. Enter the combination: ##6484## (some firmware may require ##4636###).
  3. Select Proximity Sensor (Proximity Sensor).
  4. Close the top of the screen with your hand – the value should change from 5 (maximum distance) to 0 (object nearby).

If the values do not change or the Failed error is displayed, this indicates a hardware malfunction. On the Redmi 7A, the normal value at rest is 5 cm, at closing - 0 see Deviations of more than 1 cm are considered critical.

Charge your phone at least 30 times%|Remove the cover and protective film|Being in a well-lit place|Close all background applications-->

⚠️ Note: Some custom firmware may have the engineering menu blocked. If the code doesn't work, try an alternative method through the app MIUI Hidden Settings (available on Google Play).

Method 2: Diagnostics with Phone Doctor Plus

If the engineering menu isn't available or you prefer a more visual interface, use third-party utilities. One of the best is Phone Doctor Plus, which tests all of your smartphone's sensors, including the proximity sensor. Download it from Google Play and follow the instructions:

  1. Launch the application and press Start Test.
  2. Scroll to the Sensors section.
  3. Select Proximity Sensor.
  4. Follow the hints on the screen: Close the sensor with your hand and make sure the indicator changes color from green to red.

The app also shows the sensor response time (in milliseconds). For the Redmi 7A, the normal value is up to 200 ms. If the response is greater than 500 ms, this may indicate sensor wear or firmware problems.

ParameterNormal value.Critical deviation
Meaning at rest5cmLess than 3cm or error
Closing value0 cmMore than 1 cm
Response time<200 ms>500 ms
Stability of testimonyNo horse racing.Constant change without cause

πŸ’‘

If the sensor only responds to certain objects (e.g., the hand, but not the table), the problem may be the lens contamination. Try gently wipe the sensor area with a cotton swab dipped in alcohol.

Method 3: Visual inspection and cleaning of the sensor

Often the problem is the simple pollution, the proximity sensor on the Redmi 7A is located at the top of the screen, next to the front camera, and it is easy to see from a small circular hole (sometimes it is closed with transparent film).

  • 🧴 Use isopropyl alcohol (at least 70%) and cotton swab.
  • πŸ” Light the sensor with a flashlight – dust or fat will be visible as dark spots.
  • 🧽 Gently wipe the sensor area without pressing hard (risk of damaging the lens).
  • πŸ•’ Let your phone dry for 5-10 minutes before the test.

If the sensor doesn't work after cleaning, check if it's getting in the way of a protective glass or a film, if it's not working, if it's not good enough, if it's not good enough to block the infrared signal, then try temporarily removing the protection and repeating the test.

What to do if the sensor is physically damaged?
If the sensor doesn't respond after cleaning and software tests, it's probably damaged, and if it does, it'll need to be replaced. On the Redmi 7A, the proximity sensor is soldered into the plume along with the front camera, so you'll have to change the entire module, and the average cost of repairs in service centers is 1,200-1,800 rubles (2026).

Method 4: Checking through ADB (for advanced users)

If standard methods fail, you can use Android Debug Bridge (ADB) for deep diagnostics, which requires connecting your phone to your computer and basic command line knowledge.

  1. Enable USB Debugging in the Developer Settings β†’ About Phone β†’ MIUI Version – Press 7 times, then go back to Additional Settings β†’ For Developers.
  2. Connect Redmi 7A to your PC and open the command line (or Terminal on Mac/Linux).
  3. Enter the command to check the sensor: adb shell dumpsys sensorservice
  4. Find the line with proximity in the output - there will be current readings.

If the output does not contain sensor information or if errors such as No such sensor are displayed, this may indicate:

  • πŸ”Œ No contact between the sensor and the motherboard.
  • πŸ–₯️ Damage to firmware at the core level.
  • πŸ”§ Full sensor failure.

⚠️ Attention: Use ADB The wrong commands can cause the system to fail. If you're not sure what you're doing, skip this method or consult a specialist.

Method 5: Hardware diagnostics (disassembly of the phone)

If all software methods are exhausted, you have to check the physical condition of the sensor. 7A. You'll need it:

  • πŸ”§ Plastic blade or mediator.
  • πŸ”¨ Cross screwdriver (size) PH00).
  • 🧲 Magnetic propeller substrate.
  • πŸ“Έ Camera (to capture the location of the parts).

Procedure:

  1. Turn off the phone and remove it. SIM-map.
  2. Heat the back cover with a hairdryer (temperature not higher than 60 Β° C) - this will soften the glue.
  3. Carefully tuck the lid with a plastic spatula, starting at the corners.
  4. Unscrew 8 screws holding the metal plate.
  5. Disconnect the battery plume (required!), then find the front camera plume with the sensor.
  6. Check the integrity of the plume and the contacts on the board. Oxidation or cliffs are a common cause of malfunction.

If you find damage, you'll need to replace the plume or soldering of the contacts. On the Redmi 7A, the proximity sensor is built into the front camera module, so you'll have to change the entire unit, its article is MDY07-001 (original) or MDY07-001-CN (Chinese version).

πŸ’‘

Disassembling the phone will void the warranty (if it is still valid).If you do not have experience in electronics repair, you should contact the Xiaomi service center or an authorized workshop.

What to do if the sensor does not work: an algorithm of actions

Based on the results of the diagnosis, make a plan of further actions:

Diagnosis.DecisionCost/time
Sensor's contaminated.Cleaning with alcoholFree, 10 minutes.
Software failureResetting or flashingFree, 30-60 minutes.
The plume is damaged.Replacement of the front camera plume800–1 500 β‚½, 1-2 hours
Faulty sensorReplacement of the camera module with the sensor1 200–2 000 β‚½, 2-3 hours
Oxidation of contactsCleaning the board with ultrasound500–1 000 β‚½, 1 day

If you choose to use the service, choose workshops with good reviews and original parts. Redmi 7A often installs non-original sensors that fail after 2-3 months. The original module can be ordered on AliExpress (search for MDY07-001) or in Xiaomi branded stores.

FAQ: Frequent questions about the proximity sensor on the Redmi 7A

Can I turn off the proximity sensor if it doesn’t work?
Yes, but it's not recommended. Without a sensor, the screen won't turn off during the call, which will lead to accidental taps. If you still need to turn off, use the Disable Proximity Sensor app (ADB rights are required) or turn off the function in the engineering menu (#36446337## on some firmware).
Why does the sensor work unstable, it reacts, then does not?
This is a typical sign of poor contact or contamination. Try: Rub the sensor with alcohol. Reboot the phone. Reset the settings to factory (Settings β†’ Additional β†’ Recovery and Reset). If the problem remains, probably, oxidized contacts on the board, you will need to disassemble.
Can I replace the sensor myself?
Technically, yes, but it requires expertise in soldering microelectronics. On the Redmi 7A, the sensor is soldered into the tail of the front camera, so it's easier to replace the entire module. This requires: a soldering station with a thin sting, a flux and solder, a magnifying glass or a microscope (contacts are very small). Without the skills, the risk of damaging the board or other components is very high. You better contact the service.
How to check the sensor without special applications?
You can use a standard call test: Call another phone. Cover the top of the screen with your hand when you call. The screen should go out. If it doesn't, the sensor doesn't work. You can also record video on the front camera and flash a flashlight into the sensor area. You should see infrared glare on the record (if the sensor is working).
Where to buy the original sensor for the Redmi 7A?
Original parts are being sold: πŸ›’ In the branded service centers Xiaomi (part guarantee). 🌍 On AliExpress (search by article) MDY07-001, Choose sellers with higher ratings 98%). 🏬 In the radio parts stores (for example, Chip and Deep). 1 500 β‚½, Chinese β€” 600–900 β‚½. Pay attention to reviews: cheap fakes are often uncalibrated.