Saturday 30 July 2016

[APP] Emulator-like location mocking (geo fix) for phones (open source)

MockGeoFix

MockGeoFix
allows you to fake locations on the phone exactly the same as the emulator - that is "just telnet to port 5554" and use "geo fix" and "geo nmea" commands. That's it!


Code:


telnet my_phone_ip 5554
Trying my_phone_ip...
Connected to my_phone_ip.
Escape character is '^]'.
MockGeoFix: type 'help' for a list of commands
OK
geo fix 50 50
OK
geo nmea $GPRMC,081836,A,3751.65,S,14507.36,E,000.0,60.0,130998,011.3,E*51
OK


Features
  • geo fix and geo nmea commands works just like with the emulator!

  • overrides OOM/low-memory killer priority so app never gets killed by the OS (requires root)

  • run as a foreground service (optional!)

  • support for Android from Gingerbread to Nougat

  • open-source

  • APKs direct download

  • In Google Play


Why
Actually I was suprised there wasn't an app like this available already - tons of apps for location faking in Play store but I already have my tools that expect the emulator interface, why change them! I think it was actually supported by Android at one point but was dropped and now the DDMS documentation says "The Emulator Control tab, shown in Figure 1, is no longer supported. Use the Android Emulator for these features.". It was not very difficult to create this app and hopefully it will be useful to others!

No comments:

Post a Comment