Xiaomi smartphone owners often face a situation where system applications that cannot be removed by standard methods take up space and distract attention. One of these components is Google Lens, built into the camera and search bar. Despite the usefulness of the object recognition feature, many users prefer to free the system from excess code or simply remove the icon from the desktop.
The process of getting rid of this service is not as simple as removing a regular program from the Play Store, since the component is deeply integrated into the shell of MIUI or HyperOS. You will need to be careful when executing commands so as not to disrupt the work of other system services. In this article, we will look at proven ways to deactivate and remove the application that will help you customize the device to your needs.
Before you take any drastic action, it’s important to understand that removing the system package completely can affect the Google widget and some camera features. However, if your goal is to keep the system as clean as possible, these risks are justified. We’ve prepared a detailed action plan that will allow even a beginner to safely complete the procedure.
Google Lens integration into MIUI
Xiaomi’s image recognition feature doesn’t work as a standalone app, but as part of Google Play services, which is why you won’t find the “Delete” button in the standard app management menu, which the system considers critical to the search engine and assistant.
When you try to disable a service through settings, you may notice that the deactivation button is either missing or inactive, because the com.google.android.apps.googleassistant package has high privileges, and it requires rights beyond the normal user interface to modify it.
⚠️ Note: Before making any changes to system packages, we strongly advise you to create a complete backup of important data.
Understanding the MIUI shell architecture helps avoid errors. Deleting Google Lens effectively means disabling certain modules within Google services, requiring the use of special debugging tools. Without this step, the system will automatically restore deleted files when it updates.
Preparing a smartphone to remove system applications
To perform the procedure, you will need not only the smartphone itself, but also a computer running Windows, macOS or Linux. USB-A good quality cable that guarantees stable connection and data transfer, not just charging.
The first step is to activate the hidden developer menu on your Xiaomi device. Without this step, the computer will not have the necessary permissions to interact with the Android system at a deep level.
- 📱 Open “Settings” and go to the “About Phone” section».
- 🔨 Find the item "Version" MIUI» or "Version" OS» And press it quickly. 7-10 successively.
- 🔓 Enter the screen unlock password if a request appears before a successful activation message appears.
- ⚙️ Return to the settings menu, select “Advanced” and find “Developers for Developers».
Within the developer menu, two key options must be activated: USB Debugging and USB Debugging (security settings), the second item is often hidden and only accessible once the first one is enabled, and confirmation via SMS or Mi Account may also be required.
☑️ Checklist of preparations
Installation and configuration of ADB on the computer
The main tool for removing system components is Android Debug Bridge (ADB), a console utility that allows you to send commands to a device. You don't have to install heavy development environments, just a minimal set of tools from Google.
Download the Platform Tools archive from the official Android Developers website. After downloading, unpack the archive into the root folder of the disk, for example, in C:\platform-tools, so that the path does not contain Cyrillic and spaces. This will make it easier to enter commands in the future.
To start the command line interface in the tool folder, press the Shift key and right-click on the empty space. In the context menu, select "Open PowerShell window here" or "Open terminal." Enter the command to check the connection:
adb devicesWhen you first connect to your smartphone, you'll see a request for debugging permission, check the box "Always allow from this computer" and click "OK." If the terminal displays the serial number of a device with device status, then the connection is established correctly.
💡
If your computer can’t see your phone, try replacing it. USB-cable or install Xiaomi drivers USB Driver manually through Device Manager.
Finding the exact name of the packet to remove
Before you delete anything, you need to make sure that we target the package that is responsible for Google Lens. In the Android ecosystem, package names may vary depending on the firmware version and region.
Use the command to output a list of all installed packets containing the word "lens" or "assistant" to help identify the exact name that will need to be passed to the removal command. Enter commands carefully, checking each letter.
adb shell pm list packages | findstr lensMost often, the package you want to find is called com.google.android.apps.googleassistant or has the name lens. However, in some versions of HyperOS, the functionality may be tied to other system processes. If the above command did not give a result, try filtering by the word "google".
| Packet name | Description of function | Security of removal | Impact on the system |
|---|---|---|---|
| com.google.android.apps.googleassistant | The basic module of the assistant and Lens | Safe. | Disables voice control |
| com.google.ar.lens | Augmented reality module | Safe. | Cleans up. AR-camera-effects |
| com.miui.analytics | Xiaomi System Analytics | Dangerous. | It may disrupt the system. |
| com.android.camera | The main camera app | Critically. | The camera will stop working. |
Write down or copy the exact name of the package. A single-letter error will cause the command to fail, or at worst, you will delete the wrong component. Double name check is key to a successful operation.
Removal process through ADB teams
Once the packet name is known, you can proceed to direct deletion. pm uninstall removes the application for the current user (user 0), without physically erasing it from the system partition, which allows you to restore functionality if necessary.
Type the following design into the terminal by substituting the name of your package. For the standard case, the command will look like this:
adb shell pm uninstall -k --user 0 com.google.android.apps.googleassistantIf the operation is successful, you will receive a message Success. The icon will disappear from the desktop, and the functions associated with Google Lens will stop running. When you re-click on the search widget, the system may suggest reinstalling the component or simply ignore the action.
⚠️ Warning: Do not attempt to delete packets that have the words “framework”, “provider” or “system” in their name unless you are 100% sure of their purpose).
To remove additional components associated with augmented reality, you can execute a command for the package com.google.ar.lens. This completely clears the camera of scanning objects and text. After all operations are completed, it is recommended to restart the device.
What to do if there is a Failure error [DELETE_FAILED_INTERNAL_ERROR]?
Alternative methods and system recovery
If using the command line seems too complicated for you, there are graphical shells like Xiaomi ADB/Fastboot Tools or Universal Android Debloater.These programs automatically find the connected device and offer a list of system applications to remove with clear descriptions.
However, using third-party software always carries risks. Scripts can be updated incorrectly or contain errors for your particular version of MIUI. Manual method through ADB gives you complete control over the process and understanding what exactly is happening to your phone.
If after deleting you notice strange things in the work of the smartphone, you can always return everything as it was.
adb shell cmd package install-existing com.google.android.apps.googleassistant💡
Using the --user 0 flag allows you to remove applications without Root rights, leaving the possibility of easy recovery through standard ADB commands.
It's also worth noting that after a major firmware update or factory reset, the applications that are removed can come back, and you'll have to do it again, and that's the price for not having the Root rights to remove the package forever.