#!/bin/sh # Send a mock GPS location to the emulator. # Usage: sh tools/mock_location.sh [lat] [lon] # Default: Montreal (45.5017, -73.5673) set -e cd "$(dirname "$0")/.." . ./android_env.sh LAT="${1:-45.5017}" LON="${2:--73.5673}" echo "Sending mock location: lat=$LAT, lon=$LON" adb emu geo fix "$LON" "$LAT" echo "Done."