Modern Xiaomi smartphones come with a pre-installed Google Mobile Services (GMS) suite that is deeply integrated into the Android operating system. For many users, having these apps is standard, but there are scenarios where they need to be completely removed, which may be due to privacy issues, a desire to free up system memory or the need to switch to alternative ecosystems.
The process of getting rid of Google system software is not a trivial task and requires an understanding of the Android architecture. Standard methods through the settings menu to remove these components is impossible, because they have system-level rights. Interference in the operation of system packages is always fraught with risks, so before starting any manipulations you need to weigh the pros and cons.
In this article, we will discuss in detail the technical aspects of uninstallation, the necessary tools and algorithms for actions, you will learn how to safely conduct the procedure, what consequences can occur and how to minimize the risks of device failure.
Risk analysis and device preparation
Before you start deleting, itβs important to realize that Google Play Services isnβt just an app store, itβs the foundation for many of the systemβs features, and disabling or removing it will cause push notifications, geolocation, contact synchronization, and third-party apps that depend on Googleβs API to crash. Without pre-production, the phone can turn into a device with limited functionality.
A critical step is to create a full backup of the data. Since the process affects the system partition, the error can lead to a cyclic restart (bootloop). Deleting system packages through ADB does not require root rights, but retains the ability to restore only if you have the original firmware or the ability to reset. Make sure that all important photos, documents and passwords are saved in the cloud or on an external medium that does not depend on your Google account.
You also need to activate USB debugging mode. Without this option, your computer will not be able to access package management on your smartphone. Go to Settings β About phone and quickly click on the MIUI or HyperOS build number seven times until the developer mode is activated. Then, in the Additional β For developers menu, activate the USB debugging switch.
β οΈ Warning: Removing critical system components can cause the device to run in an unstable way. If you are unsure of your actions, limit yourself to disabling applications instead of removing them completely.
List of the main risks that you may face:
- π Loss of banking applications and services that require Google certification.
- π A sharp increase in battery consumption due to errors in background synchronization processes.
- π« Inability to install applications from alternative stores without additional configuration.
- π Failures in the work of alarm clocks, reminders and notifications from messengers.
Required tools and drivers
To successfully perform the procedure, you will need a personal computer running Windows, macOS or Linux. Mobile cleaners do not have sufficient rights to remove system packages, so using a PC is a prerequisite. The main tool will be the Android Debug Bridge (ADB), which allows you to transfer commands directly to the shell of the operating system.
The first step is to install drivers for your device. For Xiaomi smartphones, standard ADB drivers are often enough, but in some cases, you may need to install specific drivers. Upon connecting the cable, make sure that there are no unknown devices with exclamation marks in the Device Manager.
Download the current version of Platform Tools from the official Android developer site. This is a set of utilities that includes adb and fastboot. Unpack the archive into the root folder of the disk, for example, in C:\platform-tools, to avoid problems with long paths when typing commands. Open the command line or terminal in this folder.
βοΈ Environment preparation
Connection check is the final step in preparation. Connect your smartphone to your PC and unlock the screen. The phone display will request debugging permission from that computer β make sure to tick "Always Allow" and press "OK." In the command line, type:
adb devicesIf the list shows the serial number of your device with device status, then the connection is established correctly. Unauthorized status means that you need to reconfirm access on the smartphone screen.
Search for Google Packet IDs
Every application on Android has a unique identifier called a package name. To remove a particular service, you need to know its exact name. Google packages usually begin with the prefix com.google., but Xiaomi firmware can also contain specific designations.
To get a complete list of installed packages, use the filter command, which will only output lines containing the word "google." Type in the terminal:
adb shell pm list packages | findstr googleFor macOS and Linux users, the command will differ in search syntax:
adb shell pm list packages | grep googleThe list can be extensive. It's important to distinguish between critical system components and custom applications. For example, com.google.android.gms are the main services, and com.google.android.youtube is just a YouTube app. Deleting the former paralyzes many functions, removing the latter will only hide the video service.
Below is a table with the main Google packages, their purpose and the degree of risk of removal:
| Packet ID | Component | Risk of removal | Recommendation |
|---|---|---|---|
| com.google.android.gms | Google Play Services | critical | Do not remove without replacement |
| com.google.android.gsf | Google Services Framework | High-pitched | Required for GMS |
| com.android.vending | Google Play Store | Medium. | Can be removed |
| com.google.android.youtube | YouTube | Low. | Safe. |
Hidden system packages
Removal process through the command line
There are two main ways to remove applications through ADB: for the current user and for all users. The first method is more secure, since it does not affect the system partition directly, but only hides the application for your profile. The second method removes the package completely, which can be irreversible without flashing it.
Recommended method β deletion for the current user (--user 0). This allows you to keep the system recoverable by simply resetting the settings to the factory:
adb shell pm uninstall -k --user 0Here. -k means the storage of data and cache (in case of reinstal) and --user 0 If you decide to remove the app completely for all users (root or specific rights required), the command will look different, but we strongly advise against using this method on working devices.
Consider the example of deleting the Google Play Store, first finding its package (com.android.vending), then entering:
adb shell pm uninstall -k --user 0 com.android.vendingSuccessful execution of the command is confirmed by the Success message. If you see an error message, it is possible that the packet has already been deleted or is too critical to be deleted by this method.
- ποΈ Remove applications one at a time, checking system stability after each step.
- πΎ Save the list of deleted packets in a text file for possible recovery.
- π Do not delete com.google.android.gms if you plan to use alternative services (MicroG) or you need stability.
Alternative methods and graphical interfaces
Working with the command line can seem difficult for untrained users. Fortunately, there are graphical shells that automate the process of entering ADB commands. One of the most popular and reliable tools is the Universal Android Debloater (UAD) utility.
This program is available for Windows, macOS and Linux. It automatically detects the connected device, displays a list of all packages installed with clear names and security recommendations. UAD marks Google packages as "Safe to remove" or "Unsafe", which makes navigation much easier.
Another option is to use application managers installed directly on the smartphone, but their work often requires root rights. Obtaining superuser rights (via Magisk) opens access to the system partition, but also voids the warranty and may disrupt banking applications (SafetyNet/Play Integrity API).
If you use a GUI, the principle remains the same: you select a packet from a list and press the delete button. ADB-This reduces the risk of typos in the name of the package, but does not eliminate the need to understand the consequences.
β οΈ Note: Graphics utilities may have bugs, always check which package you are going to remove by checking the official lists of secure uninstallation.
Recovery of Remote Components
If you have experienced critical errors after deleting Google apps or have decided to return to the original state, there is a recovery mechanism (--user 0, The original apk file remained in the system section /system/ or /product/).
To restore a remote package, use the install-existing command.
adb shell cmd package install-existingFor example, to return YouTube, type:
adb shell cmd package install-existing com.google.android.youtubeOnce you have completed the command, the app will reappear on the menu as if it had never been deleted, which is the main advantage of pm uninstall over completely erasing files. If you have deleted the app completely (root or fastboot), recovery is possible only by flashing the device or installing the apk file manually, if the system allows it to run without dependencies.
π‘
Save the list of deleted packets in the file `removed_packages.txt`. In case of problems, you can quickly restore them by running a script with install-existing commands for each item.
Frequently Asked Questions (FAQ)
Can I delete Google Play Services without losing my phone?
Will the reset factory setup rebuilt Google Play?
Does the removal of Google services affect the Xiaomi warranty?
How to remove Google updates if you canβt remove the app itself?
π‘
Deleting Google apps via ADB is a reversible operation if the --user 0 flag is used. This is the safest way to customize a system without the risk of data loss.