Xiaomiโs MIUI-based smartphones are known for flexible privacy settings, but sometimes this flexibility plays against the user. One of the common problems is that apps lose access to geolocation after rebooting, updating the system, or after a few days of use, which interferes with navigators, activity trackers, and even system services like Google Maps or Mi Fit.
The reason is MIUI's aggressive policy of managing background and power consumption, which automatically restricts location access to "battery optimization," even if you've manually authorized it before, and in this article, we'll look at all the ways to secure permanent access to geodata, from basic settings to hidden developer settings.
Important: the procedure may vary slightly depending on the version of MIUI (12-14) and the model of the smartphone (Redmi Note 12, POCO X5, Xiaomi 13T, etc.).
Why is Xiaomi blocking location access?
The MIUI system limits geolocation for three main reasons:
- ๐ Energy conservation: continuous GPS-The signal is using up the charge, so MIUI suspends background processes after 3-5 minutes without activity.
- ๐ก๏ธ Privacy: by default, applications are prohibited from accessing exact coordinates without explicit user permission.
- ๐ค Optimizing RAM: MIUI Closing โunnecessaryโ services unless they are included in the list of exceptions.
For example, Google Maps can work correctly, and Yandex.Navigator can lose a signal every 10 minutes, and this is not a bug, but a feature of MIUI: the system ranks applications by "importance" and blocks less popular ones, the solution is to manually assign priorities.
โ ๏ธ Attention: After resetting settings or updating MIUI Repeat the procedure after each major system update (for example, when switching from a new system to a new system). MIUI 13 on MIUI 14).
Step 1: Basic Location Resolution Settings
Start by checking the basic parameters:
- Open Settings โ Applications โ Application Management.
- Select the application you want (e.g. 2GIS or Waze).
- Go to Permits. โ Location.
- Set the switch to Always (not Only during use!).
- Activate the "Exact Location" option (if available).
For Android 12+ and MIUI 13/14, add the app to the battery optimization exceptions:
- ๐ฑ Settings โ Battery and productivity โ Optimizing the battery.
- ๐ In the search bar, enter the name of the application.
- โก Select "No restrictions".
Selected "Always" in location permissions
Included "Exact location"
Appendix added to battery exceptions
Rebooted smartphone to apply changes-->
If after these actions, access still disappears, proceed to the next step - set up autostart and background activity.
Step 2: Setup Auto Startup and Background Processes
MIUI blocks access to GPS if the app is not allowed to run in the background.
- Open Settings โ Applications โ Application Management.
- Select your target app (like Google Maps).
- Go to Permissions โ Autostart and turn on the option.
- Go back and activate Background Activity (or Background Work in older versions).
For MIUI 14, the path may be different:
Settings โ Applications โ Special Accesses โ AutorunAfter activating these options, the application will be able to:
- ๐ Get coordinates even when folded.
- ๐ Update data in the background (for example, for jogging tracking).
- ๐ Showing geofence notifications.
โ ๏ธ Note: some applications (e.g. SberBank Online) may conflict with geolocation settings due to internal security policies).
Google Maps
Yandex.Navigator.
2GIS
Waze
Other-->
Step 3: Turning off energy saving for GPS
MIUI Has hidden energy saving settings that affect work GPS-To turn them off:
- Go to Settings โ Battery and Performance โ Battery Mode.
- Select "Performance" (or "No Limits" in older versions).
- Open Settings โ Additional โ Special Opportunities.
- Activate "High Accuracy" in the Location section.
For models with Qualcomm Snapdragon (e.g. POCO F5 or Redmi K60) additionally:
Settings โ About Phone โ MIUI version (click 7 times to activate developer mode)
Settings โ Additional โ For developers โ Disable "Optimize MIUI for GPS"These actions are enforced to include GPS-module at maximum power, but can increase battery consumption by 5-10%.If autonomy is critical, use adaptive mode (see table below).
| Battery mode | GPS accuracy | Charge consumption | Suitable for |
|---|---|---|---|
| Productivity | โญโญโญโญโญ | High-pitched | Navigation, tracking |
| Balanced | โญโญโญโญ | Medium. | Everyday use |
| Savings | โญโญ | Low. | Standby regime |
| Adaptive | โญโญโญ | Variable | Automatic switching |
Step 4: Hidden Developer Settings for GPS
If standard methods don't work, use the developer mode. Activate it:
Settings โ About Phone โ MIUI version (click 7 times in a row)After activation, open:
Settings โ Additional โ For DevelopersFind and turn on:
- ๐ก "Keep it down. GPS "In the background" (or "Lock" GPS in background" in English-language firmware).
- ๐ "Not optimize GPS" (Disables energy saving for the module).
- ๐ ๏ธ "Debugging by USB" (required ADB-Teams if previous steps have not worked).
What to do if there is no item "Do not turn off GPS in the background"?
On models with a MediaTek processor (such as the Redmi Note 11), an additional command may be required to unlock the GPS:
adb shell settings put global gps_lock_enabled 1Step 5: Checking hardware constraints
If none of the methods worked, the problem may be:
- ๐ถ Weak signal GPS: In cities with tall buildings or underground parking lots, accuracy is falling.
- ๐ง Damaged. GPS-Module: Physical defects (e.g. after a fall) may disrupt antenna performance.
- ๐ฑ Unofficial firmware: custom ROM (For example, LineageOS sometimes breaks drivers. GPS.
For diagnosis:
- Install the GPS Status & Toolbox app from Google Play.
- Run the Satellites in Mind test.
- If the satellites are not detected for more than 5 minutes, the problem is hardware.
๐ก
To speed up your satellite search, turn on Plane Mode for 10 seconds before you travel, then turn it off, which will reset the GPS cache and speed up the location fixing.
If you suspect a hardware failure, contact the service center. For Xiaomi, with a valid warranty, repair of the GPS module is free (defect code: GPS-002).
Step 6: Alternative solutions
If the MIUI setting does not work, try:
- ๐ Resetting location settings: Settings โ Annexes โ Application management โ Three points (โฎ) โ Resetting permits
- ๐ฑ Use of external GPS-receiver (e.g. Garmin) GLO 2) via Bluetooth.
- ๐ Switching to GLONASS: Settings โ Location โ Regime. โ Set "Device Only" Then manually select "GPS + GLONASS" in the engineering menu (#4636##).
For corporate users: if restrictions are imposed MDM-policy (for example, in work phones), ask the administrator to unlock the parameter android.permission.ACCESS_BACKGROUND_LOCATION.
1. The resolution "Always" in the application settings.
2. an exception to battery optimization.
3. activate "Do not turn off GPS in the background" in developer mode.
This is 95% of the success on all Xiaomi models.