Skip to content

About

A GPS setter based on the Xposed framework

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

GPS Setter

release build license issues

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.

What's different in this fork

  • 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.

Downloads

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.

Requirements

  • 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.

Setup

  1. Install the APK and enable GPS Setter in LSPosed.
  2. In its scope, tick System Framework for system-wide spoofing. Optionally also tick individual apps (see Tips).
  3. Reboot. System Framework hooks load at boot; per-app hooks only need that app restarted.
  4. Open GPS Setter, pick a location on the map and press ▶.

How it works

  • System Framework. Actively generates 1 Hz spoofed fixes to location providers (gps, fused, network) and rewrites incoming fixes in LocationProviderManager.onReportLocation (Android 12+), LocationManagerService.getLastLocation and injectLocation. 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 / set and LocationManager.getLastKnownLocation. This catches every location the app reads, wherever it came from.

Tips and limitations

  • 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.so in 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+).

Building

  • Debug builds need JDK 17–21 and Android SDK platform 36, but no keystore:

    ./gradlew assembleFossDebug   # or assembleFullDebug
  • Release builds read keyAlias, keyPassword, storeFile and storePassword from local.properties.

  • CI (apk.yml) builds both flavors on v*.*.* tags and publishes a GitHub release. It needs these repository secrets:

    • STORE: base64 of the keystore
    • LOCAL: base64 of a local.properties containing the signing keys
  • ./release.sh v1.2.3 bumps the version, then tags and pushes. It uses gsed (GNU sed).

Credits

License

GPL-3.0

About

A GPS setter based on the Xposed framework

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages