Page 1 of 1

Interfacing with Fake GPS

Posted: 05 Feb 2014 20:03
by timbit6002
Hello,

I know that it is possible to interface Tasker with Fake GPS, but does anyone know how to properly interface Automagic with Fake GPS?

I am having issues figuring this out on my own. I tried sending Broadcasts but I may be inputting my Extra information wrong.

These are the Tasker instructions for reference:
Q: Tasker integration (Donate version only)
To start Fake GPS at (38.89765, -77.0365)
1. Create a new task and entitle it "Start Fake GPS"
2. Add Action -> Misc -> Send Intent
3. Fill fields:
- Action: com.lexa.fakegps.START
- Extra: lat:38.89768D
- Extra: long:-77.0365D
- Target: Service

To stop Fake GPS use
- Action: com.lexa.fakegps.STOP
- Target: Service

Re: Interfacing with Fake GPS

Posted: 07 Feb 2014 09:17
by Martin
Hi,

Automagic has no built-in action to send intents to services so you have to resort to action Execute Command with following commands (untested):
am startservice -a com.lexa.fakegps.START --ef lat 38.89768 --ef long -77.0365
respectively:
am startservice -a com.lexa.fakegps.STOP

Regards,
Martin