# Location Spoofing detection \[Android only]

Location spoofing is when an attacker (or malicious app) falsifies the device’s reported location or the location signals it trusts (e.g., GNSS/GPS, Wi‑Fi positioning, cellular location, or IP‑based geolocation), causing the OS and apps to receive incorrect location data.

Location spoofing in mobile apps is commonly used to bypass geofences and region locks, fake presence (e.g., on dating apps or games), create alibis (e.g., on social or parental control apps), or commit location‑based fraud (offers, check‑ins).

Below are code snippets demonstrating debugger detection across various platforms:

```dart
// Android location spoofing check
override fun onLocationSpoofingDetected() {
    TODO("Not yet implemented")
}

// Flutter location spoofing detection
onLocationSpoofing: () => print("Multi instance detected")

// Cordova location spoofing detection
locationSpoofing: () => {
    // Place your reaction here
}

// React Native location spoofing detection
locationSpoofing: () => {
    // Place your reaction here
}

// Capacitor location spoofing detection
locationSpoofing: () => {
    // Place your reaction here
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.talsec.app/freerasp/freerasp/wiki/threat-detection/location-spoofing-detection-android-only.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
