How to completely disable Google geolocation on Xiaomi smartphones: all ways

Xiaomi MIUI-based smartphones are using Google’s location services, even when you don’t expect them to. Geolocation consumes battery power, transmits your movements, and can pose privacy risks. But it’s not easy to turn it off completely: Google and MIUI are system-level integrated, and settings are spread across different menus.

In this article, 5 proven ways to disable Google geolocation on Xiaomi, including hidden developer settings and background activity restrictions, we’ll look at how to prevent Google Maps, Google Play Services and other services from tracking your location, and what to do if settings are reset after the MIUI update. Important: some methods require root rights or disable key features – assess the risks in advance.

Why does Google geolocation work even after it’s turned off?

Many Xiaomi users are faced with the paradox that the location is turned off in the settings, but Google continues to determine the coordinates, the reason is the architecture of Android and MIUI:

  • πŸ”„ Google Play Services is a background service that ignores system limitations and can include geolocation to β€œimprove the user experience".
  • πŸ“ Google Location History Stores Data Even When Disabled GPS, using Wi-Fi access points and cell towers.
  • πŸ”— Integration MIUI: Some features (such as Mi Cloud or Find Device) automatically request location access.
  • πŸ”„ Automatic updates to Google services can reset your privacy settings.

According to a study by Princeton University (2023), even in β€œflight mode” Android devices can transmit location data via Wi-Fi scanning and Bluetooth LE. On Xiaomi, this is complicated by proprietary MIUI services that duplicate Google’s features.

⚠️ Note: Disabling Google’s geolocation may disrupt Google Pay, YouTube Music and other services tied to the region, for example, without access to the location, Google Pay will stop showing nearby payment terminals.

Method 1: Disabling geolocation in Android settings

The most obvious, but least effective, method is to use standard Android settings, which is suitable for basic protection, but does not block background activity of Google Play Services.

Instructions:

  1. Open Settings β†’ Privacy β†’ Application permissions β†’ Location.
  2. Click on "Access to Location" and move the slider to the "Off" position.
  3. Go back and select Google Location History β†’ disable the feature for your account.
  4. Go to Settings β†’ Applications β†’ App Management, search Google Play Services and disable location access.

The problem with this method is that MIUI and Google can restore access after a reboot or update, for example, Google Play Services automatically turns on geolocation to check the security of the device (Google Play Protect feature).

Is location access disabled for Google Maps|

Is background access to geodata forbidden for Google Play Services|

Is Location History turned off in your Google | account?

Are β€œuseful places” notifications in Google settings disabled?-->

Method 2: Limit background activity through MIUI

MIUI provides additional tools to control applications that can be used against Google, a method that does not require root rights, but can lead to errors in the operation of services.

Steps:

  1. Go to Settings β†’ Battery and Performance β†’ Battery Management β†’ Applications selection.
  2. Find Google Play Services and Google Maps and select Restricted mode for them.
  3. Go back to Settings β†’ Applications β†’ App Management, open the settings of Google Play Services and:

Google Play Services

"Blacklist."

Settings β†’ Privacy β†’ Special Permits β†’ Blacklist

This method reduces background battery consumption and limits data collection, but Google can bypass restrictions through system updates, for example, after the MIUI 14 update, many users complained that Google Play Services is again gaining access to geolocation.

πŸ’‘

If push notifications in Gmail or YouTube stop working after the background activity restriction, temporarily return the settings to "No Limits" mode and repeat the procedure after 1-2 days.

Method 3: Disconnection through Developer Parameters

Android’s hidden settings allow for deeper geolocation control, but require developer mode activation, a method that is suitable for power users.

Instructions:

  1. Activate Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Go back to Settings β†’ More β†’ For developers and find:

ADB

adb shell settings put global location_mode 0

This command completely disables all methods of determining the location at the system level.

After the execution of the team location_mode 0 geolocation will be disabled even for system applications, including Mi Cloud and Find Device.

ParameterMeaningThe effect
location_mode 0Off.Complete shutdown of GPS, Wi-Fi and network geolocation
location_mode 1Only the deviceOnly GPS (without Wi-Fi/network)
location_mode 2High precisionGPS + Wi-Fi + Network (standard mode)
location_mode 3Saving chargeWi-Fi and network only (without GPS)

⚠️ Attention: Teams ADB Reset after resetting settings or updating MIUI. To keep the changes, use the automatic execution script when booting (requires Magisk or Tasker).

Disabled in standard settings Android|

Used the developer parameters |

Limited background activity through MIUI|

I've tried nothing.|Another way.-->

Method 4: Removing Google Play Services Updates

Google Play Services is the main spy on your Xiaomi, and its updates often restore access to geolocation. The radical method is to roll the service back to the factory version.

How to do this:

  1. Go to Settings β†’ Applications β†’ Application Management β†’ Google Play Services.
  2. Click on the three dots in the top corner and select "Delete Updates".
  3. Return to the application settings and:

Reset the device.

After the rollback, Google Play Services will lose some of the features, but geolocation will only work for basic tasks (for example, checking the region in Google Play).

What happens if you completely remove Google Play Services?
Deleting (not rolling back!) Google Play Services will cause most Google services to collapse, with Google Maps, Gmail, YouTube, and even some MIUI features (such as syncing with Mi Cloud) shutting down. The system may start to issue errors when trying to update apps through the Play Store, and only through a full reset or firmware can restore functionality.

Method 5: Using Magisk and Locking Modules

For users with root rights or Magisk installed, radical methods of blocking geolocation at the kernel level are available, which is the most reliable way, but requires technical skills.

Recommended modules of Magisk:

  • πŸ›‘οΈ DisableFlagSecure – Blocks protected flags, including access to geodata.
  • πŸ”’ Universal SafetyNet Fix – bypasses Google’s checks, but could disrupt banking apps.
  • 🌍 FakeGApps – replaces real coordinates with fictitious coordinates (useful for applications requiring geolocation).
  • 🚫 App Systemizer – allows you to deactivate Google Play Services as a system application.

Installation instructions:

  1. Install Magisk Manager and download the desired module from the repository.
  2. Go to Magisk β†’ Modules β†’ Install from storage.
  3. Select a module (such as FakeGApps) and confirm the installation.
  4. Reset the device.
  5. For FakeGApps, set up the fictitious coordinates in /sdcard/FakeGApps/config.json (example: {"latitude": 55.7558, "longitude": 37.6173, "enable": true }).

The advantage of this method is that the geolocation will be disabled at the system level, and even MIUI updates will not be able to restore it.

  • Disruption of Google Pay, Netflix and other SafetyNet validation apps
  • Potential problems with OTA-update MIUI.
  • Manual update of modules after Magisk update.

πŸ’‘

Magisk modules are the only way to completely block Google geolocation without performance consequences.However, they require an unlocked bootloader and can void Xiaomi's warranty.

What to do if settings are reset after the MIUI update?

One of the most common problems with Xiaomi is resetting privacy settings after the MIUI update, which is because Google and MIUI synchronize security settings with servers.

Solutions:

  • πŸ”„ Turn off automatic synchronization: go to Settings β†’ Accounts. β†’ Google β†’ Sync your account and turn off the "Location" option".
  • πŸ“± Use Tasker to automatically apply settings: create a task that executes commands after a reboot: am broadcast -a android.location.GPS_ENABLED_CHANGE --ez enabled false settings put global location_mode 0
  • πŸ”’ Block Google Play Services Updates: In the Google Play Store, find Google Play Services, click on three dots and uncheck the box with Auto Update".
  • πŸ›‘οΈ Install a firewall app: NetGuard or AFWall+ (requires root to block Google Play Services.

If the problem is repeated, consider turning it off. OTA-update ADB:

adb shell pm disable-user --user 0 com.miui.ota

But remember: this will deprive you of important security patches for MIUI.

FAQ: Frequent questions about disabling geolocation on Xiaomi

Can geolocation be disabled only for specific applications without affecting the system?
Yes, but that doesn't guarantee full lockdown. For example, even if you deny location access to Google Maps, Google Play Services can still transfer data through background processes. For reliability, combine application-level restrictions (Settings β†’ Applications β†’ Permits) and system methods (for example, ADB or Magisk).
Why does the battery discharge faster after geolocation is turned off?
Paradoxically, some Xiaomi users are facing increased battery consumption after geolocation is turned off, and the reason is the constant attempts of Google Play Services to restore access to GPS or Wi-Fi. The solution is either to completely block the service through Magisk, or use Greenify to force the "freeze" of background processes.
Will Mi Cloud and Find Device work without geolocation?
The Find Device feature in the Mi Cloud requires access to location. ADB (location_mode 0) Or Magisk, it's going to stop working, and the alternative is to use third-party services like Prey Anti Theft that work through the Internet. IP-address.
How to check if the geolocation is turned off?
Check the geolocation status with: Teams ADB: adb shell settings get global location_mode (should be returned 0). Annexes GPS Status: It will show if the satellites are active GPS. Google Location History: If the data is not updated, the lock is triggered. Traffic Log: Use NetGuard to see if Google Play Services is transferring data to Google servers.
Can geolocation be disabled without root rights?
Yes, but with limitations. Without root, you can: Disable geolocation in Android settings and MIUI (method 1 and 2). Remove Google Play Services Updates (Method) 4). Use it. ADB team-wise location_mode 0. Without root, however, Google will be able to restore access after updates.