Stoner Physics

Android mock location

How to hide mock location from apps on Android

You have a fake GPS app. It sets your coordinates. But apps still catch you because Android marks every mock location with a flag any app can read. GPS Spoofer’s Full edition strips that flag before the target app sees it — no root, no Magisk, $10 once.

Can GPS spoofing be detected?

Yes, by default. On a phone, Android flags every location that comes from a mock location app, and any app can read that flag with Location.isMock(); apps can also see that Developer Options and a mock location app are switched on. That is how games, dating apps and tracking apps catch free fake-GPS apps. GPS Spoofer’s Full edition hides the flag from the apps you choose and can hide the settings, without root, which removes the checks most apps rely on (a mechanism, not a guarantee for every app).

Why apps detect your fake GPS

When you set a mock location app in Developer Options, Android does exactly what you ask: it overrides the GPS coordinates. But it also tags every location with a mock flag. Apps can check the following APIs and extras:

  • Location.isMock() — Android 12+ (API 31). Returns true for any location from a mock provider.
  • Location.isFromMockProvider() — older API, same thing. Returns true.
  • Location.getExtras() — the Bundle can contain a mockProvider key and an isMock boolean.

Any app on the phone can call these methods. Pokemon GO, Tinder, Bumble, Life360, Grindr, work check-in apps — they all can read the flag. A free fake-GPS app sets the right coordinates, but the flag gives it away.

Hiding mock location means intercepting these calls so they return false, and removing the mock entries from the extras bundle. That is what GPS Spoofer’s Full edition does.

What an app can read, by Android version

CheckWhere it appliesWhat Android’s reference says
Location.isMock()Android 12 and later, so Android 15 and 16 too“Added in API level 31”
Location.isFromMockProvider()Android 4.3 and later; deprecated, still answers“Added in API level 18”, “Deprecated in API level 31”, “Prefer isMock() instead”
mock_location settingAndroid 5.1 and earlier; later versions keep the setting but no longer use it“This constant was deprecated in API level 23. This settings is not used anymore.”
development_settings_enabled settingOlder versions; on Pixel phones running Android 17 QPR1 we see it read 0 with Developer Options on“This will always return 0 for all third-party apps.”

Source: Android API reference, Location, Settings.Secure and Settings.Global, read 18 November 2026. API level 18 is Android 4.3, 23 is Android 6.0 and 31 is Android 12.

On Android 15 and 16 an app reads the flag exactly as it does on Android 12, with isMock(), and that is the flag Hide from Apps and Container mode hide.

Two ways to hide the mock flag, plus a settings layer (no root)

1. Hide from Apps (LSPatch patching)

GPS Spoofer patches the target app’s APK using LSPatch. It embeds a module directly into the app that hooks isMock(), isFromMockProvider(), and getExtras() so they report the location as real. The hooks run inside the target app’s own process — no system-level framework needed.

How it works, step by step:

  1. Open GPS Spoofer, go to Hide from Apps.
  2. Tap the app you want to hide from. The list shows the apps installed on your phone, with Tinder, Bumble, Hinge, Pokemon GO, Life360 and Grindr at the top when you have them.
  3. GPS Spoofer extracts the app’s APK, patches it with the mock location hider module, and signs it with its own key.
  4. You uninstall the original app (required because the signature changed).
  5. You install the patched copy and log in again.

Tradeoff: Google Sign-In will not work in a patched app because Google checks the APK signature. Switch to a phone number, email or Facebook login before patching. Container mode does not patch the APK, but we have not tested Google Sign-In inside it.

2. Container mode

Runs the target app inside a container app on your phone. The container intercepts the location before the app sees it and hands it over without the mock flag. No patching, no APK modification.

How to use it:

  1. Open GPS Spoofer, scroll down to Container Mode in settings.
  2. Install the container app (one tap from GPS Spoofer).
  3. Open the container, install the target app inside it.
  4. Start spoofing in GPS Spoofer, then open the target app inside the container.

Tradeoff: The app’s data inside the container is separate from a normal install. You log in separately.

3. ADB stealth

A one-time setup from a computer. You connect your phone via USB, run one ADB command, and GPS Spoofer can then hide Developer Options and the mock location setting from apps that check for them.

The command:

adb shell pm grant com.gpspoofer.app android.permission.WRITE_SECURE_SETTINGS

This grants GPS Spoofer the WRITE_SECURE_SETTINGS permission, which lets it clear the mock location setting and hide Developer Options from other apps. It does not root your phone and only needs to be done once.

What it hides: The mock_location setting and the development_settings_enabled flag. Some apps check these settings directly to detect spoofing even without reading the location flag itself.

Check what apps can see

The Full edition has a Detection Scan. Start spoofing, then run it. It checks these on the phone and marks each as visible or hidden:

  • Location.isMock() on the current location
  • the mock_location setting, and whether it names GPS Spoofer
  • Developer Options (development_settings_enabled)
  • whether your network’s country matches the country of the spoofed spot; when it does not, the scan names the country to point a VPN at

The scan runs inside GPS Spoofer, so it shows what an unpatched app on the phone reads. An app you patched, or one inside the container, gets isMock() false from the hook while the scan’s first line can still say true. Use the scan for the settings and the network, and the target app itself for the flag.

Looking for the Hide Mock Location module (the APK)?

“Hide Mock Location” is also the name of a free Xposed module with its source on GitHub. Its README says it “Prevents detection of mock location” and “Supports Android 6–16”. You install its APK, enable it in an Xposed manager such as LSPosed and select the apps to hide from; to cover every app at once it recommends the scope System Framework and Settings Storage (auag0/HideMockLocation, read 18 November 2026).

The APK does nothing by itself. It needs an Xposed framework to load it, and LSPosed installs through Magisk: its install steps begin with Magisk v24 or later (LSPosed README). That means a rooted phone with an unlocked bootloader. If your phone is already rooted, that module is the free way to do this.

Without root there is no framework to load a module system-wide, so the hooks have to go inside each app that checks. That is what LSPatch does (“Rootless implementation of LSPosed framework, integrating Xposed API by inserting dex and so into the target APK”, LSPatch README), and it is what Hide from Apps does for you on the phone, with GPS Spoofer’s own module.

GPS Spoofer vs. root-based methods

GPS Spoofer FullMagisk + XposedMagisk + Zygisk moduleSystem app (root)
Root neededNoYesYesYes
Price$10 onceFree (if rooted)Free (if rooted)Free (if rooted)
Hides isMock()YesYesYesYes
Per-app or all appsPer app (patch/container); ADB hides system settings, not the mock flagAll appsAll appsAll apps
Play Integrity device checkUnaffected (phone not rooted)Depends on setupDepends on setupFails (modifies system)
Voids warrantyNoYes (unlocked bootloader)Yes (unlocked bootloader)Yes
Setup time5 minutesHours (root + framework)Hours (root + Magisk)Hours

Root-based methods require unlocking the bootloader, which trips Knox on Samsung phones (permanent) and can fail Play Integrity checks depending on Magisk’s hiding configuration. GPS Spoofer’s Full edition does not touch the bootloader or system partition.

If your phone is already rooted with Magisk and Zygisk, GPS Spoofer’s Full edition includes an optional Zygisk module you can install with one tap. It hides mock location from every app at the system level, no per-app patching needed.

Which method to use

  • Games (Pokemon GO) — use Hide from Apps. Your phone stays unrooted, so Play Integrity’s device check is unaffected. The patched game is re-signed, so Play Integrity’s app check reports it as not the Play Store copy.
  • Tracking apps (Life360) — Container mode keeps your normal install and needs no patching.
  • Dating apps (Tinder, Bumble, Hinge, Grindr) — Hide from Apps and Container mode are the two options for hiding the mock flag. Google Sign-In is not supported after patching and has not been tested inside Container mode.
  • Combined coverage — use ADB stealth to hide Developer Options, plus Hide from Apps or Container mode to hide the mock flag itself.

Screenshots

GPS Spoofer 3D satellite globe — spin the planet and tap to set your location

Spin the globe, search any city

Satellite view — tap a location and press Spoof Here

Tap anywhere, hit Spoof Here

Satellite and street map overlay with search

Satellite + street overlay

Active spoofing with joystick, wander mode and stop button

Live spoofing with joystick

The Play edition is free on Google Play, and its Pro unlock ($4.99 once) adds the joystick, routes and speed control. It does not hide mock location. For apps that check the flag, you need the Full edition ($10).

FAQ

Does this work on Android 14, 15, 16, and 17?
Yes. GPS Spoofer runs on Android 8 and up, including Android 17 QPR1 on Pixel phones.
Do I need root?
No. All three methods — Hide from Apps, Container mode, and ADB stealth — work without root. If your phone is rooted with Magisk and Zygisk, there is an optional module that hides mock location from all apps at once.
Does Google login work in patched apps?
No. Patching changes the APK signature. Google Sign-In checks that signature and rejects it. Switch to phone number, email, or another login method before patching. We have not tested Google Sign-In inside Container mode.
Does this pass Play Integrity?
Partly. None of the three methods roots the phone or unlocks the bootloader, so Play Integrity’s device check is unaffected. A patched app is re-signed, so Play Integrity’s app check reports UNRECOGNIZED_VERSION: “the certificate or package name does not match Google Play records” (Google’s Play Integrity docs). Whether an app acts on that verdict is up to the app.
What is the difference between Full and Play edition?
The Play edition (free on Google Play; Pro $4.99 once) spoofs your GPS coordinates but does not hide the mock flag. Apps that check isMock() will still see the fake. The Full edition ($10) hides the flag — that is what this page is about.
How is this different from using Xposed Framework?
Traditional Xposed requires a rooted phone with the Xposed Framework installed system-wide. GPS Spoofer uses LSPatch to embed the module directly into the target app’s APK, so it runs without root and without any system-level framework installed. The hooks are the same (intercepting isMock() and friends); the delivery method does not need root.
Can apps detect that they have been patched?
Patching changes the APK signature. An app could check its own signature and detect the change. In practice, most apps do not do this — but some might in the future. Container mode avoids this because it does not modify the app’s APK.
Is there a Hide Mock Location APK that works without root?
Not by itself. The Hide Mock Location APK is an Xposed module: it needs a framework such as LSPosed to load it, and LSPosed installs through Magisk on a rooted phone. Without root, the same kind of hook has to be patched into each app that checks, which is what Hide from Apps does.
How do I check that mock location is hidden?
Run the Detection Scan in the Full edition while spoofing. It shows whether the mock setting, Developer Options and your network’s country are visible to apps. The flag itself is hidden per app, so check that in the app you patched or put in the container.

GPS Spoofer — $10 once, no root, hides mock location

Per-app guides

Android, Google Play, Magisk, LSPosed, and Xposed are trademarks of their respective owners. Stoner Physics is not affiliated with or endorsed by any of them.