If you own a Xiaomi smartphone based on MIUI 12, 13 or 14, you probably noticed in the list of installed programs a mysterious application called Lens, while removing it in standard ways, and there is very little information about it on the Internet. What is it software, why it is preinstalled on your device and is it worth fearing? In this guide, we will examine in detail all aspects of the Lens application, its relationship with the smartphone camera, and give clear instructions for managing it - from shutdown to complete removal for experienced users.
Let's just say, despite the frightening name associated with the optical system (hence the association with espionage), the lens is not malware. It's a system component. MIUI, However, its behavior may seem suspicious: the application runs in the background, consumes resources and sometimes even suddenly activates the camera for no apparent reason (for example, during scanning). QR-Then you'll learn how it works and what to do about it.
What is the โlensโ application on Xiaomi and why it is necessary
A lens (com.xiaomi.lens) is a utility application built into MIUI firmware since version 12, and its primary purpose is to support augmented reality (AR) and computer vision in other applications, such as:
- ๐ธ Scanning. QR-codes through the standard Camera or Browser application.
- ๐ฎ AR-Games and filters (e.g. TikTok or Snapchat).
Essentially, the Lens acts as a โmediatorโ between the smartphone camera and third-party applications, giving them access to its capabilities without having to develop their own image processing modules, which saves the device resources and simplifies the work for developers.
However, this approach has a downside: the application often hangs in the background, consuming 10-30 MB of RAM and periodically waking the processor. On weak devices (for example, Redmi 9A or Poco M3), this can lead to slowdowns or accelerated battery discharge.
How the โlensโ is connected to the camera and other applications
The main feature of the lens is close integration with the API of the Xiaomi camera. When you run any application that needs access to the camera (for example, WhatsApp for scanning QR or Google Lens for text recognition), the system automatically loads the lens as an intermediate module.
- Performance optimization: Instead of each application loading its own libraries to process images, MIUI uses a single center โ a lens.
- Security Control: All requests to the camera go through this module, which should theoretically prevent unauthorized access.
In practice, this means that even if you don't start the camera directly, the lens can activate in the background.
- ๐ When scanning a barcode in AliExpress or Wildberries.
- ๐ When translating text from a photo via Google Translate.
- ๐ต When identifying music through Shazam (if a camera is used to record album cover).
It's important to understand that the lens doesn't record videos or photos on its own -- it only gives other programs access to the camera's hardware, but its activity can be perceived as suspicious, especially if you see a notification about the camera's performance without you directly asking.
Why does the Lens sometimes turn on the camera without my knowledge?
Problems associated with the โlensโ: brakes, battery discharge, errors
Despite its usefulness, the Lens is often a source of discontent among users, with the following being the most common complaints:
| Problem. | Reason. | Decision |
|---|---|---|
| Continuous work in the background | Auto-Running for Third-Party Applications | Disable autostart in settings |
| Accelerated battery discharge | Frequent CPU awakenings | Limit background activity |
| The "Camera is busy" error | Conflict with another application | Reboot your phone or clear the cache |
| Lags for photo/video shooting | Lack of RAM due to background processes | Close unnecessary applications before shooting |
The most common problem is that the lens is hanging in the process and loading the system. MIUI By default, it allows many apps to use the camera in the background. For example, Facebook or Instagram can periodically activate the Lens for preloading. AR-filter.
โ ๏ธ Note: if you see that the lens consumes more than 50 MB of RAM or 10% CPU at rest (without active camera use), this may indicate a malfunction MIUI. In this case, it will help to reset the camera settings or reinstall the firmware.
Another common mistake is, "The camera is busy with another app"** when you try to take a photo, which happens when the lens freezes after working with another software.
Close all applications through the latest task menu|Reboot your smartphone|Clear the cache of the Camera application in the settings|Disable auto-start for "lens"-->
How to Disable or Remove โLensโ on Xiaomi
If you decide you don't need a lens, there are a few ways to limit it from being softly disabled to being completely removed (the latter requires root rights).
Method 1: Disable Autostart (without root)
This is the safest method, and it doesn't require any deep changes to the system.
- Go to Settings โ Applications โ Application Management.
- Find the list โLensโ** (or Lens).
After that, the application will not start automatically, but will still be able to work if it is explicitly called by another program (for example, when scanning). QR-code).
Method 2: Freeze with ADB (no root)
If you don't shut down auto-start enough, you can freeze the app completely with ADB (Android Debug Bridge), which won't delete it, but it will make it inactive.
- Turn on Developer Mode (7 times click on the MIUI version in your phone settings).
- Activate Debugging by USB in the Developer Menu.
- Connect your phone to your PC and execute the command: adb shell pm disable-user --user 0 com.xiaomi.lens
To get it back, use the command:
adb shell pm enable com.xiaomi.lensโ ๏ธ Note: After freezing the lens, some functions, such as scanning, will stop working. QR-codes through a standard camera or AR-If you're critical, use the first method.
Method 3: Complete removal (requires root)
If you have root rights, you can delete the lens forever.
- Install any file manager with root support (such as Root Explorer).
- Go to /system/priv-app/Lens or /system/app/Lens.
- Delete the entire folder or only the Lens.apk and Lens.odex files.
- Reboot the phone.
Important: Before you delete, back up the system! Without the lens, you can stop working:
- ๐ท Standard Camera app (possible errors when shooting).
- ๐ Smart Search Features in Xiaomi Browser.
- ๐ฎ AR-games and filters in social networks.
๐ก
Removing the Lense without root is impossible โ the maximum available limitation of functions is achieved through disabling autostart or freezing via ADB.
Alternatives to the โlensโ: can you do without it
If you have removed or disabled the lens, but you still need some camera features, you can use alternative solutions:
| Function | Alternative annex | Link (Play Market) |
|---|---|---|
| Scanning. QR-code | QR & Barcode Scanner (from Gamma Play) | Download |
| Text recognition | Google Lens or Microsoft Lens | Download |
| AR-filter | Snapchat or B612 | Download |
Most alternative applications work independently of the Lens, but may require additional permissions or take up more space on the device. For example, the Google Lens weighs about 50 MB, whereas the built-in Lens takes only 10-15 MB.
If you want to save resources, it is better to leave the lens on, but limit its background activity (see section on disconnection).
๐ก
If after the shutdown, the "lens" stopped working AR-Instagram filters, try to clear the app cache or reinstall it. Often this helps restore functionality.
Security: Can the Lens spy on the user?
One of the most common fears users have is that the Lens is secretly recording videos or photos, and let's see how real this is.
By default, the lens doesn't have access to save media files, it only transfers data between the camera and other applications.
- ๐ Permissions: In the Lens settings, you wonโt find individual permissions per camera or microphone โ theyโre inherited from the application that calls it (e.g., Camera or Browser).
- ๐ก Data transmission: In theory, if a malicious application gets access to the Lens, it can use the camera without you knowing it, but it will need to bypass the security. MIUI.
- ๐ก๏ธ Protection MIUI: In the latest versions of the firmware added control over the use of the camera โ the system notifies the user if the application tries to access it in the background.
To eliminate risks, follow these recommendations:
Check the permissions for all installed applications|Turn off auto-start for suspicious programs|Use an antivirus (such as Dr.Web or Kaspersky)|Update regularly MIUI last-minute-->
If you're still worried about privacy, you can use a physical lock on the camera, like a sticker or a cover with a damper, to prevent any attempts to shoot without your knowledge.