Is it possible to make the Android Operating System receive false location data or not receive any data about our geolocation at all. And how we can do it in the maximal clean way so that the third-party applications that are installed on the phone could't even suspect about it?

1 Answer 1


The phone has a GPS sensor and the OS can read the values from this sensor. Thus, the OS knows your real position.

However, the apps have no access to the direct OS reading - they can only ask the OS to give them the position. And the OS has builtin support to give them fake results.

To do that, do the following steps:

  1. Enable developer mode (as described here).
  2. In the developer mode, enable "Allow mock locations". This allows for apps to override the GPS sensor input by a fake position provided by them.
  3. Install any app with exactly this feature, like Fake GPS Location.

It works a little bit differently on some phones, for example on my Moto G8 there is no "Allow mock locations" option in the developer mode. In most cases, it is possible even on them, but a little bit differently.

Extension: apps can know if it you did these, but they have probably no way to know, if the actual position they've got is mocked. Probably it can be prevented only by rooting the phone. Thanks @Robert for the info.

  • 1
    Note that apps can query if mocked locations are allowed and thus "know" that the location they get is "untrusted".
    – Robert
    Jan 19, 2021 at 14:24
  • @Robert Wow, that is sad. I think, only rooting can really hide it.
    – peterh
    Jan 19, 2021 at 15:48
  • In this case, can the third- party Applications find out that the received location datas are fake? And can we do anything to fix this issue ? Jan 19, 2021 at 17:50
  • @MariaWilson If I understand Robert's answer well, the apps can only check, if such location mocking is allowed (did you walked over the list in the answer). They have still no way to know, if the location is mocked or not.
    – peterh
    Jan 20, 2021 at 12:30
  • @Robert Is it possible to revoke this permission from the apps without rooting? Maybe by some access control finetuning?
    – peterh
    Jan 20, 2021 at 16:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .