[Q] Tasker - GPS On/Off? - Nexus 5 Q&A, Help & Troubleshooting

Anyone finding success with Tasker getting GPS control working on their Nexus 5 (Android 4.4)?
Tasker v4.1
Rooted
Secure Settings Pro/Helper
Example:
Profile>Application "GoogleMaps">New Task ("GPS On")>Plugin>SecureSettings>Edit>HelperActions>GPS>On>Save
ExitTask same as above but GPS>Off
When I launch GoogleMaps I can see Tasker working, but from within Tasker I see an error: "An error occurred while executing Action:GPS"
Any suggestions? Related to "Location Mode" setting approach with "High Accuracy", "Battery Saving", "Device Only" options?
Thanks!

I solved this problem using Helper Alternative in Secure Settings (last option of Helper tab in Secure Settings)
Now with "gps on" action you switch from battery saving mode to high accuracy, and vice versa vith "gps off".
You can also use the action to enable/disable the entire location service but in that case every time you want it on it shows an annoying google location consent disclaimer

aecant said:
I solved this problem using Helper Alternative in Secure Settings (last option of Helper tab in Secure Settings)
Now with "gps on" action you switch from battery saving mode to high accuracy, and vice versa vith "gps off".
You can also use the action to enable/disable the entire location service but in that case every time you want it on it shows an annoying google location consent disclaimer
Click to expand...
Click to collapse
Where is the option for battery saving mode or high accuaricy? I set it up only for Location services and the google location consent appear.
Also, is it possible to set it off in another way? because if I click in Tasks button in my phone, it suddenly turns gps off although Maps keeps running in the background

chimas16 said:
Where is the option for battery saving mode or high accuaricy? I set it up only for Location services and the google location consent appear.
Click to expand...
Click to collapse
you can switch between battery saving mode and high accuracy toggling the gps option:
gps on -> high accuracy
gps off -> battery saving mode
chimas16 said:
Also, is it possible to set it off in another way? because if I click in Tasks button in my phone, it suddenly turns gps off although Maps keeps running in the background
Click to expand...
Click to collapse
I use a workaround, I have set tasker to wait 20 seconds before disabling gps when i close apps that need location services, so when I switch to another app it doesn't turn off gps immediatly. I don't know other methods to make tasker consider that the app is running in the background

aecant said:
you can switch between battery saving mode and high accuracy toggling the gps option:
gps on -> high accuracy
gps off -> battery saving mode
I use a workaround, I have set tasker to wait 20 seconds before disabling gps when i close apps that need location services, so when I switch to another app it doesn't turn off gps immediatly. I don't know other methods to make tasker consider that the app is running in the background
Click to expand...
Click to collapse
How do you set tasked to time out after certain time? I keep trying but it just stays on high accuracy

p4ranoid4ndroid said:
How do you set tasked to time out after certain time? I keep trying but it just stays on high accuracy
Click to expand...
Click to collapse
i set a "wait" action before disabling gps

aecant said:
i set a "wait" action before disabling gps
Click to expand...
Click to collapse
How do you set a wait action? Create another task?

p4ranoid4ndroid said:
How do you set a wait action? Create another task?
Click to expand...
Click to collapse
no, you add an action, just hit the plus button>task>wait and set the amount of time you desire

GPS or locational services turning on solution
I created this tasker for if my phone got lost, but could be used for the Google Maps apps or Photo geotagging. This is for phones that are locked and require the google consent notice to be accepted.
Profile: recieved text "lostphone"
Task:
Secure settings: pattern lock disabled
Secure settings: wake phone
WIFI on
Mobile Data on
Secure settings: Location Services Enabled
Wait: 2 seconds
Dpad: Right repeat x2 (this is because the first time it doesn't work)
Dpad: Press repeat x1
Wait: 2 seconds
Secure settings: Pattern lock enabled
Secure settings: lock device
this makes the phone vulnerable but it only takes seconds for the phone to relock itself
Lewis

Hi,
I just installed tasker app on my Galaxy S7 Edge.
I tried to create a task to switch on GPS when running Pokemon App and then switch off once app is closed.
Task:
1. Launch App
App Pokemon Go Data %LOC
I run the task, as expected, it opens pokemon go app and 4G(gps) icon appears on the upper-left corner of my phone. But the icon won't disappear when I manually turn off the Location on Quick Settings.
Please help how to restore Location icon on-off.
Thank you

Related

[Q] Tasker and GPS on the charge

Hi --
I am attempting to use Tasker to turn GPS on/off when I start/close the Maps application on the Charge, but Tasker won't do it. It works when I test the tasks in the Tasker app, but not when I actually start/close Google maps. The profile is running when I open maps (the notification window confirms this), but again, Tasker will not toggle GPS on/off. Interestingly, the legal window that pops up and must be agreed to DOES pop up when I start maps, which tells me Tasker is attempting to turn on GPS, but it disappears from the screen before I can click on "agree." Anyone else run into this problem? On a side note, since I brought them up, is there any way to get around the legal agreements that need to be agreed to every time GPS services are turned on/off? God, those are annoying.
Thanks in advance!

[Q] can tasker be automated to turn off location completely?

is it possible to get tasker to automatically turn on GPS when when screen is on, and turn off GPS when the screen is off(or the device is locked)
i tried for about 2 hours yesterday and ended up giving up the most i could get it to do is just toggle the location settings
are you trying to duck NSA surveillance or increase battery life? because getting that working would accomplish neither.
Enddo said:
is it possible to get tasker to automatically turn on GPS when when screen is on, and turn off GPS when the screen is off(or the device is locked)
i tried for about 2 hours yesterday and ended up giving up
Click to expand...
Click to collapse
You will need secure settings plugin to do that, but yes, it should be possible.
I have a profile that enables GPS (active) only when I launch maps, and disables GPS (switch to battery saving mode in 4.4) when I exit maps.
In my case, disabling active GPS (i.e.. keep it in battery saving mode) helped random wakelocks from location reporting etc, Maps (navigation) is the only app that I use that needs active GPS. I don't have any other app that absolutely needs to have GPS coordinates for me.
Please use thread titles.
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
xBeerdroiDx said:
are you trying to duck NSA surveillance or increase battery life? because getting that working would accomplish neither.
Click to expand...
Click to collapse
im trying to decrease wakelocks at night while sleeping. location + google now keeps my phone up almost all night. i just want to automate this instead of having to do it manually
jj14 said:
You will need secure settings plugin to do that, but yes, it should be possible.
I have a profile that enables GPS (active) only when I launch maps, and disables GPS (switch to battery saving mode in 4.4) when I exit maps.
In my case, disabling active GPS (i.e.. keep it in battery saving mode) helped random wakelocks from location reporting etc, Maps (navigation) is the only app that I use that needs active GPS. I don't have any other app that absolutely needs to have GPS coordinates for me.
Click to expand...
Click to collapse
battery saver mode + google now keeps my phone up all night with location pings. i need to disable location completely
Enddo said:
battery saver mode + google now keeps my phone up all night with location pings. i need to disable location completely
Click to expand...
Click to collapse
If location is set to Battery saver mode, that should not cause battery life degradation. But if it is, then 'disabling GPS' is not what you want to do - you want to see how to disable location reporting entirely (exactly as what your updated title indicates).
I don't think secure settings has been updated to support that feature in 4.4 - but hopefully other forum members will have suggestions.
jj14 said:
If location is set to Battery saver mode, that should not cause battery life degradation. But if it is, then 'disabling GPS' is not what you want to do - you want to see how to disable location reporting entirely (exactly as what your updated title indicates).
I don't think secure settings has been updated to support that feature in 4.4 - but hopefully other forum members will have suggestions.
Click to expand...
Click to collapse
i dont know what to tell you then. http://forum.xda-developers.com/showthread.php?t=2551846 shows tons of people with this issue
it doesn't drain battery while my phone is on and active. but when i lock the screen at night to sleep, my phone gets hardly any deep sleep mode. i took a shower yesterday and these two services woke my device up 96 and 44 times within a 20 minute span
i have already tried disabling location reporting and location history. this did not fix anything while my device was locked. it still had hundreds of wakeups at night
and i believe you're right. i dont think secure settings works with 4.4 either this is the issue i've been running into, i believe
Enddo said:
... believe you're right. i dont think secure settings works with 4.4...
Click to expand...
Click to collapse
It does work, but you first have to install the alternative helper in settings. Then Location Services will be enabled and you can turn it on and off when you want.
Sent from my Nexus 5
PhilipTD said:
It does work, but you first have to install the alternative helper in settings. Then Location Services will be enabled and you can turn it on and off when you want.
Sent from my Nexus 5
Click to expand...
Click to collapse
im pretty sure i installed that. well, first i installed the helper, and then i installed it as a service(option at hte bottom) since i had root
Enddo said:
im pretty sure i installed that. well, first i installed the helper, and then i installed it as a service(option at hte bottom) since i had root
Click to expand...
Click to collapse
Just make sure it's the alternative one.
Sent from my Nexus 5

[Q] tasker location not updating

So tasker isn't updating location properly.
I have it using "net" for location and location mode is set to "battery saving"
Upon phone restart this works...
Until I change mode to "high power" for navigation, etc...
After toggling location mode tasker will cease updating location until I reboot the phone.
Even after going back to battery saver... google maps location works... but tasker refuses to change.
Anyone else having issues like this? what gives?
I have used location triggers from Tasker but never the "location" in Tasker.
If you want a low battery location trigger, use the State->Cell Near instead.
If you are ok with slightly higher battery usage with higher accuracy and got USD1 to spare, try the AutoLocation plugin that uses GeoFences.
It works great for weeks at a time... until I change my location mode from "battery saving" to "high power" (and later back to "battery saving")
Only after I change location modes does it stop working until a reboot (even force close and restart won't fix the issue)
Anyway, I'd rather not install AutoLocation... it seems like it does the same thing the location profile does in tasker...
orb360 said:
Anyway, I'd rather not install AutoLocation... it seems like it does the same thing the location profile does in tasker...
Click to expand...
Click to collapse
It definitely doesn't, if you are up for it, you can read up about Android Geofences, it is a new thing by Google and supposedly save more battery compared to previous methods of location detection.
Its sad that Tasker doesn't include this by default internally though.
orb360 said:
So tasker isn't updating location properly.
I have it using "net" for location and location mode is set to "battery saving"
Upon phone restart this works...
Until I change mode to "high power" for navigation, etc...
After toggling location mode tasker will cease updating location until I reboot the phone.
Even after going back to battery saver... google maps location works... but tasker refuses to change.
Anyone else having issues like this? what gives?
Click to expand...
Click to collapse
I am also trying to do the same profile but I am using disconnect from work wifi as the trigger. Can you please share how did you create the action to change the location mode because I can't seem to find it in tasker.
I think it has to do with LTE. I wound up using cell tower location within Tasker instead and that works fine.
Sent from my Nexus 5 using Tapatalk

[TASKER] Share your best and favorite Tasker profiles for OnePlus 2!

Hi fellow XDA members, I just came across this awesome app called Tasker. I am still trying to figure it out and learning about it but i know it got huge potential to automate our devices. Many of you must be experts in using it. So I created this thread for all to share their best and favourite Tasker profiles for OnePlus 2. Looking forward to see some wonderful ideas to automate our beloved OnePlus 2.
tasker is not device or rom specific at all, hence i don't think that people ( experienced users ) who us tasker in a sophisticated manner would read and post much in this thread, there are dedicated tasker thread. just stumbled in to see what tasker profiles (tasks) would be especially for the OP2 and as suspected, there are none yet.
I've been looking for a way to use the fingerprint sensor, to secure certain apps, such that only I can access them with my fingerprint. I haven't succeeded yet, so if anyone has an Idea I would appreciate it.
Jakob1379 said:
I've been looking for a way to use the fingerprint sensor, to secure certain apps, such that only I can access them with my fingerprint. I haven't succeeded yet, so if anyone has an Idea I would appreciate it.
Click to expand...
Click to collapse
That's a great idea. Experts, please shed some light on this if it's possible or not.
I don't own a OPO, but I imagine the profiles I run would work on any android. I've only got a few at the moment, some I ditched because I no longer had a use for them since getting on PAC ROM.
Current profiles are:
ClearCache. Autolaunches the Fast Cache Cleaner app everyday at 6:00PM. The app has no UI, so it doesn't interfere with what I'm doing at the time and just quietly clears cache in the background.
LowerMediaVolume: When headphones are plugged in, media volume gets reset to 2. Got sick of scaring the pants off myself when I'd go to listen to music and had forgotten my media volume was maxed out...
TurnGPSOnWhenWazeIsLaunched: I use Waze as my navigator, so I have it set to automatically turn GPS on (through the Secure Settings plugin) when the app is launched. Also included an exit task so once I leave navigation, GPS will shut off as well.
BirthControlTxt and CleaningReminder: They're similar profiles for my bad memory. Everyday at 11:45PM, my phone sends me an SMS reminding me to take my pill (I also have an alarm for this set at 11, this alert is a fallback just in case my alarm goofs). CleaningReminder is set to go off every Monday, but I only clean the factory every other Tuesday. So I set the cool down period to every 13 days, and hopefully that will 'disable' the alert every other Monday. I just made that one so I haven't gotten to test that. In the past, I also had an AutoReboot profile to reboot the phone everyday at 7AM, but I haven't gotten ballsy enough to try it since switching to a somewhat unstable ROM
http://forum.xda-developers.com/galaxy-grand-duos/themes-apps/app-tasker-to-customize-phone-t2876179
Check this out.. I have most of them now also..
Data off when screen off and the data connects when turning on the screen
zombunny said:
TurnGPSOnWhenWazeIsLaunched: I use Waze as my navigator, so I have it set to automatically turn GPS on (through the Secure Settings plugin) when the app is launched. Also included an exit task so once I leave navigation, GPS will shut off as well.
Click to expand...
Click to collapse
Can you share this profile
I can't get to turnoff the gps
Sent from my ONE A2005 using Tapatalk
fburgos said:
Can you share this profile
I can't get to turnoff the gps
Sent from my ONE A2005 using Tapatalk
Click to expand...
Click to collapse
Certainly.
Profile: Application/Waze
Task: Plugin/Secure Settings/System + Actions/GPS/Set ON
Exit task (to create exit tasker: once you have built the above Task, go into your profiles, expand your Waze profile, and long press on your task, then select to add an exit task): Plugin/Secure Settings/System + Actions/GPS/Set OFF.
Results may vary from device to device. This profile worked great when I had a Jellybean stock ROM, now I'm running PAC on 5.1 and while it does work, it occasionally will put my GPS on 'device only' instead of high accuracy, so for reliablity I just toggle GPS myself in my notification bar until I think or hear of a way to do this more reliably in Tasker.
I did it that way but wasn't working...
Cleaned flashed oxygen now works
Thanks
Sent from my ONE A2005 using Tapatalk
Need some help...
Trying to use Tasker to create an action to the 4636 Hidden Menu, so then can export it to an app for quick access.
Was originally trying to do it the phone but didn't work...
Right now I'm trying:
System > Send Intent
Action: android.intent.action.MAIN
Package: com.android.settings
Class: com.android.settings.TestingSettings
Still nothing though
Thanks
khaos64 said:
Need some help...
Trying to use Tasker to create an action to the 4636 Hidden Menu, so then can export it to an app for quick access.
Was originally trying to do it the phone but didn't work...
Right now I'm trying:
System > Send Intent
Action: android.intent.action.MAIN
Package: com.android.settings
Class: com.android.settings.TestingSettings
Still nothing though
Thanks
Click to expand...
Click to collapse
Figured it out...
Needed one additional setting
System > Send Intent
Action: android.intent.action.MAIN
Package: com.android.settings
Class: com.android.settings.TestingSettings
Target: Service
Tried to set tasker to turn on gps when i launch waze but gps cannot be turned on although I have set it properly through secure settings. Anybody can help?
Sent from Oneplus²
Tasker for dark mode?
I'm wondering if Tasker can be used to turn on dark mode on the Oneplus 2 at a specific time of the day. What task option do I use?
spicediablo said:
Tried to set tasker to turn on gps when i launch waze but gps cannot be turned on although I have set it properly through secure settings. Anybody can help?
Sent from Oneplus²
Click to expand...
Click to collapse
I did the same with Google Maps..
PROFILE:
App > GMaps (os Waze)
ENTRY TASK (GPSMax):
Plugin > Secure Settings >System+ Actions > Location Mode > High Accuracy
[Flash "High Accuracy GPS enabled"]
EXIT TASK (GPSMin):
Plugin > Secure Settings > System+ Actions > Location Mode > Battery Saving
I always have battery seving location ON, so I just need to turn on High Accuracy while I'm using GMaps.
You have to install Secure Settings plugin and enable its XPosed Module
aroblu94 said:
I did the same with Google Maps..
PROFILE:
App > GMaps (os Waze)
ENTRY TASK (GPSMax):
Plugin > Secure Settings >System+ Actions > Location Mode > High Accuracy
[Flash "High Accuracy GPS enabled"]
EXIT TASK (GPSMin):
Plugin > Secure Settings > System+ Actions > Location Mode > Battery Saving
I always have battery seving location ON, so I just need to turn on High Accuracy while I'm using GMaps.
You have to install Secure Settings plugin and enable its XPosed Module
Click to expand...
Click to collapse
I think I got the settings right but it's not working.
Below is the description in text
Profile: Waze/gps (6)
Application: Waze, Sygic or Maps
Enter: GPS (7)
A1: Secure Settings [ Configuration:Location Mode/High Accuracy Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Display AutoRotate [ Setn ]
Exit: Autorotate Off (13)
A1: Display AutoRotate [ Setff ]
Sent from Oneplus²
spicediablo said:
I think I got the settings right but it's not working.
Below is the description in text
Profile: Waze/gps (6)
Application: Waze, Sygic or Maps
Enter: GPS (7)
A1: Secure Settings [ Configuration:Location Mode/High Accuracy Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A2: Display AutoRotate [ Setn ]
Exit: Autorotate Off (13)
A1: Display AutoRotate [ Setff ]
Sent from Oneplus²
Click to expand...
Click to collapse
Did you try putting a 1 second Wait at the beginning? Maybe the phone just needs some time..
And use a Flash in order to see if the profile is fired
How do I do that? Can you please give the exact options to set?
aroblu94 said:
Did you try putting a 1 second Wait at the beginning? Maybe the phone just needs some time..
And use a Flash in order to see if the profile is fired
Click to expand...
Click to collapse
Sent from Oneplus²
spicediablo said:
How do I do that? Can you please give the exact options to set?
Sent from Oneplus²
Click to expand...
Click to collapse
Before your A1 do:
Alert > Flash > "GPS fired" (and check the long option)
Activity > Wait > 1s
I can't find activity...
Anyway, the profile is activated but my gps doesn't change to high accuracy....
aroblu94 said:
Before your A1 do:
Alert > Flash > "GPS fired" (and check the long option)
Activity > Wait > 1s
Click to expand...
Click to collapse
Sent from Oneplus²

Consent popup each time I enable GPS (I want to use High Accuracy)

Hi,
Since about 2 weeks ago, every time I reenable GPS I get popus asking for permission for High Accuracy.
Problem is, I want HA mode. This is the mode I use by default, by I always disable Location (via Tasker action) if I'm not using an app that needs it.
Initially I thought it's a problem with Tasker, but I tested that even if I just use top-menu shortcut (or any other way to turn off GPS), I will get the popup when reenabling.
Steps to reproduce:
1. Enable GPS, switch to High Accuracy mode.
2. Turn off GPS (just the top menu icon, or slider in Settings).
3. Turn on GPS -> popup on the screen.
Phone is SM-G930F running Oreo, R16NW.G930FXXS2ERH6 software (stock).
Does this happen to anyone else? Can someone test?
Happens here as well, GS9+, everytime I use high accuracy mode, no matter the app.
Thanks! I still don't know what I can do about this, but at least you confirm it's not any special case.
Same on my Note 10+ -_- Rather annoying

Categories

Resources