android - Check if geo-location has been spoofed -
android - Check if geo-location has been spoofed -
i want create sure location received locationlistener "real" 1 , doesn't come spoofed source (i.e application location spoofer). don't care "but user want spoof location" - it's app doesnt distributed on android market. application not need location accurate - has "real".
do think there way check if location has been spoofed?what think way prevent location spoofing?is there maybe android-method gives me real location nevertheless?is there maybe android-method determine if location has been spoofed?
thoughts had:
check on blacklist if location-spoofing app installed enable/disable different location providers , check against returned locations run background service watching location (in passive way) , check sudden location changesplease give me thoughts , input issue.
from provider name: 'gps' or 'network' proper
most spoofers forget send gps status updates. can utilize advantage
// returns true if mock location enabled, false if not enabled.
if (settings.secure.getstring(getcontentresolver(), settings.secure.allow_mock_location).equals("0")) homecoming false; else homecoming true;
the best method :
mock location providers not send nmea data. create nmea listener. if don't nmea update valid gps updates in onlocationchanged() spoof beingness used. android gps location position
Comments
Post a Comment