Simulating Mock Locations on Android – A Practical Tutorial

9 min read Learn step‑by‑step how to enable Developer Options, set a mock‑location app, and safely simulate GPS locations on Android for testing, development, or fun. September 25, 2026 02:00 How to Simulate Mock Locations on Android Using Developer Options

Why Simulate a Location?

Developers often need to test location‑based features without travelling to the actual places. Hobbyists use mock locations to access region‑locked content, verify geofencing rules, or simply have fun with location‑based games. Android provides a built‑in mechanism called Mock Location that lets any app report a fabricated GPS coordinate to the system, but it must be enabled through the Developer Options menu.

Prerequisites

  • An Android device running at least Android 6.0 (Marshmallow). The steps are the same on newer versions, though the exact wording of menu items may vary slightly.
  • A secondary app that can generate fake coordinates. Popular free choices include Fake GPS Location, Mock Locations (Fake GPS), or any app that advertises “Mock location provider”. You will install this later.
  • Basic familiarity with Android settings and the ability to install apps from the Play Store or an APK.

Step 1 – Enable Developer Options

  1. Open the Settings app.
  2. Scroll down to About phone (or About device on some skins).
  3. Locate the entry Build number. Tap it seven times. You will see a short toast message such as “You are now a developer!”
  4. Return to the main Settings screen. A new top‑level entry called Developer options (or System → Developer options) should now be visible.

On devices with a custom UI (e.g., Samsung One UI, Xiaomi MIUI), the path may be Settings → About phone → Software information → Build number. The principle remains the same: repeatedly tap the build number until the developer mode is unlocked.

Step 2 – Install a Mock‑Location App

  1. Open the Google Play Store (or your preferred app marketplace).
  2. Search for “Mock location” or “Fake GPS”. Choose an app with good reviews and a clear privacy policy. For this tutorial we will reference the generic name Fake GPS Location.
  3. Tap Install and wait for the installation to finish.

If you prefer not to use the Play Store, you can download an APK from a trusted source, but be aware of the additional security risk. Always verify the APK’s checksum when possible.

Step 3 – Designate the Mock‑Location App

  1. Return to Settings → Developer options.
  2. Scroll down to the Debugging section.
  3. Find the toggle labelled Allow mock locations (on newer Android versions this is replaced by Select mock location app).
  4. If you see a simple toggle, turn it on. If you see a list selector, tap it and choose the app you installed in Step 2 (e.g., Fake GPS Location).

When you select an app, Android records it as the sole provider of mock locations. If you later need a different app, repeat this step and pick the new one.

Step 4 – Configure the Mock‑Location App

Open the fake‑GPS app you installed. Most of these apps share a common UI:

  • Map view: Drag the pin to the desired latitude and longitude, or search for a place name.
  • Start/Stop button: Begins broadcasting the chosen coordinates to the system.
  • Settings: Options for speed, altitude, or periodic location changes.

Set the location you want to simulate, then press the Start button. The app will now feed those coordinates to Android’s location services.

Step 5 – Verify the Mock Location

  1. Open any app that uses location, such as Google Maps or a weather app.
  2. Allow the app to access your location if prompted.
  3. The map should center on the fake coordinates you set in the mock‑location app. You can also check the numeric latitude/longitude values in the app’s info panel.

If the location does not change, double‑check that the mock‑location app is still running and that the Allow mock locations setting points to the correct app. Some devices require you to restart the target app after starting the mock location.

Step 6 – Stop Mocking When Finished

When you no longer need a fake location, return to the mock‑location app and tap Stop. Then, optionally, go back to Developer options** and toggle off **Allow mock locations** (or clear the selected mock‑location app). This prevents other apps from unintentionally receiving fabricated coordinates.

Risks and Best Practices

  • Privacy: Enabling mock locations gives the selected app permission to overwrite real GPS data. Only grant this to apps you trust.
  • App compliance: Some services (e.g., banking, ride‑hailing) may block accounts that detect location spoofing. Use mock locations responsibly and avoid violating terms of service.
  • Battery impact: Continuous GPS broadcasting, even with fake data, can increase power consumption. Turn off the mock‑location app when not in use.
  • Security: On rooted devices, malicious software could exploit the mock‑location permission to hide its activity. Keep your device’s firmware up to date and avoid installing unknown APKs.

FAQ

Can I use mock locations without enabling Developer Options?

No. Android’s security model requires the mock‑location feature to be explicitly enabled by a developer or a trusted app. This prevents accidental location spoofing.

Will mock locations work on apps that request “high‑accuracy” location?

Yes. When a mock‑location app is active, the system reports the fabricated coordinates as if they were genuine, even for high‑accuracy requests. Some apps may detect the Location.isFromMockProvider() flag and react accordingly.

Do I need to grant the mock‑location app any special permissions?

The app itself usually requests ACCESS_FINE_LOCATION and ACCESS_MOCK_LOCATION. After you select it as the mock provider, Android grants the necessary rights automatically.

Can I simulate movement (e.g., a walking route) instead of a static point?

Many mock‑location apps include a “route playback” feature where you import a GPX file or manually draw a path. The app then updates the coordinates at a configurable speed, mimicking real movement.

What if my device runs a custom ROM?

Custom ROMs may hide or rename the mock‑location setting. Look for similar options under Developer options** or consult the ROM’s documentation. The core concept—designating a mock‑location app—remains the same.

Conclusion

Simulating GPS coordinates on Android is straightforward once you enable Developer Options and select a trusted mock‑location app. This capability is invaluable for developers testing location‑aware features, for QA teams verifying geofencing logic, and for power users who want to explore region‑locked content. Always remember to disable the mock location when you’re done, respect app policies, and keep security considerations in mind.

User Comments (0)

Add Comment
We'll never share your email with anyone else.