# smarques84/MockLocationDetector

An android library to help detect mock locations

Repository: https://github.com/smarques84/MockLocationDetector
Canonical: https://ross.abutalabs.com/products/mocklocationdetector
Language: Java
License Family: other
Last push: 2024-02-27T03:33:32+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3748, "days_push": 918, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1813, forks 1147 (observed 2026-08-28T04:05:39.738245+00:00)

## What it is
An Android library written in Java that detects whether a device's location data comes from a mock (spoofed) provider. It offers static methods to check a Location object for mock providers, scan for apps holding the ALLOW_MOCK_LOCATIONS permission, and inspect the system mock-locations setting.

## Use cases
- detect if a gps location is spoofed or mocked on android
- check whether apps with allow mock locations permission are installed
- prevent location cheating in delivery or ride-hailing apps
- verify location authenticity for attendance or check-in apps
- guard against fake gps in android games or apps
- validate location data before trusting it in an android app

## When to choose
- you need to detect GPS spoofing in an Android app
- you want a simple static-method API with no extra dependencies
- you must support older Android APIs with fallback checks

## When to avoid
- you need detection on non-Android platforms
- you require actively maintained anti-spoofing techniques against modern mock apps
- your project needs a permissively licensed dependency with explicit licensing support beyond Apache 2.0

## Facets
- artifact type: library
- maturity: maintenance
- function: security, developer-tools, sdk
- domain: android-tools, security, mobile-development
- platform: jvm
- tags: mock-location, gps-spoofing-detection, anti-fraud, location-integrity, java, gradle, android, mobile

## Member repositories
- smarques84/MockLocationDetector (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:39.738245+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:21:10.695950+00:00, confidence not recorded.
  - readme: https://github.com/smarques84/MockLocationDetector (fetched 2026-08-28T04:05:39.738245+00:00, sha 7ec6263dde00)
- Data as of 2026-08-30T08:39:29.467469+00:00.
