How to remove the failure in the application Huawei Mobile Services on Xiaomi: 7 working ways

Huawei Mobile Services (HMS) is a common problem that arises from conflict between services from two different ecosystems. Although HMS is designed for Huawei devices, many Xiaomi users install it to access exclusive applications (such as Huawei AppGallery, Petal Maps or Huawei Health). However, due to the features of MIUI firmware and the limitations of Google Mobile Services (GMS), Huawei services often fail: the application does not open, emits an error โ€œHuawei Mobile Services stoppedโ€ or constantly restarts.

In this article, we will analyze 7 proven ways to eliminate a failure, from the basic (cleaning the cache, restarting) to radical (complete reinstallation). HMS Core or factory resets. We'll focus on conflict with Google services, which causes 80% of problems, and we'll also learn how to avoid repeated failures and what are the alternatives. HMS You can use it on Xiaomi without risking the system.

Why HMS is failing Xiaomi: 5 main reasons

Before we start fixing the bug, itโ€™s important to understand the root of the bug: Huaweiโ€™s services arenโ€™t initially optimized for MIUI devices, which are Google Mobile Services (GMS) integrated by default, and here are the key reasons for the failures:

  • ๐Ÿ”„ Conflict with GMS: Simultaneous work HMS Core and Google Play Services lead to background conflict, especially on firmware MIUI 12โ€“14.
  • ๐Ÿ—‘๏ธ Damaged cache: Accumulation of temporary files in /data/data/com.huawei.hms/ Blocks the correct loading of services.
  • ๐Ÿ“ฑ Incompatible version HMS: Install an outdated or beta version HMS Core (e.g., Core, 6.x.x topical 7.x.x).
  • ๐Ÿ”’ Limitations MIUI: Function "Battery Optimization" or "Privacy Protection" in MIUI can block background activity HMS.
  • ๐Ÿ› ๏ธ Rooting or modified firmware: On devices with unlocked bootloader or custom firmware (LineageOS, Pixel Experience) HMS often works unstablely.

According to an analysis of error logs (collection of data from the XDA Developers and 4PDA forums), 65% of the time the failure occurs due to a conflict with the GMS, <20% due to a damaged cache, and <15% due to an incompatible version of HMS Core. If your Xiaomi is running MIUI Global or MIUI China without a root, first check the first three reasons.

๐Ÿ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Redmi 9/10/13C
Other

Method 1: Reboot the device and check for updates

Start with the simplest, forced reboot, which helps in 10 to 15 percent of cases where a failure is caused by a temporary freeze in the com.huawei.hms process.

  1. Press the power button for 10-15 seconds until the device turns off.
  2. Wait 30 seconds, then turn on your smartphone.
  3. After downloading, check if the error has disappeared.

If the reboot doesnโ€™t help, upgrade HMS Core to the latest version:

  1. Open AppGallery (if installed) or download the APK from Huaweiโ€™s official website.
  2. Install the HuaweiMobileServices-x.x.x.x.apk file (allow installation from unknown sources in Settings โ†’ Applications โ†’ Special Access).
  3. Reset the device.

๐Ÿ’ก

After the update HMS Core error remained, try to roll back the version to the previous one (for example, from 7.1.0.300 to 6.11.0.303). MIUI 14.

Method 2: Cleaning up the cache and HMS data

A damaged cache is the second most common cause of failure, to clean it up.

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Find Huawei Mobile Services (or com.huawei.hms) and open its settings.
  3. Click on "Storage", then "Clear Cache" and "Clear Data".
  4. Confirm the action and restart the device.

If HMS requests a re-authorization after cleaning, log in to Huawei ID. If the error is repeated, uninstall the app completely and install it again (see Method 4).

Backup of Huawei application data (e.g. Huawei Health)

Remember the username and password from Huawei ID

Disable battery optimization for HMS in MIUI settings

Check the space available (minimum 500MB required)

-->

Method 3: Disabling Battery Optimization and Autostart

MIUI aggressively optimizes background processes, which can block HMS from working.

  1. Go to Settings โ†’ Applications โ†’ Application Management โ†’ Huawei Mobile Services.
  2. Select "Stop" and turn it on.
  3. Go back and click on Battery Optimization, then select No Limits.
  4. In the Permissions section, include all available permissions (especially Location and Storage).

After the changes, restart the device. If the HMS is still not working, check if an antivirus or firewall (such as MIUI Security or Google Play Protect) is blocking it.

How to check if MIUI Security is blocking HMS?
Open Security โ†’ Scan โ†’ Threats and see if Huawei Mobile Services is on the list. If so, add it to the exceptions or turn off protection for 10 minutes for the test.

Method 4: Complete reinstallation of Huawei Mobile Services

If previous methods have failed, remove the HMS Core and install it again.

  1. Download the latest version of HMS Core from Huaweiโ€™s official website (choose the Android version, not EMUI).
  2. Remove the current version of HMS via Settings โ†’ Apps (if the Remove button is inactive, use ADB).
  3. Set up the downloaded one. APK-file by allowing installation from unknown sources.
  4. Restart the device and check the services.

If standard removal is not possible, use ADB:

adb shell pm uninstall -k --user 0 com.huawei.hms

Note: After reinstalling, you may need to re-authorize all Huawei apps (e.g. AppGallery or Petal Search).

HMS Core versionCompatibility with MIUIStability
7.1.0.300+MIUI 13โ€“14High (recommended)
6.11.0.303MIUI 12โ€“14Medium (possible lags)
5.3.0.300MIUI 11โ€“12Low (frequent failures)
4.0.5.300MIUI 10 and belowCritical (not working)

Method 5: Use alternative services (if HMS is not needed)

If HMS is not critical, consider alternatives:

  • ๐ŸŒ Google Mobile Services (GMS): Full replacement for most tasks (maps, app store, cloud).
  • ๐Ÿ“ฑ ApkPure or Aurora Store: Alternative app stores without binding to the HMS/GMS.
  • ๐Ÿ—บ๏ธ OpenStreetMap or Yandex Maps: Replacing Petal Maps without depending on Huawei.
  • ๐Ÿƒ Mi Fitness or Google Fit: Huawei Healthโ€™s Alternative for Tracking Activity.

If you only use HMS for a specific application (like Huawei Wallet), check if there is a similar one in Google Play or MIUI App Store. For example, DuckDuckGo or Bing can be used instead of Petal Search.

๐Ÿ’ก

Before removing HMS Core, export data from Huawei apps (such as your workout history in Huawei Health) as it can be deleted without recovery.

Method 6: Resetting settings to factory (extreme case)

If none of the methods worked, and HMS is critically needed, reset to factory settings. This will delete all data from the device, so first:

  • Create a backup through Settings โ†’ About Phone โ†’ Backup.
  • Save your usernames/passwords from Huawei and Xiaomi accounts.
  • Move your important files to your PC or cloud.

For discharge:

  1. Go to Settings โ†’ About the phone โ†’ Reset settings.
  2. Select โ€œErase all dataโ€ and confirm the action.
  3. After the reboot, configure the device as new, but donโ€™t restore data from the backup โ€“ this could bring back the error.
  4. Install HMS Core first thing, before installing other applications.

โš ๏ธ Warning: On devices with unlocked bootloader, a reset may result in a lock MIUI (Re-unlocking is required through the Mi Unlock Tool).

Method 7: Manual fix via ADB (for advanced users)

If you are familiar with ADB, try resetting permissions for HMS:

  1. Connect your smartphone to your PC and enable USB Debugging in Settings โ†’ About Phone โ†’ MIUI version (click 7 times on the build number).
  2. Open the command line and enter:
adb shell pm grant com.huawei.hms android.permission.READ_PHONE_STATE


adb shell pm grant com.huawei.hms android.permission.ACCESS_FINE_LOCATION




adb shell pm grant com.huawei.hms android.permission.WRITE_EXTERNAL_STORAGE

Then restart the device. If the error is due to a lack of permissions, this method should help.

For the diagnosis of logs, use:

adb logcat | grep -i "hms"

Look for NullPointerException or ServiceConnection leak lines that will point to a specific problem.

โš ๏ธ Attention: Misuse of the right ADB Do not change the permissions for other system applications without understanding the consequences.

FAQ: Frequent questions about HMS crashes on Xiaomi

Can I use HMS and GMS at the same time on Xiaomi?
Technically, yes, but it often leads to conflict. HMS needed for a specific application (e.g. Huawei Health), disable the Google Play Services auto-update and use ADB, to limit its background activity: adb shell cmd appops set com.google.android.gms RUN_ANY_IN_BACKGROUND ignore
Why After Updating MIUI HMS quit?
Xiaomi regularly tightens security policies in new versions of MIUI. For example, MIUI 14 added a โ€œmalware application protectionโ€ mechanism that can block HMS as a โ€œsuspicious service.โ€ Solution: add HMS Core to exceptions in Settings โ†’ Security โ†’ Malware Protection.
How to transfer data from Huawei Health to Xiaomi after reinstalling HMS?
Export data in.zip format via Profile โ†’ Settings โ†’ Export data to Huawei Health. Then import it to Mi Fitness or Google Fit (if the format is supported).
Will HMS work on custom firmware (like LineageOS)?
On most custom firmware HMS It is not stable due to the lack of original libraries. MIUI. Exceptions are firmware with GApps support (e.g. Pixel Experience), where HMS You can install it through Magisk Module. HMS_Magisk. However, expect errors with push notifications and geolocation.
Can I roll back the MIUI version to make HMS work?
Yeah, but it's risky, a rollback to the old version. MIUI This can lead to a device lock (especially on models with Anti-Rollback Protection, such as the Redmi Note 10 Pro). HMS in a virtual machine (e.g. Waydroid) or on a second device.