Getting Started with Mockery
Follow this 5-minute guide to configure Android mock locations and pair your device with the Mockery GPS Controller. No root or system modifications required.
Prerequisites
Enable Android Developer Options
Android safeguards mock location features inside Developer Options to prevent unauthorized background spoofing:
- Open the Settings app on your Android device.
- Scroll down and tap About phone (or System > About phone).
- Locate the Build number entry.
- Tap Build number 7 times consecutively. You will see a brief prompt: "You are now a developer!".
- Enter your device lock PIN or biometric if prompted.
Select Mockery as Mock Location App
Now tell Android to grant Mockery permission to act as the test location provider:
- Return to the main Settings menu and open System > Developer options.
- Scroll down to the Location section.
- Tap Select mock location app.
- From the dialog list, select Mockery.
Create Device Credentials
For security, your primary website account password is never entered on your Android phone. Instead, create dedicated device credentials:
- Log into your account at Mockery Controller.
- Open the Devices / Credentials panel.
- Click + Add New Spoofer Device.
- Enter a friendly name (e.g. Pixel 8 Test) and generate a unique username and password.
Configure Profile in Android Spoofer
Enter your device credentials into the Mockery Android app:
Passwords are encrypted using Android's hardware-backed Keystore and stored in EncryptedSharedPreferences.
Start Simulation & Verify
You are ready to simulate movement:
- In your desktop browser at Mockery Controller, click the map to place waypoints.
- Adjust the speed slider (e.g. 50 km/h) and click Start Simulation.
- On your Android phone, tap Connect. The foreground notification will appear: Mockery: Active (Moving).
- Open Google Maps, a delivery app, or your custom Android app. Watch your location move smoothly along the straight-line path!
Common Setup Gotchas
On certain OEM devices (Samsung One UI, Xiaomi MIUI), rebooting can reset the mock location app. If Mockery reports Not configured after restarting your device, re-select Mockery in Developer Options.
When credentials are entered, Mockery strictly enforces encrypted wss://. Ensure port 443 is used.
Questions or Need Help?
Explore our master FAQ covering Android permissions, road snapping, and offline tolerance.