Prevents detection of mock location
Supported Android 6~14
Testapp: MockLocationDetector
- 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
- owari!
- 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)
adb shell appops set <MOCK_LOCATION_APP_PKG> android:mock_location allow
adb shell appops set <MOCK_LOCATION_APP_PKG> android:mock_location deny