set_mock_location
Set a mock GPS location on Android devices with latitude and longitude. Works directly on emulators; physical devices require a Mock Location App in Developer Options.
Instructions
Set a mock GPS location (latitude and longitude) on the device. For emulators, this works directly. For physical devices, you must configure a Mock Location App in Developer Options first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Specific device serial number | |
| latitude | Yes | Latitude coordinate (e.g., 37.7749) | |
| longitude | Yes | Longitude coordinate (e.g., -122.4194) |