How to Enable Allow Mock Locations on Xiaomi: A Complete Guide to Error Solutions

Allow Mock Locations is a hidden Android feature that allows apps to replace the deviceโ€™s real location. POCO This option is hidden deeper than other manufacturers because of security policy. MIUI. But why would you need it at all?

Basic use cases: 1. Test geo-dependent applications (e.g. maps, navigators or taxi services) without physical movement. 2. Bypass regional restrictions in games such as Pokรฉmon GO or streaming services (although this may violate their rules). 3. Software development where emulation is required GPS-Privacy: Hiding the Real Location from Individual Applications.

It is important to understand that enabling this feature on Xiaomi requires unlocking the bootloader and developer rights, which automatically deprives the device of an official warranty, and some applications (for example, banking or government services) can block access if fictitious coordinates are detected.

If your goal is simply to change location in one program (like a game), consider alternatives:

โœ… Use of the VPN Changes in the region (does not affect the GPS, but it works IP-dependent services).

โœ… Spoofer applications without root rights (e.g., Fake) GPS Location by Lexa that only works on individual versions MIUI.

๐Ÿ“Š Why do you need fictitious coordinates?
Application testing
Bypassing regional lockdowns
Development of software
Privacy
Other

Device preparation: unlocking the bootloader and developer rights

Before you turn on Allow Mock Locations, you need to follow two mandatory steps: unlock the bootloader and activate the developer mode. MIUI.

Step 1: Unlock the bootloader (Bootloader Unlock)

  • ๐Ÿ”“ Create a Mi Account and connect your device to it (in Settings) โ†’ Xiaomi account).
  • ๐Ÿ“ฑ Go to the site. en.miui.com/unlock Download the Mi Unlock Tool.
  • โณ Connect your phone in Fastboot mode (clip the power supply) + Volume down) and follow the program instructions.Please note: unlocking takes up to 72 hours (Xiaomi check).
  • โš ๏ธ After unlocking all data on the phone will be erased!

Step 2: Activate the Developer Mode

  1. Open the Settings. โ†’ The phone.
  2. Tap 7 times on the MIUI version (you will be notified "You became a developer").
  3. Go back to the basic settings and find a new section for developers.

โš ๏ธ Note: Some Xiaomi models (e.g. Redmi Note 12 Pro)+ Xiaomi 13T) after unlocking the bootloader, you may need to additionally link the account to Settings โ†’ Additionally. โ†’ Without it, Allow Mock Locations will remain inactive.

Created and confirmed by Mi Account|The device is tied to the account|Downloaded Mi Unlock Tool|Unlocked bootloader (Unlocked status in Fastboot)|Developer mode activated-->

How to find and how to turn on Allow Mock Locations

After preparation, you can start to turn on the function. The path to setup depends on the version. MIUI Below is a universal algorithm for most Xiaomi, Redmi and other smartphones. POCO (relevant MIUI 14/15).

Method 1. Through the developer menu (no root rights)

  1. Open the Settings. โ†’ For developers.
  2. Scroll down to the Debugging block.
  3. Find allow mock locations (allow mock locations).
  4. Select the application in the list that is allowed to be replaced GPS (Like Fake. GPS or Mock Locations App).
  5. Save the changes and restart the device.

Method 2. ADB (if the option is blocked)

If Allow Mock Locations is inactive or not, use the command. ADB:

adb shell settings put global development_settings_enabled 1


adb shell settings put global mock_location 1

After you do, restart your phone and check for the option.

Xiaomi modelThe Way to Allow Mock LocationsFeatures
Redmi Note 10/11/12Settings โ†’ For developers โ†’ Debugging โ†’ Fake locationsPreliminary unlocking of the loader is required
POCO F4/F5Settings โ†’ System โ†’ Additional โ†’ For DevelopersThe option may not be available on Chinese firmware
Xiaomi 13/14Settings โ†’ About the phone โ†’ MIUI version (7 taps) โ†’ For developersOn the global versions MIUI The option is hidden - you need ADB
Xiaomi Pad 6Settings โ†’ Tablet โ†’ For developersIt only works with apps that support Android 12.+

โš ๏ธ Attention: On devices with MIUI China ROM (Allow Mock Locations is often missing even after unlocking the bootloader, in which case you will need firmware for the global or European version.

๐Ÿ’ก

If after turning on Allow Mock Locations app for spoof GPS not working, check that the location settings have selected the mode Only device (GPS) โ€” Network coordinates may conflict with fictitious data.

Top.-5 emulation GPS Xiaomi (with support) MIUI)

Not all location swaps work well on Xiaomi, and we tested popular solutions and selected those that work well on the platform. MIUI 14/15 (including models with Snapdragon and MediaTek processors).

  • ๐Ÿ“ Fake GPS Location (Lexa) is a simple application without root rights, supports route saving. POCO, but may require a shutdown MIUI Optimization in the Developer Settings.
  • ๐ŸŽฎ Fake GPS GO Location Spoofer โ€“ Optimized for Games (Pokรฉmon GO, Ingress. It has a "joystick" function to simulate motion. 12T Requires you to disable the Hardware-backed keymaster.
  • ๐Ÿ—บ๏ธ Mock Locations (App by CodePrime) - supports geofences and automatic movement on specified coordinates. MIUI.
  • ๐Ÿ› ๏ธ GPS Emulator (for Root) for root-right devices, allows you to emulate speed, altitude and signal accuracy. Compatible with Magisk.
  • ๐Ÿ”„ Fake GPS Free is a lightweight application with a minimalist interface. POCO M5/M6, It may be a "Mock provider not set" error. MIUI 15.

How to choose the right application?

If you donโ€™t have root rights, start with Fake. GPS Location or Fake GPS GO. The second option is better for games because of the built-in joystick. If you want maximum accuracy (for example, for testing navigation), use it. GPS Emulator with root access.

Why do some apps not work on Xiaomi?
On Xiaomi devices with MIUI Additional security restrictions are in place: 1. MIUI Optimization is a background optimization that can block spoofers. โ†’ For developers โ†’ Turn off optimization MIUI. 2. Hardware-backed keymaster โ€“ hardware protection that prevents substitution GPS. Requires a shutdown through ADB: adb shell settings put global hidden_api_policy 1. 3. Restrictions of Chinese firmware - on China ROM Many developer functions are locked at the core level.

Common mistakes and their solutions

Even after setting up Allow Mock Locations correctly, Xiaomi users often run into problems.We've collected typical bugs and ways to fix them.

Error 1: "Mock provider not set" or "No mock provider app selected"

  • ๐Ÿ”น Make sure that in the settings โ†’ For developers โ†’ Fictitious locations selected app for spoof.
  • ๐Ÿ”น Reinstall the application for substitution GPS All permissions (including access to the location).
  • ๐Ÿ”น Check if the application is blocking the work MIUI Optimization (disable it in the developer settings).

Error 2: Coordinates are not changed or reset

  • ๐Ÿ“ต Turn off the exact location in the settings GPS (Only leave the device alone).
  • ๐Ÿ”„ Reboot the device after setting the coordinates.
  • ๐Ÿ› ๏ธ For games (Pokรฉmon GO, Harry Potter: Wizards Unite may need to disable Google Play Services or use Magisk Module to bypass protection.

Error 3: Spoof app crashes or doesn't open

  • ๐Ÿ”ง Update the app to the latest version (some spoofers require) MIUI 14+).
  • ๐Ÿ“ฆ Clear the cache and application data in Settings โ†’ Annexes.
  • ๐Ÿ›ก๏ธ Turn off Google Play Protect (may block swapping apps) GPS).
Mistake.Reason.Decision
"Unable to mock location"No rights to write in settings.dbPerform through ADB: adb shell pm grant [package] android.permission.ACCESS_MOCK_LOCATION
Coordinates are reset after the screen is blocked.Background optimization MIUI kill offAdd an app to battery exclusions: Settings โ†’ Battery โ†’ Optimizing the battery โ†’ All applications
App not visible on Allow Mock Locations listIncompatibility with the Android versionInstall APK Android 12/13 Or use App Cloner to create a copy

โš ๏ธ Attention: On devices with MIUI 15 and newer (e.g. Xiaomi 14 Ultra or Redmi) K70) Some errors may be due to the new HyperOS mechanism, which will require a rollback. MIUI 14 or waiting for updates from spoofers developers.

๐Ÿ’ก

If no solution works, check if the spoofer is blocked by an antivirus (e.g. Mi Security) or third-party modules in Magisk (e.g. SafetyNet Fix).

Safety and Risks: What to Know Before Use

Enabling Allow Mock Locations and using bogus coordinates carries several risks that are often overlooked.

1. Loss of guarantee

Unlocking the bootloader and activating the developer mode automatically voids Xiaomiโ€™s official warranty, both hardware and software failures, and if you need warranty repairs, youโ€™ll have to roll back all the changes.

2. Blocking accounts in games and services

Use of fictitious coordinates in games (e.g, Pokรฉmon GO, Dragon Quest Walk or geo-dependent services (e.g. Uber, Yandex Go) can lead to a:

  • ๐Ÿšซ Temporary account blocking (from 7 days to permanent ban).
  • ๐Ÿ” Requirement for proof of identity (e.g. screenshot with real location).
  • ๐Ÿ’ฐ Loss of virtual purchases or game progress.

Security vulnerabilities

Some spoofing applications GPS Excessive permissions (access to the SMS, These can include malware masquerading as legitimate tools:

  • ๐Ÿ” Reviews 4PDA or XDA Developers.
  • ๐Ÿ“Œ Last Update Date (apps without updates for more than a year often donโ€™t work on newer versions) MIUI).
  • ๐Ÿ›ก๏ธ Open source code (e.g. on GitHub).

4. Problems with banking applications

Many banks (Sberbank, Tinkoff, VTB) and public services (State Services, Tax.ru) block access when they detect:

  • ๐Ÿ“ฑ Unlocked loader.
  • ๐Ÿ”ง Developer mode enabled.
  • ๐Ÿ“ Fictitious coordinates.

If you need these services, turn off Allow Mock Locations and restart your device before using them.

๐Ÿ’ก

To minimize risks, create a separate user profile in Android (via Settings) โ†’ System system โ†’ Multiple users) and use the fictitious coordinates only in it, which isolates the main account from potential problems.

How to get around restrictions without Allow Mock Locations

If you can't turn on Allow Mock Locations (for example, on Chinese firmware or corporate devices), you can use alternative ways to swap locations. They're less versatile, but they work in most cases.

Method 1: Use of the VPN region-changing

VPN doesn't change GPS-coordinates, but allows you to bypass IP-It's a lock-in:

  • ๐ŸŒ Streaming services (Netflix, Disney)+, YouTube Premium).
  • ๐ŸŽฎ Some online games (e.g. Genshin Impact for server change).
  • ๐Ÿ›’ Online shopping with regional restrictions.

Recommended VPN: ProtonVPN (free rate), Windscribe (10 GB of traffic per month), NordVPN (paid, but with servers at 60 GB of traffic per month),+ country).

Method 2: Android Emulators on PC

If the goal is a location-based game, emulators (BlueStacks, LDPlayer, MuMu Player) with built-in swapping function can be used. GPS. Advantages:

  • ๐Ÿ–ฅ๏ธ No need to unlock the bootloader on the phone.
  • ๐ŸŽฏ More stable work (no conflicts with the MIUI).
  • โšก Multi-account support (you can run multiple copies of the game at the same time).

Disadvantage: Some games (for example, Pokรฉmon GO) Block accounts when an emulator is detected.

Method 3: Magisk modules to circumvent restrictions

If the device has Magisk (root rights), you can use modules for hidden substitution. GPS:

  • ๐Ÿ”ง FakeGApps โ€“ masks the presence of root rights and allows you to use fictitious coordinates in games.
  • ๐Ÿ“ก GPS Joystick by AppNinjas โ€“ Module for Magisk that bypasses SafetyNet checks.
  • ๐Ÿ›ก๏ธ Hide My Applist โ€“ hides information about the unlocked bootloader from applications.

Installation:

  1. Download the module in.zip format.
  2. Open Magisk Manager and select Modules โ†’ Install from storage.
  3. Reset the device.

โš ๏ธ Note: Using Magisk modules to bypass protection in games (e.g, Pokรฉmon GO) It can lead to a permanent ban on your account, even if you return the real coordinates.

FAQ: Frequent questions about Allow Mock Locations on Xiaomi

Can I turn on Allow Mock Locations without unlocking the bootloader?
On most Xiaomi devices, it is not. The option is locked at the system level and requires an unlocked bootloader.Exception: some models on Android One (e.g. Xiaomi Mi). A3), where the function is available without additional manipulation.
Why After Updating MIUI stopped working GPS?
Updates MIUI Often reset the developer settings and block uncertified applications. Solutions: Re-enable Allow Mock Locations in the settings. Update the spoof app to the latest version. If you use Magisk, update the modules (e.g. FakeGApps).
How to hide from applications that the developer mode is enabled?
Some apps (banks, games) block access if they detect an active developer mode. To hide it: Open Settings โ†’ For developers, find the option to turn off the developer flag (some firmware called Disable developer mode). Reboot the device. If you don't have the option, use Magisk - Hide My Applist.
Does Allow Mock Locations work on Xiaomi with HyperOS?
HyperOS (the new shell from Xiaomi, which debuted on Xiaomi 14) makes changes to the security system): โœ… Allow Mock Locations is available, but may require additional commands ADB. โš ๏ธ Some spoofers (e.g., Fake) GPS GO) Works unstable due to new permit management mechanism. ๐Ÿ”ง For full work may require a rollback MIUI 14 or waiting for updates from app developers.
Can you use fake coordinates in Google Maps?
Technically yes, but with reservations: ๐Ÿ—บ๏ธ Google Maps does not only determine location by location. GPS, But also from mobile towers and Wi-Fi. To make the spoof work, turn off the Precise Location in the settings. ๐Ÿš— Navigation functions (route construction) may not work correctly, as the speed and direction of movement are not always accurately emulated. โš ๏ธ Google can temporarily block access to maps if it detects a change of coordinates (especially if you teleport over long distances in a short time).