Disable / Check for Mock Location (prevent gps spoofing)
问题 Looking to find the best way to prevent / detect GPS spoofing on Android. Any suggestions on how this is accomplished, and what can be done to stop it? I am guessing the user has to turn on mock locations to spoof GPS, if this is done, then they can spoof GPS? I guess I would need to just detect if Mock Locations are enabled? Any other suggestions? 回答1: I have done some investigation and sharing my results here,this may be useful for others. First, we can check whether MockSetting option is