set_location
Set a mock GPS location on an Android device to test location-gated features by specifying longitude and latitude.
Instructions
Set the emulator's mock GPS location (longitude, latitude) — for location-gated features.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Target device serial (adb -s). Optional when exactly one device is attached. | |
| latitude | Yes | Latitude of the mock GPS fix. | |
| longitude | Yes | Longitude of the mock GPS fix. |