Stoner Physics

Android · Developer options · mock location

Allow mock locations on Android: where the setting went and how to enable mock location now (2026)

Allow mock locations is the old name of the setting. Up to Android 5.1, Developer options had an on/off setting with that name. Android 6.0 replaced it in October 2015 with Select mock location app, and every Android version since, 16 and 17 included, has that row instead. To allow mock locations today, tap Build number seven times, open Developer options, tap Select mock location app and choose your fake GPS app: Android then takes a made-up location from that one app. Neither setting on your phone? The reasons are below.

What Allow mock locations was, and what replaced it

It was one setting for the whole phone. Android’s reference describes it as the setting that let mock locations be injected into the location service for testing, overriding what the network, the GPS or another location provider reported. It dates the setting to API level 3 (Android 1.5, April 2009) and marks it deprecated in API level 23 (Android 6.0), as no longer used. What changed is who may fake a location:

  • Android 5.1 and older: with the setting on, any app that held the mock location permission could supply a location. The location service checked both.
  • Android 6.0 and later: the location service checks one thing, whether the calling app holds the mock location app op, a per-app switch added in API level 23. Select mock location app turns it on for the app you choose and off for the one before, and Android’s Settings app no longer writes the old setting.

Allow mock locations by Android version

What Android’s own Settings app has in each release. Phone makers can put Developer options elsewhere or rename it (below).

AndroidThe settingWhere Android’s own Settings app has it
1.6 to 2.3Allow mock locations, a checkboxSettings > Applications > Development
4.0 and 4.1The sameSettings > Developer options, shown without any taps
4.2 to 5.1Allow mock locations: a checkbox, in 5.1 a switchSettings > Developer options, after seven taps on Build number
6.0 to 7.1Select mock location appSettings > Developer options, in the Debugging group
8.0 and 8.1The sameSettings > System > Developer options, Debugging group
9 to 11The sameSettings > System > Advanced > Developer options, Debugging group
12 to 17The sameSettings > System > Developer options; Location group, near the end

Sources, read 22 November 2026: Android API reference, Settings.Secure, AppOpsManager and Build.VERSION_CODES; Android developer documentation, Configure on-device developer options (for Android 12 to 15 it still gives the Advanced path; the Settings app’s System screen has had no Advanced section since 12); Android Open Source Project, the Settings app at 27 release tags from 1.6 to 17 (linked: 2.3, 5.1, 6.0, 12, 16), its 6.0 code, and the location service before and after the change.

How to allow mock locations on a phone today

  1. Check the Android version under Settings > About phone > Android version: the old setting exists only on 5.1 and older.
  2. Install a mock location app. The list in step 4 offers only apps that request the mock location permission.
  3. Tap Build number seven times, until You are now a developer! A phone with a screen lock asks for it.
  4. In Developer options, tap Select mock location app and pick the app. The row then reads Mock location app: and its name.
  5. Set a place in that app.

More: the picker and the whole setup. An instruction written for Android 5 or older translates like this:

The old guide saysOn Android 6.0 and later
Turn on Allow mock locationsTap Select mock location app and choose your app
Turn Allow mock locations offUnder Select mock location app, choose the first entry, Nothing or None. Press Stop in the fake GPS app first (why the order matters)

Sources, read 22 November 2026: Android Help, Check & update your Android version; the developer options page above; the Settings app’s Build number code, mock location code, app list and labels (1, 2), Android Open Source Project.

Allow mock locations on Samsung, Xiaomi, OPPO, OnePlus and Infinix

What differs between makers is where you tap. From each maker’s own support pages unless marked.

PhoneTap seven times onDeveloper options is then at
Samsung GalaxySettings > About phone > Software information > Build numberThe very bottom of Settings
Xiaomi, RedmiSettings > About phone > OS versionSettings > Additional settings > Developer options
OPPO, ColorOS 12 to 16Settings > About device > Version > Build numberSettings > System settings or Additional settings > Developer options (System & Update in its guide for ColorOS 14.1 to 15)
OnePlusBuild number; under Settings > About phone in Google’s tableSettings > System > Developer options (OnePlus guide, 2022)
InfinixSettings > About device > Build number (Carlcare, after-sales service for Infinix phones, 2021)Under System

On OPPO, also switch Developer options on inside its screen. OPPO’s guide has Select mock location app under Debugging; on our Galaxy S22+ with Android 16 it is under Location. Pixel, vivo and more: the picker page. Galaxy phones: fake GPS on Samsung.

Sources, read 22 November 2026: Samsung, Developer options on your Galaxy phone; Xiaomi, Xiaomi 14T Pro and REDMI 13C; OPPO, What Is Mock Location on OPPO Phones (1 July 2026) and How to Enable Developer Options (30 April 2026); OnePlus, Connect MacBook with OnePlus Phone and How to unlock bootloader (July 2022); Carlcare (14 January 2021); Google’s developer options table, linked above. The Galaxy S22+ is ours, seen 19 November 2026.

Missing, greyed out or not available: what each one means

What you seeWhyWhat to do
No Allow mock locations in Developer optionsAndroid 6.0 and later do not have it.Tap Select mock location app.
No Developer options in SettingsHidden until the seven taps. Optimizing the phone hides it again with Xiaomi’s Security app and switches it off with OPPO’s Phone Manager.Tap Build number seven times.
The rows in Developer options are greyed outThe switch at the top of the screen is off. Android’s documentation says most options are disabled then, and Android’s own Settings app also takes the mock location permission from the chosen app.Turn the switch on and choose the app again.
Developer options are not available for this user, or Build number does nothingAndroid’s own Settings app gives Developer options to the phone’s admin user, normally the owner, and an organization managing the phone can disallow debugging features. Samsung’s Knox reference documents such policies for mock location and for Developer options.Use the owner’s account, or ask the administrator.
Your app is not in the listOnly installed apps that request the mock location permission are listed.More causes
An app says mock locations are not allowedIt refuses mock locations: Android marks them, and an app can read the mark.For your real location, press Stop in the fake GPS app, then choose Nothing (how). The mark: hide mock location.
An app is chosen, but the location does not changeLocation is off, a real fix gets through, or the phone stopped the fake GPS app.What to check, in order

Sources, read 22 November 2026: the developer options page above; the Settings app’s Developer options screen and its rows, Android Open Source Project; UserManager, Android API reference; Samsung, Knox SDK reference; Xiaomi, developer options FAQ; the OPPO pages above.

What allowing mock locations does, and what it does not do

It names the one app that may hand Android a made-up location. Nothing moves until that app acts: it adds test providers, each taking the place of the phone’s provider of the same name, such as gps, and apps that read that provider get the place it sets.

  • It does not hide the fake. Android marks each location set this way as a mock location, and an app that receives it can read the mark (hiding the mark).
  • An app cannot allow itself. Requesting the mock location permission only puts it in the list; until you choose it, Android’s reference says, its calls to add or set a test location fail with a security exception.
  • It does not make a false location allowed. Spoofing can break the rules of the app you use it with; Pokémon GO’s are in the FAQ.

Sources, read 22 November 2026: LocationManager and Location, Android API reference; the mock location code and app list above.

GPS Spoofer and this setting

GPS Spoofer is our mock location app for Android 8.0 and newer, where the setting is Select mock location app. It requests the mock location permission and is listed as GPS Spoofer. Press Spoof Here before it is chosen and it shows a two-step setup with the buttons Open About Phone and Open Developer Options; in Lite 2.3 and later, come back with it chosen and the spoof starts.

Lite is free on Google Play in 15-minute sessions; a $0.99 day pass, a $1.99 week pass or Pro at $4.99 once lifts the limit. It uses Android’s mock location as it is, mark included. The Full edition, $10 once, adds Hide from Apps, Container mode, ADB stealth and the Detection scan for apps that check: mechanisms, not a guarantee that a particular app cannot detect spoofing. Neither needs root (how that works).

US prices; Google Play shows the price in your currency. The Full edition’s tools need extra setup, and whether they work depends on the app, its version and the phone.

FAQ

Why is Allow mock locations not showing in Developer options?
Android 6.0 and later do not have it. Select mock location app replaced it: in Android’s own Settings app, in the Debugging group on Android 6.0 to 11 and in the Location group from Android 12. If Developer options itself is missing, or not available for this user, see the table above.
How do I allow mock locations on Android 16?
Tap Build number seven times, open Developer options (Settings > System > Developer options in Android’s own Settings app), tap Select mock location app in the Location group and choose your app. More: fake GPS on Android 16.
How do I allow mock locations on a Samsung?
Tap Build number seven times under Settings > About phone > Software information. Developer options is then at the very bottom of Settings; in it, tap Select mock location app. More: fake GPS on Samsung.
Does a Galaxy Note 8 have Allow mock locations?
Samsung launched the Galaxy Note8 with Android 7.1.1, after Android had stopped using the old setting, so look for Select mock location app and follow the Samsung steps. We have not tested a Note. On another maker’s Note 8, check the Android version.
Why is Allow mock locations not working?
Since Android 6.0, Android does not use the old setting, so an instruction to switch it on no longer applies: an app has to be chosen under Select mock location app. If one is chosen and the location still does not change: fake GPS not working.
Can I enable mock location without Developer options (developer mode)?
Not on a phone that is not rooted: Select mock location app is inside Developer options. Why, and what can be hidden from other apps instead: fake GPS without Developer options.
Does allowing mock locations show a notification?
The setting does not: Android’s Settings code for it only writes the chosen app’s name under the row. A notification while a location is faked comes from the fake GPS app: Android shows one for a foreground service, and GPS Spoofer runs its spoof in one.
Can I allow mock locations for Pokémon GO?
The game objects. Its help center says a setting it still calls mock locations may be behind its Failed to detect location error and tells players to make sure Select mock location app is disabled. Its fairness policy counts GPS location spoofing as cheating, which can end in a permanent ban. More: error 12 and Pokémon GO on Android.
Can I allow mock locations for Microsoft Teams?
There is no switch per app: the setting names the app that supplies the location, not the apps that receive it. Microsoft’s support pages say Teams uses location for emergency calls and, where a manager has turned on location detection in Shifts, to record whether you clock in and out within 200 meters of the set place. A faked clock-in is a false record of where you were.

FAQ sources, read 22 November 2026: Samsung Newsroom, Galaxy Note8; Android developer documentation, Foreground services; Pokémon GO Help Center, GPS Troubleshooting Guide and Gameplay Fairness Policy; Microsoft Support, location sharing in Teams, Clock in and out with Shifts and Shifts settings.

Related

Android, Google Play and Pixel are trademarks of Google LLC. Samsung, Galaxy, Knox, Xiaomi, Redmi, OPPO, ColorOS, OnePlus, Infinix, Carlcare, Microsoft Teams and Pokémon GO are trademarks of their owners. Stoner Physics is not affiliated with any of them.