DEV Community

Dvaoru
Dvaoru

Posted on

How to hide Mock Locations app in 2024

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 Mock Locations app from Google Play 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:

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

Here's a video example of how to install Magisk:

Install LSPosed:
Now, install LSposed on your device.
LSPosed GitHub - https://github.com/LSPosed/LSPosed

Follow this video tutorial for guidance on installing LSposed:

Install Hide Mock Location module:
The final step is to install the Hide Mock Location module.
Hide Mock Location module on Xposed Repository
Download and install the latest version of the Hide Mock Location APK from the GitHub download page:
GitHub download page

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):

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
Download and install the detector app from the GitHub download page:
GitHub download page

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.

Top comments (1)

Collapse
 
renckus_tech profile image
renckus tech

doesnt work with some delivery app