How to Detect Mock Locations on Android

Geolocation plays an important role in our smartphone – some applications ask for your coordinates to work correctly, using geolocation you can find a lost person, and even if your wife asks you to specify your coordinates, you can easily do it.

You may also like: 7 Fun Mock Location Apps Android

However, many users resort to hiding their real location. This may be due to an unwillingness to be pursued or just to play friends by specifying a false positioning. What if a person has sent you coordinates, and you do not know if they are fictional or real…

On gadgets with the operating system Android 17 (JellyBean MR1) and infra, you can determine the false location employing Settings Secure. However, it’s important to note that the utility will let you know if the user (the geodata of whom you want to track) has turned on the ALLOW MOCK LOCATION function on his device or not. But you can not determine the reliability of data utilizing Settings Secure.

A dummy location is a speed-accuracy altitude and time interval whose rates are hard-coded. There is a server system called the HyperTrack API capable of detecting such patterns and rejecting them.

On Android 18 (JellyBean MR2) and supra, it is possible to learn about false geodata thanks to Location.isFromMockProvider. The meaning of the program is that it determines that the data came from a false provider when the API returns true.

The HyperTrack SDK selects the fake positions on the gadget with a view to discourage them from achieving the HyperTrack API server.