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).
| Android | The setting | Where Android’s own Settings app has it |
|---|---|---|
| 1.6 to 2.3 | Allow mock locations, a checkbox | Settings > Applications > Development |
| 4.0 and 4.1 | The same | Settings > Developer options, shown without any taps |
| 4.2 to 5.1 | Allow mock locations: a checkbox, in 5.1 a switch | Settings > Developer options, after seven taps on Build number |
| 6.0 to 7.1 | Select mock location app | Settings > Developer options, in the Debugging group |
| 8.0 and 8.1 | The same | Settings > System > Developer options, Debugging group |
| 9 to 11 | The same | Settings > System > Advanced > Developer options, Debugging group |
| 12 to 17 | The same | Settings > System > Developer options; Location group, near the end |
How to allow mock locations on a phone today
- Check the Android version under Settings > About phone > Android version: the old setting exists only on 5.1 and older.
- Install a mock location app. The list in step 4 offers only apps that request the mock location permission.
- Tap Build number seven times, until You are now a developer! A phone with a screen lock asks for it.
- In Developer options, tap Select mock location app and pick the app. The row then reads Mock location app: and its name.
- 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 says | On Android 6.0 and later |
|---|---|
| Turn on Allow mock locations | Tap Select mock location app and choose your app |
| Turn Allow mock locations off | Under Select mock location app, choose the first entry, Nothing or None. Press Stop in the fake GPS app first (why the order matters) |
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.
| Phone | Tap seven times on | Developer options is then at |
|---|---|---|
| Samsung Galaxy | Settings > About phone > Software information > Build number | The very bottom of Settings |
| Xiaomi, Redmi | Settings > About phone > OS version | Settings > Additional settings > Developer options |
| OPPO, ColorOS 12 to 16 | Settings > About device > Version > Build number | Settings > System settings or Additional settings > Developer options (System & Update in its guide for ColorOS 14.1 to 15) |
| OnePlus | Build number; under Settings > About phone in Google’s table | Settings > System > Developer options (OnePlus guide, 2022) |
| Infinix | Settings > 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.
Missing, greyed out or not available: what each one means
| What you see | Why | What to do |
|---|---|---|
| No Allow mock locations in Developer options | Android 6.0 and later do not have it. | Tap Select mock location app. |
| No Developer options in Settings | Hidden 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 out | The 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 nothing | Android’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 list | Only installed apps that request the mock location permission are listed. | More causes |
| An app says mock locations are not allowed | It 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 change | Location is off, a real fix gets through, or the phone stopped the fake GPS app. | What to check, in order |
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.
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).
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.
Related
- GPS Spoofer for Android — editions, price and download
- Select mock location app: where it is and how to set it
- How to turn off fake GPS on Android