An Xposed module that sets your device's location, built on the modern libxposed API for LSPosed 2.x / Vector.
This is a fork of jqssun/android-gps-setter, which builds on Android1500/GpsSetter.
- Modern Xposed API (libxposed 101). No "deprecated feature" warning in LSPosed 2.x. Settings reach the hook through LSPosed's remote preferences instead of a world-readable file, so the module keeps working after LSPosed 2.3.0 removes that file-based sharing.
- System-wide spoofing with continuous fix generation (Android 12+). The module actively generates and dispatches spoofed fixes at 1 Hz inside the system server across GPS, fused, and network providers. Google Location Accuracy can stay enabled, and Play-services apps follow the spoofed location without scoping even indoors.
- Real location during emergencies. While an emergency call or SMS is active (Android 14+), real fixes pass through untouched and fake fix generation is suspended.
- System hooks fixed for Android 11–13. The location service moved packages in Android 11, so the system hook never ran there.
- Start, stop and location changes apply immediately, without a reboot.
- Working maps in the FOSS build. It uses keyless OpenFreeMap tiles, because the previously bundled Mapbox token was revoked.
- Fixes: saving favorites and map taps in the FOSS build, crashes when offline or without a geocoder, and the update checker picking the other build's APK. Debug builds no longer need a keystore.
Grab an APK from Releases. There are two builds:
app-full-*.apk |
app-foss-*.apk |
|
|---|---|---|
| Maps | Google Maps (play-services-maps) |
MapLibre + OpenFreeMap |
| Fused location | Google Play services | microG client (org.microg.gms) |
This fork installs as io.github.varma322.gpssetter, alongside upstream (io.github.jqssun.gpssetter) rather than over it, and its builds are signed with a different key. It is not on F-Droid.
- A rooted device with LSPosed 2.x or Vector (libxposed API 101+).
- LSPosed 1.x can't load libxposed 101 modules; use upstream v0.0.6 there.
- LSPatch (unrooted) isn't supported, because embedded frameworks don't provide remote preferences.
- Android 8.1+. System-wide spoofing of live location updates needs Android 12+. Tested on Android 16.
- Install the APK and enable GPS Setter in LSPosed.
- In its scope, tick System Framework for system-wide spoofing. Optionally also tick individual apps (see Tips).
- Reboot. System Framework hooks load at boot; per-app hooks only need that app restarted.
- Open GPS Setter, pick a location on the map and press ▶.
- System Framework. Actively generates 1 Hz spoofed fixes to location providers (
gps,fused,network) and rewrites incoming fixes inLocationProviderManager.onReportLocation(Android 12+),LocationManagerService.getLastLocationandinjectLocation. While spoofing, it also refuses raw GNSS measurement, navigation and batching listeners. - Scoped apps. Inside the app's own process, hooks
Location.getLatitude/getLongitude/getAccuracy/setandLocationManager.getLastKnownLocation. This catches every location the app reads, wherever it came from.
- Google Location Accuracy can stay on. Because the module generates continuous 1 Hz GPS fixes inside the system framework, Google Play services' Fused Location Provider (FLP) prioritizes the high-accuracy GPS fixes over Wi-Fi/cell estimates. Play-services apps follow the spoofed location indoors and outdoors without needing individual app scoping.
- Apps protected by Google Play's anti-tamper (look for
libpairipcore.soin the APK) crash when scoped. Don't scope them; rely on the system hook. - Only enable one location-spoofing module. If two hook the same calls, whichever runs last wins.
- Spoofing is system-wide while it's on. That includes other system services; only emergencies are exempt (Android 14+).
-
Debug builds need JDK 17–21 and Android SDK platform 36, but no keystore:
./gradlew assembleFossDebug # or assembleFullDebug -
Release builds read
keyAlias,keyPassword,storeFileandstorePasswordfromlocal.properties. -
CI (
apk.yml) builds both flavors onv*.*.*tags and publishes a GitHub release. It needs these repository secrets:STORE: base64 of the keystoreLOCAL: base64 of alocal.propertiescontaining the signing keys
-
./release.sh v1.2.3bumps the version, then tags and pushes. It usesgsed(GNU sed).
- jqssun/android-gps-setter, the project this fork is based on
- Android1500/GpsSetter, the original GpsSetter for Android 8.1–13
- libxposed and LSPosed / Vector
- MapLibre for the mapping library; OpenFreeMap for tiles; map data © OpenStreetMap contributors
- microG for the FOSS implementation of Google Mobile Services