Android Mock Location: Everything You Need to Know

Hector Barnes

Apr 5, 2022

6 min read

If you are an ardent fan of Pokémon GO or you love developing apps on Android, you’d probably know what we are going to talk about. Over the past years we’ve seen how mock location in Android has gained prominence, especially when people were obsessed with catching Pokémons using their mobile phones.

But if you’re wondering what mock location is, why to use it, how to set it up, is there a way to block it, or things like that, don’t worry, you’re in the right place.

That said, you might want to pay attention particularly to the last question if you are an IT enterprise admin or manager. Faking device location is never a healthy practice on company owned devices. But no worries! We’ll be seeing exactly that later on. So, let’s waste no time and jump right into it!

Explore Hexnode’s comprehensive Android management features

What is Android mock location?

Mock location is a feature in Android which allows users to fake their location with some custom location of their choice. This could help eradicate the risk of getting tracked down by possible hackers.

The mock location feature was introduced for Android developers to test location-based app features. This made it possible for them to test the features without having to move around the device from one location to another.

While this might limit the functionality of certain apps, in most cases apps don’t need your exact location. For instance, the weather app might only need an estimated idea about the city you live in.

Not to confuse with Android 12’s approximate location

Among the slew of features bought to the table, Android 12’s privacy and security updates were pretty impressive, approximate location being one of them. In Android 12, users have the option to either go with precise location or approximate location.

Approximate location gives away your location details within a radius of 100 meters. So, the app knows which locality you are in, and not the exact building or the point you are at.

Why use mock location?

App testing

As we already discussed above, the feature was first introduced to streamline the app testing process. Several apps have location-based features, and mock location provided the developers a hassle-free solution for that.

Privacy concerns

Stay clear of the snoopy hands of a cyber attacker. We know the internet isn’t always the safest of places. Since the apps you use constantly consume your location data, an attacker can jump in the middle and track you down. Well, with fake location you can fool the swindlers.

Unlock app features

Another widespread use of this feature is unlocking apps or features which are based on location. It can be extended to games like Pokémon GO, streaming services like Netflix & Amazon Prime Video etc.

Targeted advertising

There’s no way escaping advertisements. They’re everywhere. But what you can do is avoid targeted advertisements based on location, so that they don’t try to lure you into buying things. This may sound silly but can come in handy.

Is mock location a foe?

For enterprises, yes. Particularly in the current working conditions where remote work is the norm, you don’t want your employees faking their location.

But is there a way? Fortunately, there is and we’ll talk about it soon! But before that, let’s see how you can turn on mock location.

Turning on mock location in Android

  • Turn on Android developer mode, if you haven’t already. To do this-
    • Go to Settings and navigate to Build number. This would be located in About phone section for most phones, while others have it in Software information.
    • Tap on it several times until you see a message saying “you are now a developer!” at the bottom.
  • Now you can see a new Developer options section under settings; tap on that.
  • Go to allow mock location and select the option.
  • Now that you are able to use mock location apps on your Android device, head over to the play store to download and install a mock location app.
  • After you download the app, go to Settings > Developer options and tap on Mock location app.
  • Tap on it and it’ll show all the available mock location apps installed on your device. Choose one and you’re good to go. You can use the apps to select a location of your choice.
Featured resource

Download the Hexnode Android management datasheet

Check out how Hexnode's comprehensive Android management features meet modern day enterprise needs.


Is there a way to block mock locations?

Now let’s face the question. How can we block this feature on company owned devices? Hexnode’s block mock location policy will ensure that device users can’t turn on this feature and mislead their administrators using fake locations.

It can be found under Policies > Android > Restrictions > Developer options.

Better yet, combine with Hexnode’s geofencing policy to ensure the devices always stay within your safe territory.

Applying both the policies would ensure that the devices will always stay within the virtual fence you set up.


Was the creation of mock location feature asking for trouble? Well not quite. But if you think of it, what was created for Android developers to test app features turned out to be a headache for them.

Having said that, we can’t deny that this is indeed a very helpful feature which could obliterate serious privacy concerns.

So yes, it is a double-edged sword. And for the enterprises fretting over managed devices faking their locations, Hexnode has a policy just for that as we saw.


Hector Barnes

Changing perspectives one word at a time.

Share your thoughts