Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fake location AND speed in emulator. KML or GPX?

Tags:

android

I figured how to connect emulator + IntelliJ + DDMS all together and I can spoof GPS location fine.

I figured how to generate KML and GPX files.

Issue I have: 1. KML file I generate using google maps doesn't have speed info. 2. GPX files won't even open in DDMS

Ideally I'd like to solve my problem with either KML or GPX (I don't care which format to use) but I need to feed coordinates and speed into emulator.

Is there any way to achieve this?

like image 790
katit Avatar asked Apr 05 '11 01:04

katit


1 Answers

So far no responses :)

Here is what I found myself. The only way (as far as I see it) to pass speed into emulator is to use Telnet and pass command like this:

geo nmea $GPRMC,040302.663,A,3939.7,N,10506.6,W,0.27,358.86,200804,,*1A

Only GPRMC format can carry speed and other goodies.

Now I needed better way to pass steps to my application. Since my main tool is C# - I just wrote simple telnet client, put it into test class and voila! Now I get step by step GPS spoofing on emulator. I can use any source and then pass it into emulator for replay.

like image 83
katit Avatar answered Nov 15 '22 08:11

katit