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
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:
- Enable developer mode (as described here).
- 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.
- 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.
-
1Note that apps can query if mocked locations are allowed and thus "know" that the location they get is "untrusted".– RobertCommented Jan 19, 2021 at 14:24
-
@Robert Wow, that is sad. I think, only rooting can really hide it.– peterhCommented 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 ? Commented 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.– peterhCommented 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?– peterhCommented Jan 20, 2021 at 16:07