Alibi Mock Location

Alibi Mock Location

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.

Sister Project — Kizaki Works Location Suite

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.

Requirements

  • 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)

What It Intercepts

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.

Installation

  1. Download the signed APK (Alibi-Mock-Location-v*.apk) from the Latest Release and install it (com.kizakiworks.alibimocklocation).
  2. Open your LSPosed Manager and enable Alibi Mock Location.
  3. 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 system or com.google.android.gms.
  4. Force-stop and reopen the selected target apps.
  5. Open Alibi Mock Location. The hero status card connects via XposedService and displays the active framework name and API version.

Verification

  1. 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.
  2. LSPosed Logs & ADB Logcat: Enable Verbose Debug Logging to write intercepted calls under tag AlibiML to both LSPosed Manager logs and adb logcat:
    adb logcat -s AlibiML
  3. Turn off Verbose Debug Logging when finished.

Building From Source

Requires JDK 17+ and Android SDK 36.

./gradlew testDebugUnitTest assembleDebug

The APK is written to app/build/outputs/apk/debug/app-debug.apk.

License

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.

Releases