How to hide Mock Locations app in 2024
Published: 2024-03-15 11:16:07


In this article, I'll outline the steps to hide the Mock Locations app from other apps on your Android phone. Please note that these are general instructions, and there may be differences depending on your phone model.

This solution requires obtaining Root access and installing LSposed on your device. These actions can potentially brick your phone if something goes wrong. Therefore, if you choose to follow the steps outlined in this article, you do so at your own risk. Do not proceed if you are unsure of your ability to unbrick phones, as tampering with any part of your device/software may void your warranty.

To hide the <a href="https://play.google.com/store/apps/details?id=ru.gavrikov.mocklocations">Mock Locations app from Google Play</a> from other apps on your phone, follow these steps:
 
You need to gain Root access on your phone.

**Install the custom recovery:**
Install a custom recovery. You can find instructions specific to your phone model on the internet.

Here's an example video demonstrating how to install it: 
{% youtube 6w2VYb82lDE %}

**Install Magisk:**
In the next step you have to install Magisk and root your phone.

The official page of Magisk in GitHub - [https://github.com/topjohnwu/Magisk](https://github.com/topjohnwu/Magisk)

Here's a video example of how to install Magisk:
{% youtube m7BxGuasYUw %}

**Install LSPosed:**
Now, install LSposed on your device.
LSPosed GitHub - [https://github.com/LSPosed/LSPosed](https://github.com/LSPosed/LSPosed)

Follow this video tutorial for guidance on installing LSposed: 
{% youtube OsTDdo8FlHE %}

**Install Hide Mock Location module:**
The final step is to install the Hide Mock Location module.
[Hide Mock Location module on Xposed Repository](https://modules.lsposed.org/module/io.github.auag0.hidemocklocation/)
Download and install the latest version of the Hide Mock Location APK from the GitHub download page:
[GitHub download page](https://github.com/Xposed-Modules-Repo/io.github.auag0.hidemocklocation/releases)

Activate this module within LSPosed.

Follow this video tutorial for detailed instructions on installing and activating the LSposed module (note: the video demonstrates a different module, but the process is the same for Hide Mock Locations):
{% youtube OsTDdo8FlHE %}

**Test How It Works:**
Once everything is set up, test the functionality of hiding the mock location. The developer of the Hide Mock Location module has provided an app for testing:
MockLocationDetector GitHub page -[https://github.com/auag0/MockLocationDetector](https://github.com/auag0/MockLocationDetector)
Download and install the detector app from the GitHub download page:
[GitHub download page](https://github.com/auag0/MockLocationDetector/releases/tag/v1.0.0)

Open LSPosed app -> Modules -> Hide Mock Location 
turn on the "Enable module".  You'll see a list of installed apps on your device. Select the apps from which you want to hide the Mock Locations app's activity. In this example, choose the Mock Detector App.

Now, open the Mock Detector App and ensure it does not detect the use of Mock Locations.

By following these steps, you should be able to successfully hide the Mock Locations app from other apps on your Android device.