Android Tasker – Set location

I needed to be able to set location with Tasker. Here’s how I did.

Fake GPS

  1. In Tasker create a task – name it “Set location”
  2. Add action > Location > Location mode
  3. Set “Mode” to “Device Only”
  4. Add action > App > Kill App > Fake GPS
  5. Tick “Use Root”
  6. Add action > App > Launch App > Fake GPS
  7. Add action > Task > Wait
  8. Set to 5 seconds
  9. Add action > Code > Run Shell
  10. Tick “Use Root”
  11. In “Command” insert the following:
am startservice -a com.blogspot.newapphorizons.fakegps.START -e latitude 47.39769 -e longitude -117.65021

If you need to update the Fake GPS location, use the following command:

am startservice -a com.blogspot.newapphorizons.fakegps.UPDATE -e latitude 55.689773966271304 -e longitude 12.551620809282463

To stop Fake GPS, use this:

am startservice -a com.blogspot.newapphorizons.fakegps.STOP

Leave a Reply

Your email address will not be published. Required fields are marked *