title: How to prevent Fake GPS (Location Spoofing) on Android
body: <p>We've read many of posts on Stackoverflow, regarding prevent fake gps.</p>
  
  <p>We're now running kind of social network android application,
  and recently launched Pokemon GO-like location based gaming feature.</p>
  
  <p>We were anxious about using fake gps, so I tried to find as many as information on Stackoverflow, but unfortunately managed to find a few. (It seems only a few looked into it - or situation changed. Like some of API deprecated.)</p>
  
  <p>So here's our current situation, can you advice us about how to proceed?</p>
  
  <hr>
  
  <ul>
  <li><p>I found some article about wechat, using BaiduLocationSDK. So we adopt it, and now we are using it.</p></li>
  <li><p>It successfully blocked many of location spoofing apps, (like "fly gps") but we found the other still working. (like Fake gps go - <a href="https://play.google.com/store/apps/details?id=es.excellentapps.fakegpsgo" rel="nofollow noreferrer">https://play.google.com/store/apps/details?id=es.excellentapps.fakegpsgo</a>)</p></li>
  <li><p>Fortunately, when we quit the app after setting mock location, it don't persist. (maybe only BaiduLocationSDK can do it)</p></li>
  <li><p>But we thought it is not the ideal solution. We tried to make list of fake gps apps and
  A) Detect them and if a user uses it, block him and he can't use our app
  B) Kill the process of them</p></li>
  </ul>
  
  <p>but A, B doesn't work. (It worked before - about 1~2 month, but It doesn't now.)</p>
  
  <hr>
  
  <p>Please help us proceed.</p>