Xiaomiโ€™s โ€œlensโ€ app: what it is, why it is needed and how to manage it

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.

๐Ÿ“Š You have noticed the lens application in the list of running processes?
Yeah, it always works.
Yes, but only when using a camera.
No, I didn't pay attention.
I don't have it.

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.

  1. Performance optimization: Instead of each application loading its own libraries to process images, MIUI uses a single center โ€“ a lens.
  2. 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?
This is because of the background processes of other applications, MIUI can be scanned automatically QR-codes on the lock screen (if the Smart Assistant function is enabled) โ†’ Quick action โ†’ Scanner. QR). Also, some messengers (for example, WeChat) check the presence of the background QR-codes in the clipboard or on the screen. To turn this off, go to Settings. โ†’ Annexes โ†’ Permits โ†’ Auto-Start and Ban background work for unnecessary programs.

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 backgroundAuto-Running for Third-Party ApplicationsDisable autostart in settings
Accelerated battery dischargeFrequent CPU awakeningsLimit background activity
The "Camera is busy" errorConflict with another applicationReboot your phone or clear the cache
Lags for photo/video shootingLack of RAM due to background processesClose 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.

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. 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.

  1. Turn on Developer Mode (7 times click on the MIUI version in your phone settings).
  2. Activate Debugging by USB in the Developer Menu.
  3. 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.

  1. Install any file manager with root support (such as Root Explorer).
  2. Go to /system/priv-app/Lens or /system/app/Lens.
  3. Delete the entire folder or only the Lens.apk and Lens.odex files.
  4. 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:

FunctionAlternative annexLink (Play Market)
Scanning. QR-codeQR & Barcode Scanner (from Gamma Play)Download
Text recognitionGoogle Lens or Microsoft LensDownload
AR-filterSnapchat or B612Download

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.

FAQ: Frequent questions about the lens app on Xiaomi

Can I remove the lens without root?
No, you canโ€™t completely remove the system application without root rights, and the maximum that is available is to disable auto-start or freeze it through ADB (see instructions above).
Why does the lens consume so much battery?
This is because the application is often awakened in the background by requests from other programs (e.g., for scanning). QR or AR-To reduce consumption, disable auto-start for unnecessary applications in the settings MIUI.
Will the camera work after the lens is removed?
The basic features of the camera (photo, video, portrait mode) will remain functional, but some additional features, such as scene recognition or scene recognition, may be lost. AR-effects.
How do I get my lens back if I turned it off through ADB?
Run the command in ADB: adb shell pm enable com.xiaomi.lens or reset your phone to factory settings (this will bring back all system applications).
Are there any similarities to the โ€œlensโ€ on other phones?
Yes, most manufacturers have these modules: Samsung: AR Core and Bixby Vision; Huawei: HiAI Engine; Google: ARCore and Google Lens. They all have similar functions, such as image processing for AR and computer vision.