Stoner Physics

Android · mock location

Fake GPS on Android without Developer Options or mock location (2026)

Not on an unrooted phone. Android only accepts a fake location from the app chosen under Select mock location app in Developer Options. What works without root is to turn the setting on once and then hide it: GPS Spoofer’s ADB stealth hides Developer Options and the mock setting, and Hide from Apps or Container mode hides the mock flag on each location.

Why people want to skip Developer Options

Because apps check for it. An app can catch a fake location three ways, and two of them have nothing to do with the coordinates:

What the app checksHowWhat hides it (GPS Spoofer Full, no root)
Developer Options is ondevelopment_settings_enabled system settingADB stealth
The old mock-location switchmock_location system setting. Android’s reference marks it deprecated since Android 6 (“This settings is not used anymore”), but apps written for older phones can still read itADB stealth keeps it at 0
This location is fakeLocation.isMock() (Android 12+), isFromMockProvider(), the location’s extrasHide from Apps or Container mode

So the goal behind “without Developer Options” is really “without apps seeing Developer Options.” That part is solvable without root.

Why it cannot be skipped without root

On Android 6 and later, an ordinary app can only inject locations through Android’s test-provider system, and Android only allows that for the one app selected as the mock location app. The call is LocationManager.addTestProvider(), and Android’s reference says it throws a SecurityException unless the permission android:mock_location is allowed for the calling app (developer.android.com, LocationManager). Select mock location app is the switch that allows it, and it lives inside Developer Options. An unrooted app has no way in that avoids Developer Options: the one other way to flip that permission, an adb command, needs it too (below).

Guides and APKs that promise “fake GPS with no developer options, no root” either still use the mock setting or change only the IP address (a VPN), which apps that read GPS ignore (why a VPN does not move your GPS).

With root, LSPosed or Xposed modules can replace the location inside an app’s own process, bypassing the mock system. GPS Setter is one: its GitHub page describes it as an Xposed module that sets the location you want without mock location, and its README lists a rooted device and an Xposed framework as requirements (GitHub, read 18 November 2026). Root means unlocking the bootloader, which on Samsung trips Knox permanently and can fail Play Integrity’s device check.

Can you switch Developer Options off again afterwards?

No. In Android’s own Settings app, switching Developer Options off also clears the mock location app. The code that runs when the switch goes off (onDeveloperOptionsDisabled in the Settings app’s MockLocationAppPreferenceController) takes the mock-location permission away from every app that holds it (Android Open Source Project, read 18 November 2026). GPS Spoofer then shows “Mock location lost. Re-enable in Developer Options.” and stops.

So the setting stays on for as long as you spoof. What you can change is whether other apps can see it.

How apps see that Developer Options is on

They read the system setting development_settings_enabled. Android’s current reference says of it: “This will always return 0 for all third-party apps” (developer.android.com, Settings.Global, read 18 November 2026). That matches what we see on Pixel phones running Android 17 QPR1, where the setting reads 0 even with Developer Options on. The reference does not say which version started it.

On a phone where the setting still reads 1, ADB stealth is what hides it: after the one-time grant below, GPS Spoofer sets development_settings_enabled to 0 when a spoof starts and back to 1 when it stops. Neither behaviour touches the third check in the table. The mock flag travels with each location, and only Hide from Apps or Container mode deals with that.

The no-root setup, step by step

  1. Install GPS Spoofer and turn on Developer Options (Settings → About phone → tap Build number seven times; where Build number is on your phone).
  2. Under Select mock location app, choose GPS Spoofer. Pick a location and press Spoof.
  3. One time, from a computer, run:
    adb shell pm grant com.gpspoofer.app android.permission.WRITE_SECURE_SETTINGS
    This lets ADB stealth clear the mock_location and development_settings_enabled settings that apps read. It does not root the phone.
  4. For each app that checks the location flag, use Hide from Apps (patches that app) or Container mode (runs it in a container). Details: How to hide mock location on Android.

ADB stealth, Hide from Apps and Container mode are in the Full edition ($10, one time). The free Play edition changes your location but does not hide it. These are mechanisms, not a guarantee that a particular app cannot detect spoofing.

Where Build number is on your phone

Developer Options is hidden until you tap Build number seven times and see “You are now a developer!”. Android’s developer documentation lists where the option sits:

PhonePath to Build number
Google PixelSettings > About phone > Build number
Samsung Galaxy S8 and laterSettings > About phone > Software information > Build number
LG G6 and laterSettings > About phone > Software info > Build number
HTC U11 and laterSettings > About > Software information > More > Build number, or Settings > System > About phone > Software information > More > Build number
OnePlus 5T and laterSettings > About phone > Build number

Source: Configure on-device developer options, Table 1, Android developer documentation, read 18 November 2026. The same page describes the setting this is all for: “Select mock location app: Use this option to fake the GPS location of the device to test whether your app behaves the same in other locations.”

What about tools that run on a computer?

If a desktop program asks you to turn on USB debugging before it can change your phone’s location, it needs Developer Options too. USB debugging is a Developer Options setting: “Enable USB debugging in the device system settings under Developer options” (Android developer documentation, same page). That route moves the work to a computer; it does not remove the setting. With the phone alone: fake GPS without a PC.

The same goes for granting the mock-location permission from a computer instead of the menu. The command is adb shell appops set <package> android:mock_location allow (as given in the Hide Mock Location module’s README, read 18 November 2026), and it runs over adb, which connects only once USB debugging is on.

FAQ

Can you fake GPS on Android without Developer Options?
Not on an unrooted phone. Android only lets an app supply a fake location if it is chosen under Select mock location app in Developer Options. What you can do without root is turn the setting on once and then hide it: GPS Spoofer’s ADB stealth hides Developer Options and the mock location setting from apps, and its Hide from Apps or Container mode hides the mock flag on each location.
How to fake GPS on Android without mock location?
Without root, every fake location goes through Android’s mock location system, and Android flags it. With root, LSPosed or Xposed modules can replace the location inside an app without the mock system. Without root, the practical answer is to keep the mock location and hide it from the apps that check, which is what GPS Spoofer’s Full edition does.
How do apps know Developer Options is on?
They read the system setting development_settings_enabled. Android’s reference now says it always returns 0 for third-party apps, and on Pixel phones running Android 17 QPR1 that is what we see; on a phone where it still returns 1, ADB stealth sets it to 0 while you spoof. Separately, every location from a mock app carries a flag readable with Location.isMock() on Android 12 and later, or isFromMockProvider() on older versions.
Can I turn Developer Options off after choosing the mock location app?
No. Switching Developer Options off in Android’s Settings app takes the mock-location permission away from the app, so the fake location stops. Leave it on and hide it from other apps instead.
Does turning on Developer Options root my phone?
No. Developer Options is a screen in Android’s own Settings app that appears after you tap Build number seven times. Rooting means unlocking the bootloader and installing software such as Magisk, and none of the no-root steps on this page do that.
Is there a free fake GPS app that works without Developer Options?
Not on an unrooted phone: a free app goes through the same mock location setting. GPS Spoofer Lite on Google Play is free to try in 15-minute sessions and changes your location through that setting, but it does not hide it. Hiding the setting and the mock flag is in the Full edition, $10 once.

Related

Android and Google Play are trademarks of Google LLC. LSPosed and Xposed are trademarks of their respective owners. Stoner Physics is not affiliated with any of them.