Google Play Services Cleanup on Xiaomi: A Complete Guide to Optimization

Google Play services on Xiaomi smartphones are the basis of most applications, but over time they start to take up a huge amount of memory, slow down the system and even cause errors. If your Redmi, POCO or Mi started to slow down, and in the memory settings you see that Google Play Services takes several gigabytes, itโ€™s time to take action.

In this article, we will look at all the cleaning methods, from basic cache removal to deep cleaning of system data, including hidden files and settings. We will focus on the nuances of MIUI firmware, where standard Android methods often do not work, you will learn how to safely free up space without disrupting services, and what to do if errors occur after cleaning.

Important: The procedure is different for devices with Global ROM China ROM, and also for models with Google Mobile Services (GMS) And without them (for example, Xiaomi for the Russian market.

Why does Google Play Services take up so much space?

On Xiaomi smartphones, Google Play services can grow to 5-10 GB or more - this is not a mistake, but a feature of the system.

  • ๐Ÿ“ฆ Application cache: temporary files to speed up work (maps, images, authorization data) accumulate for years if not cleaned.
  • ๐Ÿ”„ Updates in the background: MIUI Often blocks automatic cache cleaning, and Google services are updated unnoticed by the user.
  • ๐Ÿ—ƒ๏ธ User data: search history, geolocation, synchronization settings โ€“ all stored locally.
  • ๐Ÿค– Synchronization errors: if the smartphone suddenly lost communication with Google servers, may remain "broken" files.

For example, on Xiaomi 12T Pro with MIUI 14, users often find that com.google.android.gms (the main service package) takes up to 7 GB โ€“ and this despite the fact that the application itself weighs only ~200 MB.

โš ๏ธ Note: If you are using Xiaomi without GMS (For example, models for China with firmware China ROM), There is no Google service on the device at all. Cleaning up is pointless in this case - you need to install Google Installer first (but this is a topic for a separate article).

Preparation for cleaning: what to do before you start

Before you start cleaning, follow the mandatory steps to avoid data loss or failures:

  1. Sync your Google account: go to Settings โ†’ Google Accounts โ†’ Sync and make sure all data (contacts, calendar, photos) is uploaded to the cloud.
  2. Backup: Use the built-in MIUI (Settings โ†’ About Phone โ†’ Backup) or third-party utilities like Swift Backup.
  3. Check the MIUI version: some methods don't work on older firmware (e.g. MIUI 12 and below). Update the system in Settings โ†’ About Phone โ†’ System Update.

It is also worth considering that after cleaning up Google Play Services, some features may temporarily work incorrectly:

  • ๐Ÿ“ Google Maps and Yandex.Maps will determine the location longer.
  • ๐ŸŽฎ Google Play Games may require re-authorization.
  • ๐Ÿ”” Notifications from Gmail and other services will be delayed.
๐Ÿ“Š How often do you clean your Xiaomi cache?
Once a week.
Once a month
Only when it's slowing down.
Never cleaned.

Method 1: Clearing the cache through Android settings

The easiest and safest method is to remove the cache through the standard menu, which is suitable for most Xiaomi models (including the Redmi Note 11, POCO X5, Mi 11 and later) and does not require root rights.

Instructions:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. In the search box, type Google Play Services (or Google Play Services in Russian).
  3. Slip on the app, then select Warehouse.
  4. Click Clear Cache (not to be confused with Clear Data!).
  5. Confirm the action.

Similarly, clean the cache for:

  • ๐Ÿ“ฑ Google Play Market (com.android.vending)
  • ๐ŸŽฎ Google Play Games (com.google.android.play.games)
  • ๐Ÿ—บ๏ธ Google Maps (com.google.android.apps.maps)

Synchronized contacts and calendar|Backup of important data is made|All Google apps are closed|Connected to Wi-Fi (for re-synchronization)-->

Once cleaned, restart your smartphone. The system will automatically restore the files you need, but now they will be "clean." This method frees up between 500 MB and 2 GB of space, depending on the degree of contamination.

โš ๏ธ Note: If the Google Play Market stopped opening after cleaning the cache, check the date and time on the device. Incorrect settings may block access to Google services. โ†’ Additionally. โ†’ Date and time.

Method 2: Deep data cleanup (reset to factory service settings)

If simple cache cleaning didnโ€™t work, and Google Play Services still takes a few gigabytes, youโ€™ll have to resort to a data reset, a more radical method that removes all settings, histories, and temporary files, returning the app to a โ€œcleanโ€ state.

How to do this:

  1. Go to Settings โ†’ Applications โ†’ Application Management โ†’ Google Play Services.
  2. Select Warehouse โ†’ Clear Data (or Delete Data on Some Firmware).
  3. Confirm the action. The system will warn you that it could affect other applications, you can agree.
  4. Repeat the steps for Google Play Market and Google Services Framework (com.google.android.gsf).

After discharge:

  • ๐Ÿ”„ Reboot your smartphone.
  • ๐Ÿ“ฅ Wait 5-10 minutes for services to sync with your Google account.
  • ๐Ÿ”‘ You may need to re-enter passwords in some apps (such as Gmail or YouTube).
AnnexClearing the cacheData resettingWhat's removed
Google Play Servicesโœ… Safe.โš ๏ธ Radically.Cache cards, geolocation history, temporary authorization files
Google Play Marketโœ… Safe.โŒ Not recommendedCash of application covers, search history
Google Services Frameworkโœ… Safe.โš ๏ธ Only in case of synchronization errorsAccount synchronization settings, access tokens

On Xiaomi with MIUI 13 and later, a Google Play Services data reset can result in the error "Google Play Services is constantly stopping."

  1. Go to Settings โ†’ Applications โ†’ All applications.
  2. Find Google Play Services and select Disable (Do Not Delete!).
  3. Reboot the phone.
  4. Turn the services back on.

Method 3: Remove unnecessary Google Play Services updates

Google services are automatically updated through the Google Play Market, but sometimes these updates contain errors or take up too much space. On Xiaomi, you can manually roll back the service to the factory version and then update it again - this often solves brake problems.

Instructions:

  1. Open Settings โ†’ Applications โ†’ Google Play Services.
  2. Stick to three points (โ‹ฎ) in the upper right corner and select Remove Updates.
  3. Confirm the action. The service version will reset to the one that was when you bought the phone.
  4. Start Google Play Market and wait for the automatic update.

If the Remove Updates button is inactive (grey), it means:

  • ๐Ÿ”’ Your Xiaomi is worth China ROM without GMS โ€” remove.
  • ๐Ÿ›ก๏ธ The firmware is modified (for example, customized) MIUI third-party).
  • ๐Ÿ”ง Google Services are system-based and non-returnable (relevant to the POCO F3 and other models with pre-installed GMS).

๐Ÿ’ก

If notifications stop working after rolling back Google Play Services, check your battery settings: Go to Settings โ†’ Battery โ†’ Power Saving Mode and turn off optimization for Google services.

Method 4: Cleaning through ADB (for power users)

If standard methods didnโ€™t work, and Google Play Services still takes up a huge amount of memory, you can use ADB (Android Debug Bridge), which requires connecting your smartphone to your computer, but allows you to delete hidden files that are not visible in the MIUI interface.

What you need:

  • ๐Ÿ’ป Computer with installed ADB Tools.
  • ๐Ÿ”Œ USB-cable (preferably original).
  • ๐Ÿ”ง Included debugging by USB on Xiaomi (Settings) โ†’ The phone. โ†’ Version. MIUI โ€” Tap 7 times, then go back to Settings โ†’ Additionally. โ†’ For developers โ†’ Debugging by USB).

Cleanup commands:

adb shell pm clear com.google.android.gms # Google Play Services reset


adb shell pm clear com.android.vending # Google Play Market reset




adb shell pm clear com.google.android.gsf # Reset Google Services Framework




adb shell pm clear com.google.android.gms.persistent # Delete persistent data (caution!)

After the commands are executed:

  1. Disconnect the smartphone from the PC.
  2. Reboot it.
  3. Wait 10-15 minutes for the services to sync.

โš ๏ธ Note: pm clear com.google.android.gms.persistent deletes critical sync data. Use it only if other methods have failed and you are prepared for possible problems with your Google account (it may be necessary to re-enter passwords on all devices).

What if the ADB canโ€™t see the device?
1. Make sure that Xiaomi drivers are installed on your PC (download from the official website). 2. Try another one. USB-cable (not all support data transfer). 3. In the developer settings on the phone, enable Debugging by USB (Safe mode) and Unlock OEM (4 Restart both the phone and the computer.

Method 5: Use of third-party utilities (with caution!)

There are apps in the Google Play Market that promise to magically clean up Google's services, but most of them are either useless or dangerous. We tested a few tools and highlighted only the ones we've tested:

AnnexWhat cleansesRisks.Recommendation
Files by GoogleCash, temporary files, duplicatesMinimumโœ… We can use it.
SD MaidSystem garbage, app residuesMedium (requires root for deep cleaning)โš ๏ธ Only for the experienced.
CCleanerCash, history, cookiesHigh (can delete important data)โŒ Not recommended

If you choose to use SD Maid or analogues:

  1. Download the application only from the official store.
  2. Donโ€™t give him root rights if you donโ€™t understand the consequences.
  3. In the cleaning settings, disable items related to Google Play Services โ€“ let the utility work only with the cache of other applications.

Alternatively, the built-in MIUI utility Optimize (a broomstick icon on the desktop) securely deletes unnecessary files without affecting critical Google data.

What should I do if there are errors after cleaning?

Sometimes, after a Google Play Services reset, Xiaomi users face problems:

  • ๐Ÿšซ "Google Play Services is constantly โ€œstoppingโ€ โ€“ appears every time you run an app.
  • ๐Ÿ” "No connection to Google, despite the internet.
  • ๐Ÿ”„ Infinite synchronization โ€“ the download animation spins, but the process is not completed.

Decisions:

  1. For the โ€œconstantly stopsโ€ error: Settings โ†’ Apps โ†’ Google Play Services โ†’ Storage โ†’ Clear cache and data Settings โ†’ Google Accounts โ†’ Delete account and add again
  2. For no connection: Settings โ†’ Network and Internet โ†’ VPN โ†’ Disable all VPNs (they can block Google) Settings โ†’ Apps โ†’ Google Play Services โ†’ Permissions โ†’ Enable all
  3. For Infinite Sync: Settings โ†’ Google Accounts โ†’ Sync โ†’ Disable Everything, Reboot Your Phone, Turn Back on

If nothing works, the last option is to reset to factory settings (but this is an extreme measure).

  • ๐Ÿ“ฒ Install Google Installer (for China) ROM).
  • ๐Ÿ”„ Update MIUI last-minute.
  • ๐Ÿ› ๏ธ Reflash your smartphone with the Mi Flash Tool (for experienced only!).

๐Ÿ’ก

If Google Play Services still takes up a lot of space after all the manipulation, check to see if pirated versions of apps (modified by APK) are installed on the phone.

FAQ: Frequent questions about cleaning up Google Play on Xiaomi

โ“ Can you remove Google Play Services from Xiaomi?
Not if you have a Global ROM with Google services pre-installed, which are system-based and will cause most applications to fail, and Google doesn't have Google services on China ROM, but you can install them through Google Installer.
โ“ Why did the cache not clear the place?
You probably cleared the cache only by Google Play Market, not Google Play Services. Also check the /data/data/com.google.android.gms folder through the root-righted file manager - temporary files may remain there.
โ“ How often should you clean the Google Play cache?
Optimally, every 1-2 months. If you actively use Google Maps, YouTube or games with Google Play Games, you can clean more often (every 3-4 weeks). MIUI 14 Cache Accumulates Faster Due to Optimization Features.
โ“ Can Google Play Services be cleaned without losing data?
Yes, if you only use Clear Cache.Data reset (Clear Data) will delete the app settings, but will not affect your files, photos or contacts (they are synced with your Google account).
โ“ Why on mine? POCO X3 Google Play Services is 15GB?
This is an abnormally large size, most likely caused by: Synchronization error (e.g., a suspended map update); pirated versions of apps that create junk files; modified firmware (MIUI) where Google services are not working correctly; solution: perform a data reset via ADB (see Method 4) or reflash your phone with the official version of MIUI.