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.
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:
- Open Settings โ Applications โ Application Management.
- Click on the three dots in the top right corner and select Show All Apps.
- In the search box, enter the Google Services Framework (or Google Play Services on Russian firmware).
- Slip on the app, then select Warehouse.
- Click Clear the cache, then Clear the data (or Delete the data).
- 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?
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:
- Connect your smartphone to your PC and open the command line (or Terminal on Mac/Linux).
- Enter the command to check the connection: Adb devices must appear serial number of your device.
- Do a cache and GSF cleanup: adb shell pm clear com.google.android.gsf
- 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 model | Recommended method | Possible challenges |
|---|---|---|
| Redmi Note 10/11, POCO X3/X4 | Standard cleaning (Method 1) | Temporary loss of sync Google Photos |
| Xiaomi 12/13, Mix 4 | ADB (Method 2) | Re-authorization is required in Mi Cloud |
| POCO F3/F4 GT | Both methods | Can reset the settings of the Game Turbo |
| Xiaomi Pad 5/6 | Only Method 1 | Mi 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:
- Turn off your smartphone.
- 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 open | Data resetting of Google services | Remove Play Market Updates (Settings) โ Annexes โ Google Play Store โ โฎ โ Remove updates) |
| Notified from Gmail Notifications | Synchronization is broken | Open Settings โ Accounts โ Google and enable manual synchronization |
| Xiaomi doesn't see OTA-update | Reset com.google.android.gsf interrupts communication with update servers | Go to Settings โ About Phone โ System Update and click โCheck Updatesโ 3 times in a row |
| Constantly requesting a Wi-Fi password | Resetting network settings | Forget 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:
- Delete your Google account (Settings โ Accounts โ Google โ Delete your account).
- Reset the device.
- 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 0This 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.