Why Xiaomi geolocation works differently than other smartphones
Xiaomi smartphones use MIUI, a unique firmware that overlays its features on geolocation services. Unlike pure Android, it has additional privacy settings, battery optimizations, and even hidden features for precise positioning, which means that standard instructions for Samsung or Google Pixel may not work โ or work correctly.
For example, many users experience GPS detecting a latency location or showing incorrect coordinates, due to aggressive MIUI background optimization, which turns off geodata to save charge. Some models (such as the Poco F5 or Redmi Note 12 Pro+) have a separate high-precision positioning switch that is turned off by default.
In this article, we will look at all the available geolocation options on Xiaomi, including hidden MIUI settings, commands for engineering menus and circumventing the limitations of Chinese firmware versions. Particular attention will be paid to models with Qualcomm Snapdragon and MediaTek chipsets, which have different GPS algorithms.
Method 1: Standard Android settings (Google Location Services)
The most obvious, but not always the most effective, method is to use Google Locationโs built-in services, which combine data with GPS, Wi-Fi, mobile towers, and sensors for maximum accuracy, but at Xiaomi, the service often conflicts with MIUI optimizations.
To enable geolocation through Google:
- Open Settings โ Privacy โ Permissions โ Geodata.
- Activate the "Geodata Accuracy" switch (in some versions - "Improving Accuracy").
- Turn on the option of โWi-Fi and Bluetooth Scanningโ (even if they are turned off).
- Return to Settings โ Applications โ Application Management โ Google Play Services and give all permissions, including access to the โAlwaysโ geodata.
โ ๏ธ Note: On Chinese versions of the firmware (MIUI China) may not have the "Geodata accuracy" clause. MIUI (section).
Activated geodata switch in settings
Wi-Fi/Bluetooth scanning enabled
Google Play Services has a "Always" permission
Resetting the Google Play Services cache (Settings) โ Annexes โ Warehouse โ Clear the cache)-->
Method 2: Hidden MIUI settings for accurate GPS
MIUI hides several important parameters that directly affect GPS, which can be accessed through engineering menus or special codes, especially for Redmi and Poco models with MediaTek chipsets (for example, the Helio G96 or Dimensity 9000), where GPS is often โglutchedโ due to the wrong AGPS settings.
Instructions for activating hidden functions:
- Open the Phone app and enter the code: ##4636## Some models (e.g. Xiaomi 13 Ultra) may require a code: ##1472365###
- In the menu that opens, select โPhone Informationโ (or โTestingโ for MediaTek).
- Scroll down to the "GPS" block and press "Start Fix".
- Wait until the coordinates appear (may take up to 5 minutes). If the data does not appear, go to "AGPS" and press "Reset", then "Update".
For Qualcomm Snapdragon chipsets (such as the Snapdragon 8 Gen 2 in Xiaomi 14), use an alternative code:
##36446337##In the EPO menu that opens, click Download to update the GPS auxiliary system data.
What to do if the engineering menu is not opened?
| Chipset | Engineering menu code | Features of GPS |
|---|---|---|
| MediaTek (Helio, Dimensity) | ##36446337## | Requires manual AGPS updates via EPO, often losing signal indoors. |
| Qualcomm Snapdragon | ##1472365## | It supports Dual Frequency GNSS (L1+L5), more precisely in urban areas. |
| Google Tensor (not used in Xiaomi) | โ | For comparison, it uses Googleโs own algorithms. |
Method 3: GPS diagnostic applications (GPS Status, GNSS Viewer)
If standard methods fail, you should use specialized utilities that not only show the current coordinates, but also help diagnose problems with the condition. GPS-Best Options for Xiaomi:
- ๐ GPS Status & Toolbox - shows the number of satellites visible, signal strength and accuracy. MIUI 12-14.
- ๐ฐ๏ธ GNSS Viewer โ displays data from all navigation systems (GPS, GLONASS, BeiDou, Galileo. Useful for Snapdragon chipsets 8xx.
- ๐ GPSTest โ Tests the time of first fixation (TTFF) and signal stability. Recommended for Poco F4 GT and other game models.
- ๐ ๏ธ Mi Toolkit โ Xiaomiโs proprietary application for iron diagnostics, including GPS (Available only on global firmware).
How to use GPS Status:
- Install the app from Google Play.
- Run it and wait until the top of the screen says "GPS fixed" (can take up to 10 minutes).
- If the satellites are not located, press Clear AGPS, then Download AGPS.
- To speed up your search, go to an open area (balcony or street).
๐ก
If GPS Status shows 0 satellites for more than 15 minutes, check the device's antenna. On Xiaomi 12T Pro and Redmi K50 Ultra, it is located at the top of the case - do not cover it with your hand or cover.
โ ๏ธ Note: On the Chinese versions MIUI (China ROM) Some Diagnostic Applications GPS They can be blocked by the system. ADB-teams (see section 5).
Method 4: Geolocation over mobile network and Wi-Fi (without GPS)
If GPS-The module is not working or you are in a room where the satellite signal is weak, you can determine the location by the satellite:
- ๐ก Cellular towers (accuracy) ~500โ2,000 meters).
- ๐ถ Wi-Fi networks (accuracy) ~20 to 100 meters if the network is in Google).
- ๐ IP-address (accuracy) ~5โ50 km, depending on the provider).
To include a definition of networks:
- Go to Settings โ Privacy โ Geodata โ Geodata mode.
- Select โHigh Accuracyโ (using GPS + Wi-Fi + mobile networks) or โSaving Chargeโ (networks only).
- Enable "Scanning is always available" (in some versions of MIUI this item is hidden - see section 2).
To verify accuracy:
- Open Google Maps.
- Click on the blue dot (your location) and select "Share geolocation".
- Compare the coordinates shown to the actual location. If the divergence is more than 50 meters, try updating the AGPS data (see section 2).
Satellite GPS
Mobile networks + Wi-Fi
Apps like Google Maps
Special utility (GPS Status, etc.)
I don't use geolocation.-->
Method 5: ADB-command GPS
If all of the above methods fail, the last option is to use ADB (Android Debug Bridge).
- ๐ Geolocation blocked by politicians MIUI (For example, on work phones).
- ๐ GPS Resetting constantly after resetting.
- ๐ ๏ธ You need to manually set the servers. AGPS (relevant to MediaTek).
Instructions for using ADB:
- Install. ADB-Drivers on PC and enable "Debugging by" USB" on the phone (Settings) โ The phone. โ Version. MIUI โ Press 7 times, then return to Settings โ Additionally. โ For developers).
- Connect your phone to your PC and execute the command to check the connection: adb devices
- Include forced use GPS (Even if it is disabled in settings: adb shell settings put global location_mode 3 where 3 โ High accuracyโ mode" (GPS + network).
- To reset your GPS cache, use: adb shell pm clear com.google.android.gms Attention: This will delete Google Play Services data, including saved Wi-Fi passwords!
For MediaTek chipsets, you can manually specify the AGPS server:
adb shell setprop gps.agps.server http://agps.mtk.com/agps๐ก
ADB-The wrong parameters can cause the geolocation system to fail.
Frequent geolocation issues on Xiaomi and their solutions
Even after you set up your GPS correctly, Xiaomi can still have errors, and here are the most common ones and how to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| GPS does not find satellites for more than 10 minutes | Outdated AGPS data or module failure | Update your AGPS through the Engineering Menu or GPS Status app |
| The coordinates are โjumpingโ or showing the wrong place. | The conflict between Google Location and MIUI Location | Turn off "Geolocation Services" in Settings โ Applications โ Application Management โ System |
| Geolocation works only with mobile internet | Wi-Fi scanning for geodata disabled | Enable "Scanning is always available" in geodata settings |
| Applications do not see geolocation (for example, Yandex.Navigator) | Restrictions on permission for a particular application | Enter โAlwaysโ in Settings โ Privacy โ Permits โ Geodata |
โ ๏ธ Note: On Xiaomi models with infrared port (e.g. Redmi Note 11 Pro)+) There may be a conflict between IR-sensor GPS-If geolocation is lost when using the remote, turn off the IR port in Settings โ Connections and sharing โ Infrared port.