/android-mock-location-for-development

allows to change mock location from command line on real Android devices

Primary LanguageJava

This demo allows you to change mock location from terminal via adb in order to test GPS on real Android devices.

Usage:

adb [-s <specific device>] shell am broadcast -a send.mock [-e lat<latitude>] [-e lon <longitude>]
        [-e alt <altitude>] [-e accurate <accurate>]
adb  shell am broadcast -a stop.mock

Example:

Specify a latitude and longitude respetively.

adb  shell am broadcast -a send.mock -e lat 15.3 -e lon 99