Page 1 of 1

How to prevent from fake GPS

Posted: May 6th, 2021, 6:17 am
by khurshid.arshad
Dear CSPro Tam;

How we can prevent from fake GPS. For instance,

I want to check that they are getting GPS proper way or they are using application from Play store to get Fake GPS.

Thanks.
a.

Re: How to prevent from fake GPS

Posted: May 6th, 2021, 10:36 am
by Gregory Martin
The best way, of course, is to hire enumerators that you can trust. :D

Unfortunately, Android keeps adding new security restrictions. In the past you could have used the dirlist function to get a list of the /data/app folder, but this won't work any longer unless your device is rooted.

I believe one of the fake GPS apps I use for testing always returns the same accuracy, and I think always takes the same amount of time to get a reading. You could check those figures and use those metrics to help determine if the reading is real.

Alternatively, you could write your own small Android application to determine if an application is running:

https://stackoverflow.com/questions/421 ... on-android

You could then call into that program using the SystemApp features of CSPro.

Re: How to prevent from fake GPS

Posted: May 6th, 2021, 11:10 am
by khurshid.arshad
Dear Gregory;

Thank you for the prompt reply. Unfortunately, time and accuracy changed every time.

Best.
a.

Re: How to prevent from fake GPS

Posted: May 6th, 2021, 12:39 pm
by khurshid.arshad
Dear Gregory;

Based on your suggestion, i am using timestamp() function to get time difference between start gps and stop gps and it is working 95%.

Thanks.
a.