How to securely remove com.xiaomi.glgm on Xiaomi: 5 proven ways

If you own a Xiaomi smartphone and you notice a mysterious com.xiaomi.glgm package on your app list, you know firsthand how hard it is to find up-to-date information about its purpose. This system component often raises questions about whether it can be removed, whether it will harm the phone, and how to do it correctly without consequences. Unlike standard user applications, com.xiaomi.glgm has no visible interface, but can take up space in memory and consume resources in the background.

In this article, we will understand what com.xiaomi.glgm is, what it is responsible for in the firmware MIUI, and most importantly, how to remove it in different ways: from simple disabling to complete removal with root rights. You will also learn about the potential risks, alternative methods of system optimization and what to do if after deleting problems. Instructions will be suitable for most models Xiaomi, Redmi and POCO based on Android 10-14.

What is com.xiaomi.glgm and why is it needed?

The com.xiaomi.glgm package is a system application that refers to Xiaomi services for working with global localization and geolocation settings. In different versions of MIUI, its functions may vary, but it is usually responsible for:

  • 🌍 Localization of system notifications (adaptation to the user region).
  • πŸ“ Optimize the operation of GPS and location services.
  • πŸ”„ Synchronize time zones and regional settings.
  • πŸ“± Interaction with Xiaomi cloud services (e.g. Mi Cloud).

In most cases, com.xiaomi.glgm runs in the background and does not interfere with the user, but some owners of Xiaomi smartphones complain about:

  • ⚠️ Increased battery consumption (up to 5–7% per day).
  • πŸ“± Spontaneous reboots when updating a packet.
  • 🚫 Conflicts with third-party applications (e.g. Google Maps or Yandex Navigator).

It's important to understand that com.xiaomi.glgm is not a virus or spyware. It's a legitimate component of MIUI, but it can be removed if it causes inconvenience, but it's important to assess the risks before doing so.

πŸ“Š Have you noticed any problems with com.xiaomi.glgm on your Xiaomi?
Yeah, high battery consumption.
Yeah, the phone's slowing down.
Yes, conflicts with GPS.
No, it's working fine.
I don't know what it is.

Risks of deleting com.xiaomi.glgm: what could go wrong

Removing system applications is always a potential problem. In the case of com.xiaomi.glgm, the main risks include:

Problem.Probability.How it manifestsCan we fix it?
Time synchronization failureTall.Incorrect display of date/time, failures in alarm clocksYeah (manual tuning)
GPS problemsMediumLong location determination, errors in navigationPartially (reinstallation of GMS)
Mi Cloud MistakesLow.Contacts, notes, photos are not synchronizedYes (reauthorization)
System lagsMediumSlowing the interface, hanging when launching applicationsYeah (cache dump)

The most serious risk is the loss of Mi Account functionality. If you use Xiaomi cloud services (such as backup or device search), deleting com.xiaomi.glgm can lead to authorization errors, in which case you will have to reinstall the firmware or reset the phone to factory settings.

⚠️ Warning: On some models (e.g. Xiaomi 12T or Redmi Note 11 Pro+), deleting this package may block access to Settings β†’ Additional β†’ Region. If you travel frequently and change region, it is best not to delete com.xiaomi.glgm.

If you still decide to get rid of this application, start with the safest methods – shut down or freeze.

Method 1: Disable com.xiaomi.glgm without root (the safest)

If you don’t have root rights, but you want to stop com.xiaomi.glgm, you can use Android’s built-in tools.This method doesn’t remove the app completely, but it prevents it from running and saves resources.

Enable Developer Mode (7 times click on the build number in Settings)

Activate debugging over USB

Make sure the battery is more than 50% charged

Backup of important data-->

Instructions:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Click on the three dots in the upper right corner and select Show System Processes.
  3. In the search box, type com.xiaomi.glgm.
  4. Select the app from the list and click Disable (or Stop if the disconnect is not available).
  5. Confirm the action in the dialog window.

After the shutdown:

  • πŸ”‹ Battery consumption should be reduced by 2–5%.
  • πŸ“± The application will not start automatically.
  • ⚠️ Some Mi Cloud features may not work well.

⚠️ Warning: On some firmware (e.g., MIUI 14 for Xiaomi 13), the system application shutdown may reset after the upgrade, in which case the procedure will have to be repeated.

If disabling didn’t help or you want to completely remove the packet, proceed to the next method.

Method 2: Remove via ADB (without root but with PC)

If the shutdown is not enough, you can delete com.xiaomi.glgm using ADB (Android Debug Bridge), a method that does not require root rights, but requires a computer and a USB- cable, the advantage of which is that the removal occurs at the system level, but without the risk of damaging critical components.

What you need:

  • πŸ’» Computer with Windows, macOS or Linux.
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“± Initiated debugging mode USB phone-on.
  • πŸ› οΈ Installed drivers ADB and Fastboot.

Step-by-step:

  1. Download Google’s Platform Tools and unpack the archive.
  2. Connect your phone to your PC and select File Transfer (MTP) mode.
  3. Open the command line (cmd) in the folder with the platform-tools.
  4. Enter the command to check the connection: Adb devices should appear the name of your device.
  5. Run the command to delete the packet: adb shell pm uninstall --user 0 com.xiaomi.glgm
  6. Reboot the phone.

If the command is successful, the application will be removed for the current user (without affecting the system).

adb shell cmd package install-existing com.xiaomi.glgm

πŸ’‘

If the ADB does not see the device, try reinstalling the drivers or using another USB- cable. Also check if debugging is enabled by USB in the developer settings.

This method is safer than root removal, but it can still cause minor MIUI disruptions.

Method 3: Complete removal with root rights (for experienced)

If you have root access, you can delete com.xiaomi.glgm permanently, which is the most radical and requires caution. Wrong actions can lead to a device being "bricked."

What to do before removal:

  • πŸ”„ Make a full backup through TWRP or OrangeFox Recovery.
  • πŸ“‹ Check if there are dependencies in other system applications (e.g., com.xiaomi.xmsf).
  • πŸ”‹ Charge your phone at least 70%.

Instructions for removal:

  1. Install any file manager with root support (such as Root Explorer or FX File Explorer).
  2. Go to /system/priv-app/ or /system/app/.
  3. Find the Glgm folder (or com.xiaomi.glgm).
  4. Delete the folder or rename it (e.g., Glgm_bak).
  5. Clear the cache and data through Settings β†’ Applications β†’ com.xiaomi.glgm (if the folder is still visible).
  6. Reboot the phone.

The following is the case with Terminal Emulator:

su


mount -o rw,remount /system




rm -rf /system/priv-app/Glgm




reboot

⚠️ Warning: On some firmware (e.g., MIUI 13 for POCO F4), deleting com.xiaomi.glgm may cause a com.android.phone error (no network) in which case you have to restore the folder from the backup or reflash the phone.

If you have problems after removal, try:

  • πŸ”„ Return the folder from the backup.
  • πŸ“± Reset network settings to Settings β†’ SIM-maps and mobile networks.
  • πŸ”§ Reinstall Google Play Services.

Method 4: Freeze through Titanium Backup (alternative to deletion)

If you don’t want to take risks, but want to stop com.xiaomi.glgm, you can use the Titanium Backup app, which allows you to freeze the application, making it inactive, but with the ability to quickly recover.

Benefits of freezing:

  • βœ… No risk of damage to the system.
  • βœ… Can be quickly defrost if necessary.
  • βœ… Save resources as if completely removed.

Instructions:

  1. Install Titanium Backup from the official website.
  2. Give root access.
  3. Find it in the list of com.xiaomi.glgm.
  4. Click on it and select Freeze.
  5. Confirm the action and restart the phone.

To unfreeze the app, repeat the steps and select Unfreeze.

What to do if the mobile Internet is lost after freezing?
If after freezing com.xiaomi.glgm stopped working mobile Internet, try: 1. Freeze the application. 2. Go to Settings β†’ SIM- cards and mobile networks β†’ Access Point (APN) and reset the settings to factory. 3. Reboot the phone. If the problem remains, perhaps on your model com.xia.glgm is associated with the modem module.

Method 5: Remove via Magisk (for custom firmware)

If your phone runs on custom firmware (like LineageOS, Pixel Experience or crDroid) with Magisk installed, you can uninstall com.xiaomi.glgm using the App Systemizer module or Debloater.

Instructions:

  1. Install the Magisk App Systemizer module through Magisk Manager.
  2. Go to Magisk β†’ Modules and activate the module.
  3. Reboot the phone.
  4. Open App Systemizer and find com.xiaomi.glgm.
  5. Select Uninstall and confirm the action.

The advantage of this method is that it allows you to remove system applications without direct interference with /system, which reduces the risk of errors.

If you're using Xiaomi.eu or some other custom firmware, check to see if com.xiaomi.glgm is already removed by default. Many firmware builders are removing unnecessary system applications for optimization.

What to do if there are problems after removal

If after deleting com.xiaomi.glgm, the phone becomes unstable, follow this instruction:

  1. Check the error logs: adb logcat | grep -i "glgm\|xiaomi" This will help you understand what processes depend on the remote package.
  2. Restore the Package from Backup: If you backed up through TWRP, restore only the /system/priv-app/Glgm folder.
  3. Reset network settings: Go to Settings β†’ System β†’ Settings Reset β†’ Reset your Wi-Fi, mobile network and Bluetooth settings.
  4. Reinstall Google Play Services: Remove updates for Google Play Services in Settings β†’ Apps and restart your phone.
  5. Do a factory reset: Last resort, if nothing worked. Don't forget to back up the data.

If the problem is Mi Account (for example, sync is not working), try:

  • πŸ”„ Sign out of your Xiaomi account and log in again.
  • πŸ“± Install the latest version of Mi Cloud from Google Play.
  • πŸ”§ Clear cache and data from com.miui.cloudservice.

⚠️ Warning: On some models (e.g., Xiaomi 11T Pro), deleting com.xiaomi.glgm may result in a com.xiaomi.account error.

FAQ: Frequent questions about com.xiaomi.glgm

Can I delete com.xiaomi.glgm without root?
Yes, but not completely. You can disable it through settings or delete it for the current user through ADB (adb shell pm uninstall --user 0 com.xiaomi.glgm command). Complete removal without root is impossible.
Will GPS work after com.xiaomi.glgm is deleted?
Most of the time, yes, but there may be delays in first determining location. If GPS stopped working, try: Install GPS Status & Toolbox from Google Play and update the A-GPS data. Reset network settings. Restore com.xiaomi.glgm.
Why does com.xiaomi.glgm consume so much battery?
This is usually due to: πŸ”„ Frequent synchronization with Mi Cloud. πŸ“ Permanent location (if geodata services are enabled). ⚠️ Conflict with other system applications (e.g. com.xiaomi.xmsf). Try to disable automatic synchronization in your Xiaomi account settings.
Can I delete com.xiaomi.glgm on POCO?
Yes, but on POCO with MIUI for POCO firmware, this package may be more critical to the POCO Launcher. Before you delete, check if it is dependent on the system applications to run.
How to check if com.xiaomi.glgm is deleted?
Run the command in ADB or Terminal Emulator: pm list packages | grep glgm If the answer is blank, the package is removed. You can also check in Settings β†’ Applications β†’ Show system.