V
V
Vladimir Yakushev2014-02-26 10:56:00
satellite navigation
Vladimir Yakushev, 2014-02-26 10:56:00

How to programmatically determine fictitious coordinates on Android?

If you enable the developer section on your device, you can select the "Allow mock locations" checkbox. As a result, the user can spoof applications by using applications like FakeGPS . Are there any ways to distinguish real coordinates from false ones?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GavriKos, 2014-02-26
@VYakushev

stackoverflow.com/questions/16772383/how-to-detect... - first link on google. Check if the fake gps is enabled.

V
Vladimir Yakushev, 2014-02-26
@VYakushev

Then, that some comrades, using a corporate application, cheat with coordinates, while heating up clients.

I
Ilya, 2014-02-26
@Gorily

Good idea from @GavriKos , regarding the operator cell check.
Take MCC, MNC, LAC, CID, (+ you can MAC addresses of the nearest WiFi, for accuracy) make a request to Yandex.Locator ( api.yandex.ru/locator/doc/dg/api/geolocation-api_j... ) to location. Then you check the GPS coordinates and from Yandex, you get the difference. If the difference is greater than the control value, discard the request. A few kilometers is enough. Of course, not all towers are there, but most of them will be, especially in large cities.
If foreign countries are also important, you can also connect OpenCellID ( opencellid.org ), you can download the databases from them.
Also, the check that Yandex and Google use when collecting information for their locators will not hurt - sharp jumps on the map. If the client moves 15 kilometers in 10 seconds, this is a bad client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question