Skip to content

TjnhPro/android-mock-location-from-command-line

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This app allows you to change mock location from terminal using adb in order to test GPS on real devices.

Usage:

adb [-s <specific device>] shell am broadcast -a com.example.amotz.mockLocationForDeveloper.updateLocation  [-e lat<latitude>] [-e lon <longitude>]
        [-e alt <altitude>] [-e accurate <accurate>]
adb  shell am broadcast -a com.example.amotz.mockLocationForDeveloper.stopMock

Example:

adb  shell am broadcast -a com.example.amotz.mockLocationForDeveloper.updateLocation  -e lat 15.3 -e lon 99

About

allows to change mock location from command line on real devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%