Autofocus problems on Xiaomi smartphones are one of the most common complaints users have, with the camera constantly βbreathingβ to catch sharpness where it is not needed, or stubbornly focusing on the foreground, ignoring the main object. This is especially annoying when shooting video, macro photography or in low light conditions, when algorithms are used to create a new model. AI-The cameras start to work unpredictably.
In this article, weβll look at all the possible ways to get the focus off of Xiaomiβs camera, from standard settings to hidden engineering menu features and even manual control through ADB. The methods will work for most models, from the budget Redmi Note 12 to the flagship Xiaomi 14 Ultra. Importantly, some solutions require developer or unlocked bootloader rights β we will separately specify where this is needed.
Why Xiaomi Camera Is Badly Focusing: The Main Reasons
Before you start setting up, you need to understand why autofocus is not behaving properly.
- π Software bugs - errors in firmware MIUI Camera drivers (especially after updates).
- π± Hardware restrictions β cheap modules in budget models (Redmi) 10A, POCO M5) They are physically unable to focus quickly.
- π€ AI-algorithms β the system persistently tries to βimproveβ the frame, even when it interferes (for example, blurs the background where it is not necessary).
- π Overheating β at high temperature of the processor, the camera begins to βglutchβ, including an arbitrary change of focus.
If the problem comes on suddenly, try to reboot your smartphone first or clear the Camera app cache (Settings β Apps β Camera β Storage β Clear the cache) in 30% of cases, this is enough to return the focus to normal operation.
Method 1: Turning off autofocus in standard camera settings
The easiest method is to use the built-in Camera app options. Unfortunately, not all Xiaomi models support manual focusing out of the box, but itβs worth checking out:
- Open the Camera app.
- Switch to Photo or Professional (if any) mode.
- Touch the badge. βοΈ Settings (or swipe your finger across the screen from left to right).
- Find the option Focus or AF (Autofocus).
- Select MF (Manual Focus) or Disable AF if this option is available.
On some devices (e.g. Xiaomi) 13 Pro) Manual focusing only appears in Professional mode, where you can block the focus at the current distance by touching the screen and holding your finger. 1β2 In a second, the inscription will appear. AE/AF Lock.
βοΈ Checking the availability of manual focus
β οΈ Note: On budget models (Redmi) 9A, POCO M3) You don't have manual focusing, so you can go to the following ways.
Method 2: Use of the engineering menu (hidden settings)
If standard settings donβt work, you can try turning off autofocus via an engineering menu, which works on most Xiaomi devices, but requires caution β making incorrect changes can disrupt the camera.
Instructions:
- Open the Phone app and enter the combination: ##4636##.
- In the menu that appears, select Testing (or Engineering Menu).
- Go to Camera or Hardware Testing.
- Find the options related to focus: AF Calibration, Focus Mode, or Auto Focus.
- Try turning off autofocus by selecting Manual or Fixed.
On some firmware, the path may be different. For example, on Xiaomi 12T, you need to select the Single Camera Test, then Focus, and manually set the Infinity value to fix the focus in the far-field.
| Xiaomi model | The Way in the Engineering Menu | Recommended value |
|---|---|---|
| Redmi Note 10/11 | Testing β Camera β Focus Mode | Manual or Fixed |
| POCO X3/X4 | Hardware Testing β Single Camera β AF Calibration | Disable |
| Xiaomi 13/14 | Testing β Camera β Focus Lock | Infinity |
β οΈ Warning: Changes to the engineering menu do not persist after restarting.If the problem has returned, reset or use ADB-commands (see Method 4).
Method 3: Third-Party Applications for Manual Focusing
If Xiaomi's built-in tools don't allow you to turn off autofocus, third-party apps will come to the rescue.
- πΈ Open Camera is free, open source software that supports manual focus on most devices, including Xiaomi.
- π₯ Footage is a professional video shooter with focus lock and exposure capabilities, suitable for Xiaomi with support Camera2 API.
- π§ Manual Camera β a plugin for GCam (Google Camera), allowing you to fine-tune focus, shutter speed and ISO.
How to set up Open Camera:
- Install the application and open it.
- Touch the badge. βοΈ Settings (three dots in the upper right corner).
- Go to More Camera Controls β Focus Mode.
- Choose Manual or Infinity.
- To fix the focus, tap the screen and hold your finger until the AF Lock icon appears.
π‘
If manual focusing doesnβt work in Open Camera, check your modelβs Camera2 API support through the Camera2 API Probe app (available on Google Play).
On some MIUI firmware, third-party cameras may conflict with system services. If the main camera stopped working after installing the Open Camera, clear the cache of both applications or restart the smartphone.
Method 4: Disable AF through ADB (for advanced users)
If none of the previous methods worked, the ADB (Android Debug Bridge) is the one that requires developer rights and PC connectivity, but gives you maximum control over the camera.
Instructions:
- Activate developer mode on Xiaomi: go to Settings β About Phone β MIUI version and tap it 7 times.
- Return to Settings β Additional β For developers and enable USB debugging.
- Connect your smartphone to your PC, install ADB Tools, and open the command line in the folder with adb.exe.
- Enter the command to check the connection: Adb devices should appear the name of your device.
- Disable autofocus command: adb shell settings put global camera_af_mode 0 (where 0 β shutdown, 1 β autofocus).
To permanently disable autofocus on some models (Xiaomi 12S Ultra, Redmi K50) may require editing a build.prop file or using Magisk modules.
What if the ADB canβt see the device?
Method 5: Hardware inspection and repair
If software methods don't help, the problem may be a physical malfunction of the camera module.
- π΄ Focus floats even after resetting settings.
- π The camera makes a squeak or squeak when trying to focus.
- π«οΈ The image is constantly blurred, regardless of the distance to the object.
In such cases, it will help:
- Cleaning the lens β sometimes dust or dirt interferes with the normal operation of the autofocus. Use a soft brush or a can of compressed air.
- Checking the flexible plume -- if the camera was falling, the plume could have moved or damaged. It requires disassembling the device.
- Replacing the camera module β Xiaomi costs 1,500β5,000 β½ model-wise.
You can use the camera test via the engineering menu (#4636##) or the Phone Doctor Plus app (available on Google Play) to diagnose the camera, and if the camera shows an AF Failed error in the test, it confirms a hardware malfunction.
π‘
Before repairing, check if your device is not covered by warranty. In Xiaomi service centers, the camera replacement is often done for free if the manufacturing defect is.
Additional Tips for Improved Focusing
If you donβt want to completely disable autofocus, but want to make it work more stable, try these recommendations:
- π Use the focus grid β turn it on in the camera settings (Settings) β This will help you to choose the object for focus.
- π‘οΈ Avoid overheating β donβt shoot videos 4K Overheating causes the focus to float.
- π Update the firmware - in new versions MIUI Frequently fix autofocus bugs. Check the updates in Settings β The phone. β Updating the system.
- π΅ Turn it off. AI-mode AI Camera sometimes interferes with normal focusing.
For macro or portraits, you'd better use Professional mode and manually fix your focus, and you'd also want to experiment with manual exposure, because sometimes autofocus gets lost because of the wrong brightness.