This uses android ADB's command geo fix
to change the device's location.
Note: To work, this needs a connected device or a emulated virtual device running
git clone [email protected]:SergioRosello/mockgeofix.git
- In project root directory:
source ENV/bin/activate
- In project root directory:
pip install -r requirements.txt
- In project root directory:
python run_sim.py -i targetIP -g path/to/gpx/file.gpx -t emulatorConsoleAuthToken
Below is a list of parameters used by run\_sym.py
script.
-i
or--ip
: The ip address where it will find the device-g
or--gpx-file
: The.gpx
file used to trace the route-t
or--auth
: Auth token for telnet authentication
-p
or-port
: The port used to connect. Default value: 5554-S
or--sleep
: Sleep between track points. Default value: 0.5-s
or--speed
: Speed in km/h (Takes precedence over -S)-I
or--listen-ip
: Run a HTTP server visualizing mocked locations on this ip-P
or--listen-port
: HTTP server's port. Default value: 80