auag0 / HideMockLocation

Xposed Module to Hide Mock Location Settings
44 stars 4 forks source link

Hide Mock Location

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

usage

hooked methods

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