Xiaomi’s modern smartphones have advanced navigation systems that are often used not only for maps, but also for testing applications, augmented reality games, or privacy protection. A location emulation feature known as Mock Location allows the user to swap real GPS coordinates for any other hand-picked coordinates, which opens up wide opportunities for developers testing geo-dependent software and ordinary users who want to hide their actual location.
In the MIUI shell and the new HyperOS, access to this feature is hidden in the developer menu, which requires several preliminary steps. Standard system settings do not allow you to simply “cheat” navigation modules, as this could disrupt the work of mission-critical services. However, once you activate the desired mode, you have complete control over how applications see your location.
This guide details the process of emulation activation, selecting the right software, and solving typical problems faced by Xiaomi device owners.It is important to understand that using this feature requires caution, as some banking applications or taxi services may not work properly if a coordinate change is detected.
What is Mock Location and Why You Need It
Mock Location was originally designed for Android app developers, and when creating navigators, activity trackers or games like Pokémon GO, programmers need to test their products in different geographic locations without physically moving around, it allows the system to translate fake coordinates from third-party software into applications instead of real-world satellite module data.
But the scope of the feature has long gone beyond professional development: ordinary users often resort to emulation of GPS to protect their privacy, hiding their real location from telemetry-collecting applications, and it is also a popular way to access geographically restricted content, or simply to tag photos in an interesting location without going there.
⚠️ Attention: Use of emulation GPS Bypassing blockings in online games or fraudulent actions with geolocation services may lead to the blocking of your account by the administration of these services.
It's worth noting that modern security systems like Google Play Protect can recognize coordinate swapping attempts. On Redmi and Poco devices with the latest Android versions, this can cause additional checks, so it's important not only to enable the feature, but also to properly prioritize location sources.
💡
Mock Location is an Android system tool that allows apps to get fake GPS coordinates, which is useful for testing and Privacy, but requires careful handling.
Activation of developer mode on MIUI and HyperOS
The first and mandatory step to access the emulation settings is to enable the hidden developer menu. Unlike standard Android, on Xiaomi smartphones, this process has its own features and requires confirmation through the Mi Account. Without this step, the menu item for selecting the emulator application will simply not be available.
To start, go to the basic smartphone settings and find the About Phone section, where you need to quickly click on the OS version seven times (e.g. MIUI 14 or HyperOS 1.0), after a few clicks, the counter will appear, and then the message that you became a developer, but the process does not end there.
- 📱 Open "Settings» → «Advanced settings» → «For developers».
- 🔐 Sign in to your Mi Account to confirm your rights (web required).
- 🔍 Find the option “Select mock location app).
- ⚙️ Turn on the "Switch on" switch USB-Debugging if you plan to use it ADB.
Some global firmware versions may have a slightly different path, so if you don't find the right options right away, search by settings by typing "developer" or "mock" and the system will tell you the partition you want.
Installation and configuration of applications for GPS emulation
Mock Location itself only provides a channel for data transmission, but does not generate coordinates. This requires installing a specialized application from the Google Play Store or a third-party source, the most popular and proven solutions are Fake GPS Location, GPS Emulator and similar utilities.
Once you have installed the selected application, you need to go back to the Developer menu. Find the App Select for a fixed location and click on it. In the list that opens, select the emulator you have installed. Now the system will redirect GPS requests to this application.
| Annex | Type of license | Difficulty setting up | Features |
|---|---|---|---|
| Fake GPS Location | Freemium | Low. | Simple interface, advertising. |
| GPS Emulator | Free of charge. | Medium | Route support, history |
| Mock GPS with Joystick | Paid. | Tall. | Perfect for games, joystick. |
| Fake GPS Go | Free of charge. | Low. | Lightweight, without unnecessary functions |
The emulator itself can often be set to speed, altitude and signal accuracy, and for realism, it is recommended not to maximize accuracy, since the real thing is the real thing. GPS-Xiaomi’s smartphone module also has errors, too perfect coordinates can raise suspicions among app-testing algorithms.
☑️ Checking the emulator setting
Solving Location Problems
A common problem with Xiaomi owners is that when Mock Location is enabled, navigation stops working correctly even in regular maps, due to a conflict between the real GPS module and the emulator that intercepts requests. If the emulator application is closed or not working correctly, other programs may receive zero coordinates.
To avoid this, you need to manage permissions correctly. Go to your application settings, find your GPS emulator and make sure it is allowed to locate Always, not just when you're using it, and turn off battery savings for it so that the system doesn't kill the process in the background.
⚠️ Note: If you have enabled Mock Location but have not launched the emulator app, other navigation services may show an error or static last known point.
Another cause of disruption may be time desynchronization: GPS protocols are time sensitive; make sure that the date and time settings are automatically determined over the network; if the phone time is even a minute different from the satellite time, the GPS module may refuse to give out coordinates.
What if the maps show the ocean?
Using ADB for Advanced Configuration
For users who do not have enough standard methods, it is possible to control Mock Location via the Android debugging bridge (ADB), which allows you to turn on and off the emulation mode without constantly logging into the developer menu, which is especially convenient when switching frequently.
To start the work, you need to include “Debugging on the USB» You need to put the device in the developer menu and connect it to the computer. ADB. Commands can be sent through the command line to change system security settings.
adb shell settings put secure mock_location 1This command will force the emulator selection option to be activated, but be careful: misuse ADB-On newer versions of Android, commands may differ, and some settings may be reset after a reboot.
- 💻 Connect your phone to your PC in "File Transfer" mode».
- 🔌 Allow debugging on the smartphone screen at the first connection.
- ⌨️ Enter a command in the terminal on the computer to check the status.
- 🔄 Restart the device to apply system changes.
Using ADB also allows you to automate the process through scripts if you need to change your location regularly for testing.It is a professional tool that gives you more control, but requires the user to understand the structure of Android commands.
Security and impact on the operation of the smartphone
Turning on Mock Location is itself safe for the hardware part of Xiaomi’s smartphone, a software feature that doesn’t put additional strain on the processor or battery if the emulator isn’t running, but that emulator apps can increase power consumption in the background.
From a security perspective, using untested GPS swapping apps carries risks: they have access to your real location (until the swapping) and can share your movements with third parties, and only choose popular open-source or high-profile applications.
Critical: Banking applications and enterprise customers (MDMs) may view Mock Location mode enabled as a sign of a device being hacked, resulting in a lockdown of access to features.
If you notice strange smartphone behavior, heating or quick discharge after installing the emulator, remove it and check the device with antivirus. In most cases, the problem is solved by cleaning the cache of Google Play services and updating maps.
💡
Before logging into the banking application, always disable Mock Location from the developer menu or remove the emulator app to avoid blocking access to the account.