The Mock Location App is an Android application designed for developers and testers to simulate GPS locations on their devices. It allows you to set custom latitude and longitude coordinates, making it perfect for testing location-based features without physically moving to different locations.
Yes, the app is legal for personal use, development, and testing purposes. However, users are responsible for ensuring their use complies with local laws and the terms of service of other applications. Using mock locations to circumvent geographical restrictions or for fraudulent purposes may violate terms of service.
The app supports Android 6.0 (Marshmallow, API 23) and above, up to Android 14 (API 34). This covers the vast majority of Android devices currently in use.
Yes, the Mock Location App is completely free and open-source. You can download, use, modify, and distribute it according to the project's license terms.
No, the app does not require root access. It works on any standard Android device with Developer Options enabled.
To enable Developer Options:
- Go to Settings → About Phone
- Tap on "Build Number" 7 times consecutively
- You'll see a message saying "You are now a developer!"
- Developer Options will now appear in your Settings menu
After installing the app:
- Go to Settings → Developer Options
- Find "Select mock location app" or "Mock location app"
- Select "Mock Location" from the list of available apps
- The app is now configured as your device's mock location provider
Make sure Developer Options are enabled first. If you still can't find it, the exact location may vary by device manufacturer. Try searching for "mock" in your Settings search bar, or look under System → Developer Options.
The app requires:
- ACCESS_FINE_LOCATION: To access precise location data
- ACCESS_COARSE_LOCATION: To access approximate location data
- ACCESS_MOCK_LOCATION: To set mock locations (granted through Developer Options)
Currently, the app is not available on the Google Play Store. You can download the APK from the GitHub releases page or build it from source using Android Studio.
- Open the Mock Location app
- Enter the desired latitude (between -90 and 90)
- Enter the desired longitude (between -180 and 180)
- Tap the "Set Location" button
- Open any map app to verify the location change
Use decimal degrees format:
- Latitude: Values from -90 (South) to +90 (North)
- Longitude: Values from -180 (West) to +180 (East) Example: San Francisco is at 37.7749, -122.4194
Currently, the app doesn't have a built-in favorites feature, but this is planned for future releases. For now, you'll need to manually enter coordinates each time.
The mock location remains active until you change it or restart location services. However, for best results, keep the app running in the background while using location-based services.
Check the following:
- Developer Options are enabled
- The app is selected as the mock location provider
- Location permissions are granted to the app
- Location services are enabled on your device
- You've entered valid coordinates and pressed "Set Location"
Some apps (especially banking, gaming, and security-focused apps) have detection mechanisms for mock locations. These apps may:
- Check if mock locations are enabled in Developer Options
- Use advanced location validation techniques
- Access hardware sensors to verify location authenticity There's no guaranteed way to bypass these protections, and attempting to do so may violate the app's terms of service.
Try these steps:
- Force stop the app and clear its cache (Settings → Apps → Mock Location)
- Ensure all required permissions are granted
- Verify Developer Options are enabled
- Restart your device
- If the issue persists, check the GitHub issues page or create a new issue with your device details
Yes, you can install and use the app on as many devices as you want. Each device will have its own independent mock location setting.
Absolutely! Contributions are welcome. You can:
- Report bugs or suggest features through GitHub Issues
- Submit pull requests with improvements or bug fixes
- Help improve documentation
- Share the project with others who might find it useful
- Clone the repository:
git clone https://github.com/brutalharsh/mock-location-app.git - Open the project in Android Studio
- Let Gradle sync and download dependencies
- Build the project: Build → Make Project
- Run on an emulator or physical device
The app is built with:
- Language: Kotlin
- UI Framework: Material Design Components
- Architecture: Single Activity with View Binding
- Location Services: Android LocationManager and Google Play Services
- Build System: Gradle with Android Plugin 8.1.0
- Minimum SDK: API 23 (Android 6.0)
- Target SDK: API 34 (Android 14)
No, the app processes all location data locally on your device. It does not collect, store, or transmit any location information to external servers.
Yes, the app is safe to use. It's open-source, so you can review the code yourself. It only requests necessary permissions and doesn't perform any malicious activities.