How to Collect and Use Multiple Sources of Geodata on Xiaomi: A Complete Guide

Why Xiaomi geodata can come from different sources and why it is necessary

Modern Xiaomi devices - from smartphones Redmi and POCO The Mi Band, which uses geolocation data to power maps, fitness trackers, weather widgets, and even advertising algorithms, but what few people know is that it can come from multiple independent sources simultaneously: the embedded system. MIUI, Google services, applications like Yandex.Maps or 2GIS, and from third-party gadgets (for example, trackers Mi Smart Band).

The problem is that these sources are often out of sync with each other, like your Xiaomi 13 Ultra smartphone can show one location in Google Maps, another in Settings. β†’ Additionally. β†’ Location, and the Mi Band 8 tracker is third, which leads to data confusion, quick battery discharge (duplicate requests). GPS) In this article, we will discuss how to combine, optimize and control geodata from different sources on Xiaomi devices.

This is especially important for users who:

  • πŸ”„ Use multiple mapping services at the same time (e.g. Google Maps for navigation and Yandex.Crack maps for traffic jams).
  • πŸ“± Connect to the smartphone wearable devices (Mi Band, Amazfit) with their own GPS-module.
  • πŸ”‹ Noticing abnormal battery consumption due to constant operation of geolocation.
  • πŸ› οΈ Facing errors in location determination (e.g., "jumping" coordinates).

The main sources of geodata on Xiaomi: who and why collects them

On Xiaomi devices, geodata can come from five key sources, each with its own characteristics and goals, and understanding how it works will help you to configure the system and avoid conflicts.

1. Built-in system MIUI (com.miui.location: uses data GPS, GLONASS, BeiDou and the Network Wi-Fi/This data is needed for system services (weather, hours, device search) and applications that request access through the Internet. MIUI, For example, if you use Mi Fit to track your jogs, that's the source that's going to be the main source.

2. Google Services (com.google.android.gms): even on Xiaomi without Google Mobile Services (GMS) (For example, on Chinese firmware, many applications pull data through Google Location. API. And this is for Google Maps, Waze, Uber, and other services. Importantly, Google doesn't just aggregate data from the data center. GPS, But also from the nearest Wi-Fi hotspots, which sometimes gives a more accurate position in the city.

3. Third-party applications: maps (Yandex.Maps, 2GIS, Osmand, fitness trackers (Strava, Nike Run Club), social networks (Instagram, TikTok for geotagging), each of them can use its own location algorithm, sometimes duplicating queries to the Internet. GPS-module.

4. Wearable devices: Xiaomi smart watches and bracelets (Mi Band, Watch) S3) own GPS-module (in models with support) GPS+GLONASS). They can record tracks independently of their smartphone and then sync them via Mi Fitness or Zepp Life.

5 Network operators: some mobile operators (e.g. MTS, Beeline) provide approximate location data via Cell-ID (cell identifier). GPS (like the subway).

SourceprecisionEnergy consumptionExamples of use
MIUI (GPS+Wi-Fi)Tall (5-10 m)Average.System widgets, Mi Fit, device search
Google LocationVery high (3-5 m)High.Google Maps, Waze, Uber
Third-party annexesDepends on the algorithm.Different.Yandex.Maps, Strava, Instagram
Wearable devicesMedium (10-20 m)Low (if any) GPS clockwise)Tracking jogging, cycling
Mobile operatorsLow (500 m - 2 km)MinimumEmergency calls, operator services

⚠️ Note: If your Xiaomi is active at the same time MIUI Location, Google Location and, for example, Yandex.Maps, smartphone will be simultaneously polling GPS-This can cause the processor to overheat and consume up to 30% of the extra battery per day.

πŸ“Š Which geodata source do you use most often?
Built-in system MIUI
Google Maps
Yandex.Maps./2GIS
Wearable devices (Mi Band, watch)
I'm not tracking location.

How to Check Which Geo Data Sources Are Active on Your Xiaomi

Before optimizing geolocation, you need to understand which services are requesting your location and how often, and there are a number of ways to do this, from system tools to third-party utilities.

Method 1: Viewing active requests in MIUI

Go to Settings. β†’ Confidentiality β†’ Permits β†’ Location. Here you'll see a list of applications that are allowed to access geodata. Notice the column "Last Use" -- if an application has recently requested a location but you haven't used it, that's a reason to think.

For example, if Instagram or TikTok regularly receive your coordinates, it could be due to targeted ads or geotags in story.

Method 2: Monitoring through "Battery and Performance"

Open the Settings. β†’ Battery and performance β†’ Battery use.Look for the list of Google Play Services or Services MIUI β€” If they consume more than 10% of the charge, active geolocation is most likely to blame. Also check individual applications: if Yandex.Maps eat 5% of the battery in the background, then they constantly update your location.

Method 3: Use ADB diagnostically

For advanced users: connect your smartphone to your PC and follow the command:

adb shell dumpsys location

This will show all active location providers (GPS, network, fusion provider, and the applications that use them:

Provider: gps, network, fused


Clients: com.google.android.gms, com.miui.location, com.yandex.maps

Method 4: Third-Party Applications for Analysis

  • πŸ“Š Battery Guru – shows what processes are consuming the battery, including geolocation.
  • πŸ” AppOps – allows you to track when and how often applications request a location.
  • πŸ›‘οΈ NetGuard – blocks background internet access and GPS for-use.

πŸ’‘

If you see unfamiliar applications in the list of active geolocation clients (for example, com.duapps.ad), this may be advertising. SDK, It's a data-gathering tool for targeted advertising, and it's best to disable or delete those apps.

How to combine geodata from different sources without conflict

The main problem when working with multiple sources of geodata is the duplication of requests to the GPS-For example, if you're using Google Maps and Yandex at the same time, both apps will independently poll satellites, leading to the same problem:

  • ⚑ Increased battery consumption (up to 20-30% per hour of active navigation).
  • πŸ“‰ Overheating of the processor (especially on budget models like Redmi 12).
  • πŸ“ Unstable operation (e.g., jumping coordinates due to data conflict).

This problem can be solved in three ways:

1. Use a "Fused Location Provider"

It’s an Android built-in mechanism that integrates data from all sources (GPS, Wi-Fi, network, to one optimized location to activate it:

  1. Make sure that in the settings β†’ Location All switches included: Accuracy (GPS)+Wi-Fi, Bluetooth Scanner (for BeiDou), Google Location Accuracy (if any) GMS).
  2. B Settings β†’ Annexes β†’ Permit management β†’ Autorun disable autorun for unnecessary mapping applications (leave only one basic, such as Google Maps).
  3. Install the app GPS Status & Toolbox and Settings menu β†’ Location Source Select Fused Provider.

2. prioritize sources in MIUI

In the firmware MIUI 14+ There's a hidden geodata priority setting to activate it:

  1. Turn on Developer Mode (7 times tap the MIUI version in Settings β†’ About Phone).
  2. Go to Settings. β†’ Additionally. β†’ For developers and find the Choice of the location provider.
  3. Select High Accuracy (GPS)+Wi-Fi+Network for maximum accuracy or Battery Saving (Wi-Fi)+Network) for saving charge.

3. Synchronize data from wearable devices

If you are using Mi Band or Xiaomi Watch with GPS, Set up sync so that the tracker transfers data directly to the main application (for example, Strava), rather than duplicate requests via your smartphone:

  1. In the Mi Fitness (Zepp Life) app, turn off the location sync option with your phone.
  2. In the tracker settings, select Mode GPS: Autonomous (if the device supports self-recording tracks).
  3. Export tracks from Mi Fitness to GPX-format and import them into the main mapping application.

β˜‘οΈ Optimizing geodata on Xiaomi

Done: 0 / 5

Problems with geodata on Xiaomi: causes and solutions

Even after setting up sources, Xiaomi users may face typical problems such as inaccurate coordinates, constant location requests, or fast battery discharge.

Problem 1: Geolocation is β€œjumping” or showing incorrect location

Reasons:

  • πŸ“΅ Weak signal. GPS (In the city, in the room, in bad weather).
  • πŸ”„ Data conflict between MIUI and Google, for example, MIUI Google gives coordinates over Wi-Fi, and Google gives coordinates on Wi-Fi. GPS).
  • πŸ“± Outdated Module Firmware GPS (It is important for devices older than 2 years).

Decisions:

  1. Update. AGPS-Data: Enter the command in the engineering menu (#3644633##) AGPS β†’ Reset.
  2. Turn off Wi-Fi scanning in location settings if you are in an open area (to avoid conflict with the location). GPS).
  3. Reset network settings: Settings β†’ SIM-maps and mobile networks β†’ Resetting network settings.

Problem 2: Battery is rapidly drained due to geolocation

Reasons:

  • πŸ”‹ Multiple applications are simultaneously surveyed GPS (For example, Google Maps. + Mi Fit + Yandex.Maps).
  • πŸ“‘ High accuracy (GPS) enabled+Wi-Fi+Network) unnecessarily.
  • πŸ•΅οΈβ€β™‚οΈ Background processes (e.g. Google Play Services) constantly update location for ads.

Decisions:

  • πŸ›‘ Turn off background geolocation for unnecessary applications in Settings β†’ Permits β†’ Location β†’ [Annex] β†’ Allow only during use.
  • πŸ”„ Switch to Battery Savings mode in Location Settings (only Wi-Fi and Network use).
  • πŸ“΅ Turn on sleep flight mode if you don't need constant geolocation.

Problem 3: Applications cannot locate (no signal error) GPS")

Reasons:

  • πŸ“‘ High-precision mode in settings is disabled.
  • πŸ”§ Configuration file damaged GPS (/etc/gps.conf).
  • πŸ“± Hardware malfunction of the antenna GPS (relevant after falls or repairs).

Decisions:

  1. Check if all switches are included in Settings β†’ Location.
  2. Reset the settings. GPS via the engineering menu (#3644633## β†’ AGPS β†’ Reset).
  3. If the problem persists, run the module. GPS via Fastboot (requires an unlocked bootloader).
What to do if a discharge AGPS helped?
If after discharge AGPS GPS It still doesn't work, try manually updating the satellite almanac. 1. GPS Status & Toolbox. 2 Go to Menu β†’ Manage A-GPS State β†’ Reset. 3. Then select Download (downloads fresh satellite data). 4. Reboot the device. If that doesn't work, it may be a chip that's damaged. GPS β€” Diagnostics are required at the service center.

⚠️ Note: On some Xiaomi devices (e.g, POCO F5 Redmi Note 12 after updating to MIUI 14 may be confused by the configuration GPS. If you notice that after the update, the geolocation began to work worse, try to roll back to the previous version of the firmware or wait for a patch from Xiaomi.

How to Export and Analyze Geodata with Xiaomi

If you’re actively using geolocation (e.g. for fitness, travel, or work), you may need to export and analyze the data collected. On Xiaomi devices, there are a number of ways to do this.

1.Export of tracks from MIUI Google

  • πŸ“± For System Data: Go to Settings β†’ Google β†’ Personal data β†’ Location chronology. You can export history to the KML or GPX-format.
  • 🌍 For Google Maps: Open Timeline in Google Maps, select a day and click Export β†’ GPX.
  • πŸƒ For Mi. Fit/Zepp Life: In the app, select a workout β†’ Exports β†’ GPX/TCX.

2. Data analysis with third-party tools

Exported files GPX or KML It can be used in specialized programs:

  • πŸ—ΊοΈ Google Earth Pro – to visualize routes to the 3D-map.
  • πŸ“Š GPS Visualizer – to plot speed, altitude and distance.
  • πŸ”οΈ Strava or Komoot – for analysing sports training.

3. Automation of data collection (for advanced users)

If you need to log geodata continuously (for example, to track movements), you can use:

  • πŸ€– Tasker + AutoLocation plugin – for recording coordinates on a schedule.
  • πŸ“² GPS Logger – an application that saves the track in the background.
  • πŸ’» Termux + Python script with gpsd library – for advanced logging.

An example of a Termux script that writes coordinates to a location.log file:

pkg install termux-api


termux-location -p gps -n 1 | grep -oP '"longitude":\K[^,]+' > long.txt




termux-location -p gps -n 1 | grep -oP '"latitude":\K[^,]+' > lat.txt




paste long.txt lat.txt > location.log

πŸ’‘

Exported geodata may contain sensitive information (such as home address or travel routes) before transferring files. GPX/KML Remove time stamps or use tools such as GPS Babel for data anonymization.

Security and privacy: how to protect your geodata on Xiaomi

Geolocation data is one of the most sensitive types of information, as it allows you to track your movements, habits and even where you live. Xiaomi devices have several hidden mechanisms for collecting geodata that users often do not know about.

1. What Xiaomi collects by default

Even if you have not given explicit consent, MIUI The following data can be sent to Xiaomi servers:

  • πŸ“ Approximate location (by mobile towers and Wi-Fi) for analytics and targeted advertising.
  • 🏠 Home and work address (if you have specified them in Mi Account or Mi Fit).
  • 🚢 Routes of travel (if enabled, Improve location accuracy in settings).

2. How to disable geodata collection

To minimize the transmission of information, follow the following steps:

  1. Go to Settings. β†’ Confidentiality β†’ Special permits β†’ Access location and disable it for all unnecessary applications.
  2. B Settings β†’ Accounts. β†’ Mi Account β†’ Synchronization disable Location and Fitness Data.
  3. B Settings β†’ Additionally. β†’ Confidentiality β†’ Advertising disable Personalized Ads and reset Advertising Identifier.
  4. Delete Location History in Google Maps (Chronology) β†’ Settings β†’ Delete the whole story).

3. Alternative firmware for full control

If you are critically important to privacy, consider installing custom firmware without Xiaomi and Google services:

  • πŸ“± LineageOS – firmware without pre-installed tracking services.
  • πŸ›‘οΈ GrapheneOS – Focused on security and minimal data collection.
  • πŸ”’ CalyxOS – Includes built-in tools to block trackers.

4. How to check what data has already been collected

You can request an archive of your data from Xiaomi and Google:

  • πŸ“„ For Xiaomi: go to account.xiaomi.com β†’ Personal data β†’ Request the archive.
  • πŸ“„ For Google: takeout.google.com β†’ Select Locations and Google Maps Timeline.

⚠️ Attention: On devices with MIUI For the Chinese market (without Google Mobile Services), location data can be transferred directly to Baidu and other Chinese services. If you bought a smartphone in China or on AliExpress without global firmware, it is recommended to reflash it to the international version (MIUI Global).

FAQ: Frequent questions about geodata on Xiaomi

πŸ”Ή Can you completely disable geolocation on Xiaomi, but leave the maps work?
Yes, but with reservations. You can disable Location in the settings, but then: Google Maps and Yandex.Maps will only work in browsing mode (no navigation). Some features (such as finding nearby cafes or traffic jams) will become unavailable. Wearable devices (Mi Band) will not be able to record routes. Alternative: enable geolocation for only one application (such as Google Maps) in the permissions settings.
πŸ”Ή Why Mi Band shows a different route than a smartphone?
This is because the Mi Band uses its own band. GPS-Module (if it is in the model) that is less accurate than in the smartphone. Tracker can determine the location less often (for example, once every 5 seconds instead of 1 second on the phone). Data synchronized with a delay (sometimes up to 5-10 minutes). Solution: in the Mi Fitness settings, select Priority: Smartphone data (if supported by your tracker model).
πŸ”Ή How to reduce battery consumption from geolocation on Xiaomi?
Try the following methods: Switch to Battery Savings mode in Location Settings (only uses Wi-Fi and Network). Disable background geolocation for unnecessary applications in Settings β†’ Permits β†’ Location. Use Tasker to automatically shut down GPS, If you're in the city, turn it off. GPS And leave only Wi-Fi. + Mobile network – accuracy will be slightly lower, but the battery will last longer.