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.
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.
- Press the power button for 10-15 seconds until the device turns off.
- Wait 30 seconds, then turn on your smartphone.
- After downloading, check if the error has disappeared.
If the reboot doesnโt help, upgrade HMS Core to the latest version:
- Open AppGallery (if installed) or download the APK from Huaweiโs official website.
- Install the HuaweiMobileServices-x.x.x.x.apk file (allow installation from unknown sources in Settings โ Applications โ Special Access).
- 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.
- Go to Settings โ Applications โ Application Management.
- Find Huawei Mobile Services (or com.huawei.hms) and open its settings.
- Click on "Storage", then "Clear Cache" and "Clear Data".
- 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.
- Go to Settings โ Applications โ Application Management โ Huawei Mobile Services.
- Select "Stop" and turn it on.
- Go back and click on Battery Optimization, then select No Limits.
- 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?
Method 4: Complete reinstallation of Huawei Mobile Services
If previous methods have failed, remove the HMS Core and install it again.
- Download the latest version of HMS Core from Huaweiโs official website (choose the Android version, not EMUI).
- Remove the current version of HMS via Settings โ Apps (if the Remove button is inactive, use ADB).
- Set up the downloaded one. APK-file by allowing installation from unknown sources.
- Restart the device and check the services.
If standard removal is not possible, use ADB:
adb shell pm uninstall -k --user 0 com.huawei.hmsNote: After reinstalling, you may need to re-authorize all Huawei apps (e.g. AppGallery or Petal Search).
| HMS Core version | Compatibility with MIUI | Stability |
|---|---|---|
| 7.1.0.300+ | MIUI 13โ14 | High (recommended) |
| 6.11.0.303 | MIUI 12โ14 | Medium (possible lags) |
| 5.3.0.300 | MIUI 11โ12 | Low (frequent failures) |
| 4.0.5.300 | MIUI 10 and below | Critical (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:
- Go to Settings โ About the phone โ Reset settings.
- Select โErase all dataโ and confirm the action.
- After the reboot, configure the device as new, but donโt restore data from the backup โ this could bring back the error.
- 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:
- Connect your smartphone to your PC and enable USB Debugging in Settings โ About Phone โ MIUI version (click 7 times on the build number).
- 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_STORAGEThen 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.