No results found

HideMockLocation - Xposed Module Repository

Hide Mock Location

Prevents detection of mock location
Supported Android 6~16
Testapp: MockLocationDetector

usage

  • Download the APK(here) and install APK on device
  • Enable the module in xposed
  • if use lsposed, choose the app from which to hide mock location
  • For all apps, you can select the System framework
  • owari!

hooked methods

  • android.location.Location
    • isFromMockProvider()
    • isMock()
    • setIsFromMockProvider()
    • setMock()
    • getExtras()
    • setExtras()
    • set()
  • android.provider.Settings
    • Secure.getStringForUser(name=“mock_location”)
    • System.getStringForUser(name=“mock_location”)
    • Global.getStringForUser(name=“mock_location”)
    • NameValueCache.getStringForUser(name=“mock_location”)

how to set MockLocation app from Adb (stackoverflow)

Allowing app for mock locaiton

adb shell appops set <MOCK_LOCATION_APP_PKG> android:mock_location allow

Removing app for mock location

adb shell appops set <MOCK_LOCATION_APP_PKG> android:mock_location deny

for root device, remove adb shell in terminal and run

super thanks (reference)

ThePieMonster#HideMockLocation

Package

io.github.auag0.hidemocklocation

Authors

anago

Releases

HideMockLocation v1.2.2

Release Type: Stable

12/21/2025, 12:41:48 PM

View all releases

Releases

HideMockLocation v1.2.2

Release Type: Stable

12/21/2025, 12:41:48 PM

Fixed settings hook logic to avoid applying it to the android system package, improving stability
Updated build environment

I recommend applying it to the system framework to prevent detection.

Full Changelog: auag0/HideMockLocation@v1.2.1...v1.2.2

Show older versions

© 2021 - 2025 New Xposed Module Repository