An application for easy mocking of locations via a GPX file.
After installation set this app in device developer options to be the mock location app.
The app mocks locations via a track file in GPX format.
Each <trkpt>
must have lat
and lon
attributes and a <time>
element with the value in format yyyy-MM-ddTHH:mm:ssZ
,
and optionally <ele>
elements for elevation.
An example GPX track file can be found here: mock_track.gpx
GPX track files must be put on the device here:
/sdcard/Mocks/
The app should be granted read external storage and location permissions. Mock route can be started from the app UI by tapping on "RUN MOCK ROUTE" and chosing the GPX file via the File Picker UI. Location mocking can be stopped by tapping "CLEAR MOCK ROUTE".