Modern users of smartphones Xiaomi, Redmi and POCO They often face the need to change their real location, which is required to test geo-dependent applications, play augmented reality games, or just to maintain privacy when using social networks. MIUI It is known for its aggressive security policy, which by default blocks the operation of location emulators.
The problem is not only installing third-party software, but also deep system integration of Google and Xiaomi services, which constantly check the integrity of GPS data. If you just download the first app you get from the store, the system will most likely ignore your virtual coordinates or give an error. Android requires special permissions, which are hidden in the menu for developers.
In this guide, we will not only examine the installation process, but also the specific settings of Xiaomi, without which the functionality will not work. You will learn how to choose the right point on the map, how to avoid constant notifications about the operation of the emulator and which applications are considered the most reliable at the moment. The key point is to disable MIUI Optimization in the hidden menu, which is often missed by beginners.
Selecting the right GPS emulation application
The first step is to choose software. There are hundreds of options in the Google Play Market, but not all of them work correctly on devices with a MIUI shell. Some applications require root rights, others work through ADB, and still others are able to bypass detection systems. For most users, applications that do not require superuser rights will be the best option.
One of the market leaders is Lexa's Fake GPS location, which is a minimalist interface and a high compatibility app that allows you to quickly set coordinates, plot routes and simulate movement at different speeds. It's important to understand that free versions can contain ads, but they often do not perform as well as paid counterparts.
Another popular option is GPS Emulator. This app offers more advanced features like creating lists of favorite seats and integrating with maps. If you need to emulate complex motion scenarios, for example, to test trackers or game mechanics, this option will be preferable.
- 📍 Fake GPS location – the best choice for beginners, a simple interface, minimum settings.
- 🗺️ GPS Emulator – Suitable for advanced users, supports routes and history.
- ⚙️ Fake GPS Go – lightweight application that has little effect on the performance of the system.
- 🛡️ Mock GPS with joystick – a specialized tool for gamers, emulating a joystick on the screen.
⚠️ Warning: Avoid installing modified versions of popular navigators from unverified sources. Such files may contain malicious code that steals your personal data or logins from accounts.
The choice should be based on the number of installations and recent user reviews, as detection algorithms are constantly updated by game and service developers, and what worked a month ago can already be blocked today.
Activation of the developer mode and debugging via USB
In order for Xiaomi to allow a sham location, you need to access hidden system settings. There is no standard interface for this, so you have to activate developer mode. This is a standard Android feature designed for engineers, but available to everyone.
The activation process starts with going to the main settings of the device. You need to find the About Phone section and quickly click on the MIUI version several times. It usually takes 7 to 10 clicks, after which the system will tell you that the developer mode is activated. If this does not happen, try changing the rhythm of the taps.
After activation, a new option will appear in the settings menu "Additional" or "Extended settings", where the desired section is hidden. USB» It's going to alert you to the risks, but for our purpose, it's safe if you don't connect your phone to other people's computers.
☑️ Checking the developer's settings
Importantly, some global firmware versions may require you to log in to a Mi Account with a linked phone number to confirm your actions, a security measure by Xiaomi aimed at preventing unauthorized access to the device in the event of theft.
Setup of an emulator application in the system
Once you install the selected application and activate the developer mode, you need to tell the system to use that particular program to determine the coordinates. Without this step, the phone will ignore the virtual data and use real satellite signals, a process called selecting the location emulation application.
In the Developer menu, scroll down to the location-related section, and you’ll find “Select mock location app” and click on it and select a previously installed emulator, such as Fake GPS location.
Then you have to give the application all the permissions you need. Go to the settings of the application itself through the Application Manager or long-click on the icon. Make sure that you allow access to the location (always or When using) and allow work in the background. Without this, MIUI can kill the emulation process to save energy.
| Parameter | Recommended value | Where to find out. |
|---|---|---|
| Access to GPS | Allowed always | Application settings → Permissions |
| Auto-start | Included. | Settings → Applications → Auto Launch |
| Battery savings | No restrictions. | Application settings → Battery |
| Display over windows | Allowed (for joystick) | Special. capabilities / Application settings |
💡
Set the battery priority for the emulator on "No Limits." MIUI's aggressive energy-saving system often shuts down GPS background processes, causing the coordinates to be reset to real ones.
Also, turn off battery optimization for a particular application. In battery settings, select Settings (cogs) → Apps → find your emulator → select No Limits. This will prevent a sudden shutdown of the service.
Solving problems with MIUI Optimization
One of the most common reasons why Fake GPS doesn't work on Xiaomi is the enabled MIUI Optimization feature, which changes the way permissions work and can block location swapping even with the right settings. To solve the problem, you need to access the hidden developer menu.
From the developer section, look for the option “Enable MIUI Optimization.” Click on it several times (usually 5-10 times) until the system requests the screen unlock password. Once you enter the password, the optimization will turn off and the phone will suggest a reboot. Attention: after disabling this feature, the interface of some system applications may change slightly, and notifications will come in the standard Android form, not in the style of MIUI.
If the option “Enable MIUI Optimization” is hidden or not pressed, try the following trick: find the option “Turn on logging” and switch it. Then a hidden button may appear below to disable optimization. In some versions of firmware (especially EU and Global Stable), this item may be missing or blocked.
What if MIUI Optimization is not turned off?
Once you have disabled the optimization and reboot the device, you need to recheck the emulator settings. Often the system resets the selection of the GPS swap application after you reboot, so make sure that your emulator is selected again in the "Select location emulation application" item.
Using ADB for Advanced Configuration
For users who do not want to disable system optimization or face locks at the firmware level, there is a method of customizing through the system. ADB (Android Debug Bridge. This way you can put commands directly into the system, bypassing some interface constraints. You'll need a computer (Windows, macOS or Linux) and a cable. USB.
First, you need to install the drivers for Xiaomi and the ADB platform on your computer. After connecting the smartphone with USB debugging enabled, open the command line on your PC. Check the connection with the adb device command. If the device is displayed with device status, you can proceed to setup.
To force the inclusion of the emulation mode, you can use the command:
adb shell settings put secure mock_location 1However, a more effective method is to use specialized scripts or helper applications that work through ADB, such as SetEdit (requires caution) or specialized Shizuku modules. The Shizuku application allows you to run processes with increased privileges without root rights, using ADB for initial activation.
- 🔌 Connect your smartphone to your PC with a good quality cable.
- 💻 Install. SDK Platform Tools on your computer.
- ✅ Allow debugging on USB on a pop-up window on the phone.
- 🚀 Use commands. ADB change the system flags.
⚠️ Attention: Working with ADB And changing system settings through the command line can cause the device to work in an unstable way.
This method is especially relevant for newer versions of HyperOS, where standard swapping methods can be blocked by stricter security policies. Using Shizuku in conjunction with applications like Mock Mock Locations often gives the best result.
Bypassing Detection in Games and Applications
Many modern applications, such as Pokémon GO, Telegram, bank clients or delivery services, have learned to detect emulator usage, not only check for a swap application, but also analyze GPS behavior, root rights and installed program lists.
First, use Hide App or Hide Icon in Xiaomi’s security settings. This doesn’t always help with detection, but hides the presence of suspicious software from surface viewing. Second, some emulators have a built-in “Hide mock app” feature that masks its presence for other programs.
If a simple application fails, you can use Magisk modules (unlocked bootloader and root required), modules like Mock Mock Locations or LSPosed settings completely hide the fact that emulation is being used, and they are embedded in the system process and replace the system's responses to application requests for debugging status.
Also, consider the human factor of movement: if you teleport from Moscow to Vladivostok in 5 seconds, your account is almost guaranteed to receive a ban or shadowban. Use the route function in emulators to simulate real travel time.
💡
For games with hard anti-cheat protection (Pokemon GO, Monopoly GO), conventional GPS swapping is often not enough. It requires a comprehensive approach: hiding root, disabling debugging at the time of the game, and using emulation concealment modules.