How xposed-modules-repo/io.github.khalil212002.unmockgps works
UnmockGPS is a small Xposed/LSPatch module that hooks Android location methods in a target app and alters the values those methods expose. The documented workflow is to activate the module, launch the target app, and optionally set a mock location in a separate GPS app. The sampled implementation shows hook registration and the sanitization behavior; it does not show the framework’s package-loading internals. The README also mentions altitude injection, but the sampled source does not implement it.
Main entry points: UnMockGPS.kt UnMockGPS module
Components 8
Other components
- UnMockGPS module
app/src/main/java/io/github/khalil212002/unmockgps/UnMockGPS.kt - Android Location API
- Mock flag suppression
app/src/main/java/io/github/khalil212002/unmockgps/UnMockGPS.kt - Accuracy overrides
app/src/main/java/io/github/khalil212002/unmockgps/UnMockGPS.kt - Extras scrubbing
app/src/main/java/io/github/khalil212002/unmockgps/UnMockGPS.kt - Target app
- LSPosed / LSPatch
- Fake GPS app
Connections 7
- LSPosed / LSPatch → UnMockGPS module: activates
README.md - Target app → Android Location API: uses
- UnMockGPS module → Android Location API: registers hooks
app/src/main/java/io/github/khalil212002/unmockgps/UnMockGPS.kt - Android Location API → Mock flag suppression: hooked calls
app/src/main/java/io/github/khalil212002/unmockgps/UnMockGPS.kt - Android Location API → Accuracy overrides: hooked calls
app/src/main/java/io/github/khalil212002/unmockgps/UnMockGPS.kt - Android Location API → Extras scrubbing: hooked calls
app/src/main/java/io/github/khalil212002/unmockgps/UnMockGPS.kt - Fake GPS app → Android Location API: sets location
README.md