# Restricting fake location application while collecting gps points with Collect android app

**URL:** <https://forum.getodk.org/t/restricting-fake-location-application-while-collecting-gps-points-with-collect-android-app/29231>\
**Category:** Ideas\
**Tags:** odk-collect\
**Created:** [August 15, 2020, 4:42pm UTC](https://forum.getodk.org/t/restricting-fake-location-application-while-collecting-gps-points-with-collect-android-app/29231 "2020-08-15T16:42:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [August 17, 2020, 9:49am UTC](https://forum.getodk.org/t/restricting-fake-location-application-while-collecting-gps-points-with-collect-android-app/29231/2 "2020-08-17T09:49:02Z")

</div>

Hi @Lama  
welcome to the forum! Please [introduce yourself here!](https://forum.getodk.org/t/introduce-yourself-here/6671)

> While collecting data with Collect android app would it be possible to disable the fake location app that generates fake location?

It is doable. Location class we use provides `isFromMockProvider()` so we could easily check it and ignore such results.

Is that a real problem you faced?

---

_[View the full topic](https://forum.getodk.org/t/restricting-fake-location-application-while-collecting-gps-points-with-collect-android-app/29231)._
