Google Services Framework Cleanup on Xiaomi: When to Do It and How to Do It Right

Why Google Services Framework is slowing down your Xiaomi and when to clean it

Google Services Framework (GSF) is an Android system application that manages data synchronization between a device and Google servers. On Xiaomi, Redmi and POCO smartphones, it often causes problems, from hanging out when updating apps to DF-DFERH-01 errors in the Play Market, due to conflicts between MIUI and Google services, especially after system updates or resets.

Cleaning up the cache and GSF data is not a panacea, but 80% of the time it solves:

  • ๐Ÿ”„ Hanging apps download in the Play Market ("load waiting" hangs indefinitely).
  • โš ๏ธ Google account sync errors (e.g., no contacts or calendar updates).
  • ๐Ÿ“ฑ Lags of the interface, when the system hangs when opening any Google services (Gmail, Maps, YouTube).
  • ๐Ÿ”ง Problems with OTA-Updates (the device does not see new versions) MIUI).

Cleaning up, however GSF Xiaomi is different from the standard procedure on โ€œpureโ€ Android: there is a risk of disrupting the work MIUI Account or loss of access to branded services (such as Mi Cloud or GetApps) so it is important to follow the instructions adapted for firmware MIUI 12โ€“15.

๐Ÿ“Š What is the problem you face with Google Services Framework?
Hanging Play Market
Google account sync errors
Lags in the smartphone
They don't come. OTA-update
Another problem.

Preparation: What to do before cleaning up GSF on Xiaomi

Before you reset the Google Services Framework, follow these steps to avoid data loss or device lockdown:

โš ๏ธ Note: If your Xiaomi has Find My Device enabled, clean up GSF You may temporarily block access to your Google account, and check in advance if you remember your password!

  • ๐Ÿ“ฑ Create a backup through Settings โ†’ The phone. โ†’ Backup (or use Mi Cloud). Especially important to save: Contacts and SMS (If not synced to Google, Wi-Fi settings and application data (e.g. save in games).
  • ๐Ÿ”„ Update all apps in the Play Market โ€“ this will reduce the risk of conflicts after resetting.
  • ๐Ÿ”‹ Charge your smartphone to at least 50%: the process can take up to 10 minutes, and interruption due to battery discharge will lead to failures.
  • ๐Ÿ“ก Connect to stable Wi-Fi โ€“ after cleaning GSF You will need to re-authorize on Google.

If your device is rooted or custom firmware is installed (e.g. Xiaomi.EU), the cleaning process may be different, in which case you can use ADB or TWRP, which we will discuss in a separate section.

Backup data |Update all apps in Play Market |Charge your smartphone to 50%+|Connect to Wi-Fi |Remember your Google account password-->

Method 1: Standard cleaning through settings (no root)

This method is suitable for most Xiaomi, Redmi and POCO devices on the official MIUI firmware.It does not require superuser rights and is safe for beginners.

Instructions:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Click on the three dots in the top right corner and select Show All Apps.
  3. In the search box, enter the Google Services Framework (or Google Play Services on Russian firmware).
  4. Slip on the app, then select Warehouse.
  5. Click Clear the cache, then Clear the data (or Delete the data).
  6. Confirm the action and restart the device.

After the reboot:

  • ๐Ÿ”„ Wait for automatic sync with Google (can take up to 5 minutes).
  • ๐Ÿ“ฑ Open the Play Market and check if download errors have disappeared.
  • โš™๏ธ If there are problems, go to Method 2.

โš ๏ธ Note: Some models (e.g. Xiaomi) 12T or POCO F5) cleansing GSF Mi Video or Mi Browser may be lost, but this is temporary, and the functions will be restored after re-authorization in the system. MIUI Account.

What if you donโ€™t find the Google Services Framework in your settings?
On some firmware (e.g. MIUI 14 for the global version), the application is hidden. In this case: 1. Install a file manager with access to system folders (e.g. FX File Explorer). 2. Go to /data/app/com.google.android.gsf-1/ or /data/app/com.google.android.gsf-2/. 3. Remove the cache and lib folders manually (root rights required).

Method 2: Cleaning through ADB (for power users)

If a standard reset didn't help or you're using custom firmware, try clearing GSF through Android Debug Bridge (ADB).This method is deeper and suitable for devices with an unlocked bootloader.

You'll need:

  • ๐Ÿ–ฅ๏ธ Computer with installed ADB Tools.
  • ๐Ÿ“ฑ Included debugging by USB on a smartphone (Settings) โ†’ The phone. โ†’ Version. MIUI โ€” Tap 7 times, then return to the Additional Settings โ†’ For developers โ†’ Debugging by USB).
  • ๐Ÿ”Œ Cable USB (preferably original).

Steps:

  1. Connect your smartphone to your PC and open the command line (or Terminal on Mac/Linux).
  2. Enter the command to check the connection: Adb devices must appear serial number of your device.
  3. Do a cache and GSF cleanup: adb shell pm clear com.google.android.gsf
  4. Reboot the device: adb reboot

If you have a MIUI Account error after the reboot (for example, asks you to log in again), follow the additional command:

adb shell pm clear com.xiaomi.account
Xiaomi modelRecommended methodPossible challenges
Redmi Note 10/11, POCO X3/X4Standard cleaning (Method 1)Temporary loss of sync Google Photos
Xiaomi 12/13, Mix 4ADB (Method 2)Re-authorization is required in Mi Cloud
POCO F3/F4 GTBoth methodsCan reset the settings of the Game Turbo
Xiaomi Pad 5/6Only Method 1Mi Share (Wireless File Transfer)

๐Ÿ’ก

If after cleaning GSF through ADB smartphone became slower to work, follow the command adb shell pm compile -m speed -f com.google.android.gsf. This optimizes the application for your device.

Method 3: Recovery Reset (if nothing helps)

If the first two methods didnโ€™t work and there were problems with the Google Services Framework, try resetting the cache via Recovery Mode.This is a more radical way, but it doesnโ€™t affect user data.

Instructions:

  1. Turn off your smartphone.
  2. Press the button combination to enter Recovery: For most models: Power + Volume up. For POCO F5 and new flagships: Power + Volume up + Volume down (hold 10 seconds).

Wipe & Reset โ†’ Wipe Cache

Confirm the action and wait for the completion.

Reboot โ†’ System

After the reboot:

  • ๐Ÿ”„ Application optimization will automatically start (can take up to 15 minutes).
  • ๐Ÿ“ฑ Check Play Market and Google Sync.
  • โš ๏ธ If problems persist, you may need a complete reset (but this is an extreme measure!).

โš ๏ธ Note: On devices with a locked bootloader (e.g. Xiaomi for the Chinese market), logging into Recovery can lead to activation of Anti-Rollback and "brick". Before using this method, check the bootloader status via the command fastboot getvar anti.

๐Ÿ’ก

Recovery cache resetting is the only way to get GSF back on track if the smartphone doesnโ€™t boot beyond the MIUI logo after a failed cleanup.

Frequent errors after GSF cleaning and how to fix them

Even if you did everything right, you can still have side effects after resetting the Google Services Framework, and here are the most common ways to eliminate them:

Problem.Reason.Decision
Play Market is not openData resetting of Google servicesRemove Play Market Updates (Settings) โ†’ Annexes โ†’ Google Play Store โ†’ โ‹ฎ โ†’ Remove updates)
Notified from Gmail NotificationsSynchronization is brokenOpen Settings โ†’ Accounts โ†’ Google and enable manual synchronization
Xiaomi doesn't see OTA-updateReset com.google.android.gsf interrupts communication with update serversGo to Settings โ†’ About Phone โ†’ System Update and click โ€œCheck Updatesโ€ 3 times in a row
Constantly requesting a Wi-Fi passwordResetting network settingsForget the network (Settings) โ†’ Wi-Fi โ†’ โ‹ฎ โ†’ Forget) and connect again.

If you encounter a DF-DFERH-01 error in the Play Market after cleaning the GSF, follow the following steps:

  1. Delete your Google account (Settings โ†’ Accounts โ†’ Google โ†’ Delete your account).
  2. Reset the device.
  3. Add your account again and link it to the Play Market.

For devices with MIUI 14+, additional configuration may be required:

adb shell settings put global captive_portal_detection_enabled 0

This command disables the Internet connection check, which sometimes blocks Google services.

How to avoid GSF problems in the future

To avoid having to clean the Google Services Framework regularly, follow these guidelines:

  • ๐Ÿ”„ Turn off automatic updates of system applications in the Play Market (Settings) โ†’ Auto-update of applications โ†’ Not update automatically).
  • ๐Ÿ“ฑ Clean the cache (but not the data!) for Google apps regularly through Settings โ†’ Annexes โ†’ Google Play Services โ†’ Warehouse โ†’ Clear the cache.
  • ๐Ÿ”‹ Do not use aggressive SEOs (such as Greenify or AccuBattery) that can kill processes. GSF.
  • ๐Ÿ›ก๏ธ Install an alternative launcher (such as Nova Launcher) if you MIUI Launcher is in conflict with Google services.

For POCO and Xiaomi owners on custom firmware (e.g. Pixel Experience or LineageOS):

  • ๐Ÿ”ง Use the Magisk Module "GSF Fix to correct synchronization errors.
  • ๐Ÿ“ฆ Install MicroG instead of standard Google services if you donโ€™t use the Play Market.

If you often face problems GSF, Check if your device has Battery and Performance enabled" โ†’ "Background activity restriction for system applications. This is one of the reasons for constant failures.

๐Ÿ’ก

Regularly cleaning the cache (every 1-2 months) prevents 90% of problems with the Google Services Framework on Xiaomi.

FAQ: Answers to Frequent Questions

Can I clean Google Services Framework on Xiaomi with a blocked bootloader?
Yes, but only through Settings (Method 1). Using ADB or Recovery on locked devices (e.g. Xiaomi for the Chinese market) can lead to activation of Anti-Rollback and "brick". Before any manipulations, check the status of the bootloader with the command fastboot getvar anti.
After GSF was cleaned, payments through Google Pay stopped working.
This involves resetting security certificates. To restore Google Pay: Delete the Google Pay app and clear the Google Play Services data. Reboot the device. Install Google Pay again from the Play Market. Add the card again (may require confirmation via SMS from the bank). If the problem persists, check if the Settings option โ†’ Google โ†’ Security โ†’ Device Search is enabled.
How often do you need to clean up the Google Services Framework?
Normally, never. Cleanup is required only when there are obvious failures (Play Market errors, lags, synchronization problems). If you have to do this more than once every 3-6 months, the reasons may be deeper: custom firmware conflict, damaged system files (reflashing required), virus software (check the device through Malwarebytes).
Will GSF cleanup delete my data from Google Photos or Gmail?
No, the Google Services Framework cleanup does not affect: Google Photos files (they are stored on Google servers); emails to Gmail; notes to Google Keep. However, sync may be temporarily interrupted; once you log in again, all data will be restored; the exception is local data (for example, unsynchronized drafts in Gmail or offline map cache in Google Maps).
Can you roll back the changes if after cleaning the GSF smartphone became worse?
Yes, but the ways depend on what went wrong: If Google services crash: reset your network settings (Settings) โ†’ SIM-maps and mobile networks โ†’ If lags and brakes: clear the cache through Recovery (see Method 3). MIUI (For example, Mi Share: link the device back to Mi Account. In extreme cases, a rollback to factory settings will help, but this will remove all data from the device.