Android Location Spoofing

by
4 views 4299a7cc...

Description

Spoofs the current location reported by GPS

How to Use

Download the script and run it with Frida CLI:

Download Script

Then run with Frida:

frida -U -f YOUR_PACKAGE_NAME -l android-location-spoofing.js

Replace YOUR_PACKAGE_NAME with the target app's package name.

Source Code

JavaScript
const lat = 27.9864882;
const lng = 33.7279001;

Java.perform(function () {
	var Location = Java.use("android.location.Location");
	Location.getLatitude.implementation = function() {
		send("Overwriting Lat to " + lat);
		return lat;
	}
	Location.getLongitude.implementation = function() {
		send("Overwriting Lng to " + lng);
		return lng;
	}
})
Share this script:
Twitter LinkedIn

Comments

Login or Sign up to leave a comment.
Loading comments...