Wednesday, April 5, 2017

Fake your GPS location on an Android mobile phone.

Your mobile device knows where you are because using a couple of techniques. The most obvious is the GPS capability built into most phones.

When developing web apps there have been times when it would have been easier if I could have simply made the mobile phone appear to be in another location. I can do that by changing the code, but that's code that doesn't need to exist in the application.

For some reason I decided to see if there was a way to fake the GPS location in the Android phone and it turns out there is and it's pretty easy to use.

First you need an app which will enable you to set your fake location and then you need to enable the developer features in your mobile phone and enable the option Allow mock locations.

First install the app from the Play Store called Fake GPS Location Spoofer Free. There are other apps but this one did what I wanted.

To turn on the developer options go into Settings -> About phone, and press on the Build number 7 times. Yes, you read correctly. Pressing the build number 7 times enables the developer options.

Go into Settings and scroll down and you'll see there is now a Developer options. Select Developer options.

Enable the Allow mock locations option.

Now open the Fake GPS Location Spoofer Free app, move the map to the location where you'd like to appear to be, or use the search feature, then double tap the location so a marker appears on the map.

To start the fake location press the Play button at the bottom right. Ads are shown in the app but that's OK.

Now if you go to an app or web page that uses your location, you'll appear to be at that location.

To stop the faking of the location go into the Fake GPS Location Spoofer Free app and press the Stop button at the bottom left.

I'd also suggest when you're not needing to use a fake location to turn off the Allow mock location option in the Developer options.

That's it, you can now have your mobile phone appear to be anywhere you want it to be.

For those nefarious types, some apps may give you some type of advantage if you are in a location, but keep in mind if there's a setting, it may be possible for apps to determine you're faking your location and you may be breaching their terms and conditions and you don't know what the consequences may be.

In my case I can use the fake location to better test web apps I write. Each day I enter the local petrol prices into my Petrol Prices Melbourne web app, so now when I'm away, I can more easily appear to be at home, which makes it easier to enter the petrol prices. Another web app I've written is Nearest Train Station app, which only works well if you're in the area. If I'm planning a trip for later in the day that doesn't work. Now I can easily appear to be in that location.

Once you know you can fake your location you may recognise useful opportunities to use this feature of Android phones.

Kelvin Eldridge

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.