Every mock location needs an airtight alibi.
English | 繁體中文
Alibi Mock Location is a pure Modern Xposed API 101+ LSPosed module by Kizaki Works that hides mock location traces from selected target apps—without modifying system frameworks or breaking mock location provider apps.
Alibi Mock Location is designed as the complementary sister project to Placebo Location Accuracy:
| Module | Role | Target Scope |
|---|---|---|
| Placebo Location Accuracy | Neutralizes Google Location Accuracy (Wi-Fi / Cell / BLE network positioning) so apps only receive pure GPS/GNSS coordinates and never snap back to your real network location. | system, com.google.android.gms, etc. |
| Alibi Mock Location (this project) | Hides mock location indicators (Location.isMock, Settings.Secure, AppOps, mock permission scans, and optional Developer Options) from target apps. |
Selected target apps only |
Using both together gives you clean GPS-only coordinates and a clean anti-detection alibi.
- Android 9–17+ (API 28–37+, tested on Android 16 & Android 17)
- Rooted device with a Modern Xposed framework supporting libxposed API 101+ (tested on LSPosed 2.2.1 / API 102)
Each toggle in the app operates independently and syncs live via RemotePreferences without rebooting:
| Toggle | Default | Behavior |
|---|---|---|
| Hide Mock Location Flag | On | Forces Location.isMock() and Location.isFromMockProvider() to return false, coerces setMock(true) / setIsFromMockProvider(true) to false, and strips mock keys from Location.getExtras(). |
| Hide Settings & AppOps Mock State | On | Spoofs Settings.Secure (mock_location) to 0 / "0", forces AppOpsManager checks for android:mock_location (and legacy op 58) to MODE_ERRORED, and empties mock-only getPackagesForOps queries. |
| Hide Mock Permission Scans | On | Removes android.permission.ACCESS_MOCK_LOCATION (with aligned requestedPermissionsFlags) from PackageManager getPackageInfo / getInstalledPackages queries and returns PERMISSION_DENIED on checkPermission. |
| Hide Developer Options & ADB | Off | Optional. Spoofs development_settings_enabled, adb_enabled, and adb_wifi_enabled in Settings.Global and Settings.Secure to 0 / "0" for strict apps. |
| Verbose Debug Logging | Off | Logs intercepted calls under tag AlibiML for verification with adb logcat. |
- Download the signed APK (
Alibi-Mock-Location-v*.apk) from the Latest Release and install it (com.kizakiworks.alibimocklocation). - Open your LSPosed Manager and enable Alibi Mock Location.
- Select only the target apps from which you want to hide mock location traces.
- Do not select your mock location provider app.
- You do not need to select
systemorcom.google.android.gms.
- Force-stop and reopen the selected target apps.
- Open Alibi Mock Location. The hero status card connects via
XposedServiceand displays the active framework name and API version.
- Built-in Self-Check: Open the app to check live status for:
- LSPosed Target Scope: Displays how many target apps are currently protected and lists their package names.
- Mock Location App: Detects installed apps declaring
ACCESS_MOCK_LOCATION, verifies that core anti-detection switches are active and the mock app itself was not accidentally added to scope, and lets you tap the row to jump straight to system Developer Options. - Settings / AppOps / Developer Options: Shows raw system state for reference.
- LSPosed Logs & ADB Logcat: Enable Verbose Debug Logging to write intercepted calls under tag
AlibiMLto both LSPosed Manager logs andadb logcat:adb logcat -s AlibiML
- Turn off Verbose Debug Logging when finished.
Requires JDK 17+ and Android SDK 36.
./gradlew testDebugUnitTest assembleDebugThe APK is written to app/build/outputs/apk/debug/app-debug.apk.
Licensed under the Apache License 2.0. Derivative works and forks must retain the attribution statement in NOTICE in accordance with Section 4(d) of the license.
