Why do you need fake coordinates on Xiaomi and when it is legal?
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.
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
- Open the Settings. โ The phone.
- Tap 7 times on the MIUI version (you will be notified "You became a developer").
- 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)
- Open the Settings. โ For developers.
- Scroll down to the Debugging block.
- Find allow mock locations (allow mock locations).
- Select the application in the list that is allowed to be replaced GPS (Like Fake. GPS or Mock Locations App).
- 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 1After you do, restart your phone and check for the option.
| Xiaomi model | The Way to Allow Mock Locations | Features |
|---|---|---|
| Redmi Note 10/11/12 | Settings โ For developers โ Debugging โ Fake locations | Preliminary unlocking of the loader is required |
| POCO F4/F5 | Settings โ System โ Additional โ For Developers | The option may not be available on Chinese firmware |
| Xiaomi 13/14 | Settings โ About the phone โ MIUI version (7 taps) โ For developers | On the global versions MIUI The option is hidden - you need ADB |
| Xiaomi Pad 6 | Settings โ Tablet โ For developers | It 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?
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.db | Perform through ADB: adb shell pm grant [package] android.permission.ACCESS_MOCK_LOCATION |
| Coordinates are reset after the screen is blocked. | Background optimization MIUI kill off | Add an app to battery exclusions: Settings โ Battery โ Optimizing the battery โ All applications |
| App not visible on Allow Mock Locations list | Incompatibility with the Android version | Install 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:
- Download the module in.zip format.
- Open Magisk Manager and select Modules โ Install from storage.
- 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.