Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know how to set locatlon for emulators using device configuration interface from Motodoev Studio for example. But, how I can set locatlon for a device?

share|improve this question
up vote 4 down vote accepted

this is possible using ADB shell:

$ telnet localhost 5554
Android Console: type 'help' for a list of commands
geo fix -82.411629 28.054553

Please read:

share|improve this answer
isn't this for a device? AFAIK, there is no way to set the location other than mock the location on your device, and add a test location provider. – Avinash R Jul 14 '13 at 17:39
Yes, I believe this is what he was looking for. What is your question? – Jared Burrows Jul 14 '13 at 18:57
Down vote because OP is explicitly asking about on a Device. This only works for the Emulator. – cde Jul 14 at 17:05
@cde I answered this question 3.5+ years ago. It helped OP at the time. – Jared Burrows Jul 15 at 14:13

To add to Jared's answer (can't comment - not enough reputation yet :/). This works with the emulator only so I wrote an app you can run on a real device and it provides exactly the same interface (telnet to :5554 and run "geo fix ..." or "geo nmea"): MockGeoFix

share|improve this answer
mockgeofix is not connecting throught telnet – user54098 Jun 24 at 18:48
mockgeofix runs the telnet sever and you connect to mockgeofix using telnet – luv Jun 25 at 11:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.