Tasker (how to disable maps & location provider) - Android Apps and Games

Disable google maps and location provider and enable them when you want rather than when google thinks you should
Required:
Tasker
Secure settings (free - but consider supporting through a donation because this makes tasker even more awesome)
How to:
Enable secure settings helper
Profile 1:
Profile: screen off & variable - Nav = 1
Task:
plugins/secure settings/maps disabled (user)
plugins/secure settings/location services disabled
variable set Nav to 0
Profile 2
Profile: apps/navigation & waze (or whatever other gps apps you use)
Task: GPS on - plugins/secure settings/GPS enabled
Exit task: GPS off - plugins/secure settings/GPS disabled
Tasker task (you need to use this when you want to use nav (or whatever GPS app)
Unfreeze maps
plugins/secure settings/GPS enabled
plugins/secure settings/location services enabled
task/wait 4 secs
plugins/secure settings/maps enabled
variable set - Nav to 1
I have created this how to because several members have shown interest when I have spoken about it - this is a very rough and ready guide and I'm not sure that there isn't a better way to take back control of maps/location services but this works for me and has done for quite some time. I am very happy for people to add their own suggestions to improve this concept or let me know if its not needed because it is posted else where -I searched and couldn't easily find anything.
I use other bits and bobs also and will include these as options as and when I get time to update this thread, I will also try to make this how to a bit prettier as I get time but for now the instructions suffice because they work.
I hope some people find this useful and if not don't use it
Feel free to ask questions here and I will do my best to help - I do this because so many kind XDA'ers have helped me so I like to try and give back what little I can

reserved

So it's just not enough to turn off gps and location services?

I have something similar, yet different. I noticed that I would sometimes use Maps, switch to a different app briefly, then switch back, which caused the GPS to ping-pong inefficiently, so I added a little timer :
Context:
Map app
+
Screen On
Entry task ("Location On"):
Stop Location Off task
Secure Settings/Location Services enabled
Secure Settings/GPS enabled
Exit task ("Location Off"):
Wait 10s
Secure Settings/Location Services disabled
Secure Settings/GPS disabled
I realize my current version doesn't have the freezing, but I figured the timer (one should customize the time!) might be of interest. It's not too hard to mix and match the two.
Also, I recommend using the Disable Google Network Location Consent Xposed module with this. The alternative is using dpad to take care of the dialog that comes up when you activate Location Services:
Input action: Dpad, Right, 1
Input action: Dpad, Click/(Press?*) 1
*not sure about the English command in Tasker.

Omen of Peace said:
I have something similar, yet different. I noticed that I would sometimes use Maps, switch to a different app briefly, then switch back, which caused the GPS to ping-pong inefficiently, so I added a little timer :
Context:
Map app
+
Screen On
Entry task ("Location On"):
Stop Location Off task
Secure Settings/Location Services enabled
Secure Settings/GPS enabled
Exit task ("Location Off"):
Wait 10s
Secure Settings/Location Services disabled
Secure Settings/GPS disabled
I realize my current version doesn't have the freezing, but I figured the timer (one should customize the time!) might be of interest. It's not too hard to mix and match the two.
Also, I recommend using the Disable Google Network Location Consent Xposed module with this. The alternative is using dpad to take care of the dialog that comes up when you activate Location Services:
Input action: Dpad, Right, 1
Input action: Dpad, Click/(Press?*) 1
*not sure about the English command in Tasker.
Click to expand...
Click to collapse
That's really interesting, I have had similar glitch and your method send to be a good solution using timer. I used to use xposed module pre 4.4 but km seems to change something and xposed disable network location consent do toast no longer works. I am really interested in your other solution - using Dpad - please could you expand on how to do this?

Jimsilver73 said:
That's really interesting, I have had similar glitch and your method send to be a good solution using timer. I used to use xposed module pre 4.4 but km seems to change something and xposed disable network location consent do toast no longer works. I am really interested in your other solution - using Dpad - please could you expand on how to do this?
Click to expand...
Click to collapse
Sure. I didn't invent it, I found it somewhere else.
If the dialog is still the same in 4.4, the button selected by default is the left one, but you want to click the right one.
So, in the task listing:
+ > Input > DPad > select Right in the menu,
go back to the task
+ > Input > DPad > select Click/Press in the menu
The text export for Location On:
Code:
Location On (64)
A1: Stop [ Avec erreur:eek:ff Tâche: ] Si [ %BATT < 6 ]
A2: Stop [ Avec erreur:eek:ff Tâche:Location Off ]
A3: Secure Settings [ Configuration:Location Services Enabled Paquet:com.intangibleobject.securesettings.plugin Nom:Secure Settings Délai (Secondes):0 ]
A4: Secure Settings [ Configuration:GPS Enabled Paquet:com.intangibleobject.securesettings.plugin Nom:Secure Settings Délai (Secondes):0 ]
A6: Dpad [ Bouton:Droite Horaires de répétition:1 ]
A7: Dpad [ Bouton:Appui Horaires de répétition:1 ]
edit: forget about the export above, it's localized (French) and it got mangled when I first posted it without the (code) tag.
The last two lines are only for people who don't/can't use the XPosed module. I seem to remember you need to be rooted to use Dpad.
(I don't trigger Location when the battery is weak, hence the A1 - I hadn't mentioned it.)

Does the Tasker mod above work with Android 4.2.1 or 4.3?
As far as I know the Secure Settings plugin only allows location services to be toggled on 4.4+.

E--Man said:
Does the Tasker mod above work with Android 4.2.1 or 4.3?
As far as I know the Secure Settings plugin only allows location services to be toggled on 4.4+.
Click to expand...
Click to collapse
It always used to work for me on 4.2.x onwards, don't know about 4.1 (that seems a very very long time ago now )
BTW: since kk has matured, and ROMs /kernels become much more stable I no longer have the need to kill maps/location provider since my system tends to take care of itself nicely with my set up and I always have plenty of power left over at the end of the day (not that much difference with everything being killed), actually I'm quite enjoying what Google has to offer nower days, it's quite useful . Maybe if I was ever going away and not be near a power source for some days I might consider locking it down tight.
Thought I'd just share this as I was really paranoid about Google power drain in the past until a dev whom I respect said she used to do the same but doesn't have the need anymore - I was amazed to see she she was right (at least for newer devices )

Hi,
Has anyone succeeded in creating a Tasker profile with 4.4.2 that disables/enables location services automatically without having any confirmation dialogue to click on and without having to install xposed?
Please advise, thanks.

E--Man said:
Hi,
Has anyone succeeded in creating a Tasker profile with 4.4.2 that disables/enables location services automatically without having any confirmation dialogue to click on and without having to install xposed?
Please advise, thanks.
Click to expand...
Click to collapse
I use e robot now to enable and disable location when on maps or GPS, works really well, no annoying toast either

Jimsilver73 said:
I use e robot now to enable and disable location when on maps or GPS, works really well, no annoying toast either
Click to expand...
Click to collapse
Jim Silver,
Thanks for your reply! Just to confirm, you able to disable/enable location services without installing xposed just root and e robot, and no toast notification?
Also, how would you rate e robot in comparison with Tasker? Is it safe to install?
Lastly, I'm not sure why Tasker can't do this either I'm baffled.

E--Man said:
Jim Silver,
Thanks for your reply! Just to confirm, you able to disable/enable location services without installing xposed just root and e robot, and no toast notification?
Also, how would you rate e robot in comparison with Tasker? Is it safe to install?
Lastly, I'm not sure why Tasker can't do this either I'm baffled.
Click to expand...
Click to collapse
E robot is good, very good dev - author of widgetsoid which I have been using for years
Sorry, I may have been a bit confusing, what I have set e robot to do is to change the modes of location from battery saving to high accuracy and then back again to battery saving. This is working well for me with my set up.

Related

[Q] Tasker - GPS On/Off?

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

Tasker profile help please

Hi, running stock rooted + franco + xposed + gravity box.
So i'm getting back into tasker and these are the profiles i want to create:
-Switch to 3g when internet apps are launched, then back to 2g for signal strength
-Unlock keyguard at home wifi
-turn on data every 30min for sync
-airplane mode at night
-nfc tag on nexus7 for hotspot
-send GPS info once SMS received
-ring phone when SMS received
I've done a lot of searching but can't seem to get airplane mode to toggle with secure settings (something to do with 4.4).
Could someone point me in the right direction? Cheers
Nbsss said:
Hi, running stock rooted + franco + xposed + gravity box.
So i'm getting back into tasker and these are the profiles i want to create:
-Switch to 3g when internet apps are launched, then back to 2g for signal strength
-Unlock keyguard at home wifi
-turn on data every 30min for sync
-airplane mode at night
-nfc tag on nexus7 for hotspot
-send GPS info once SMS received
-ring phone when SMS received
I've done a lot of searching but can't seem to get airplane mode to toggle with secure settings (something to do with 4.4).
Could someone point me in the right direction? Cheers
Click to expand...
Click to collapse
You will need Secure Settings from play store for keyguard and airplane mode. It's a Tasker plugin.
Don't do the data toggling. Not a good plan. You can toggle sync with Tasker (auto sync). But cycling data is no good. If you have battery problem, this won't fix it. I have Tasker turn off sync if I drop to EDGE. That's because the syncing times out and keeps the device awake forever. If TMo had usable 2g, it would be a different story.
For signal try Intelli3g. Not sure if that is what you want.
Send GPS coordinates via SMS:
Code:
Profile: Location (3)
Event: Received Text [ Type:Any Sender:C:ANY Content:Where are you? ]
Enter: Location (12)
Task: Location (12)
Run Both Together, Stay Awake
A1: Get Location [ Source:GPS Timeout (Seconds):30 Continue Task Immediately:eek:n Keep Tracking:eek:ff Continue Task After Error:eek:n ]
A2: Variable Set [ Name:%locft To:round(%LOCACC * 3.28084) Do Maths:eek:n Append:eek:ff ]
A3: Variable Set [ Name:%locft To:ft Do Maths:eek:ff Append:eek:n ]
A4: Send SMS [ Number:%SMSRF Message:Battery: %BATT%. Location (%locft): http://maps.google.com/maps?q=%LOC Store In Messaging App:eek:ff Continue Task After Error:eek:n ]
Default location unit is meters, I converted to feet. Not necessary, it was just a reason to play with Tasker some more.
Send different notification when a certain person texts (at a certain day and time)
Code:
Profile: Urgent SMS (25)
Event: Received Text [ Type:Any Sender:person1/person2/person3/person4/person5 Content:* ]
Day: Mon, Tue, Wed, Thu or Fri
Time: From 06:50 Till 16:10
State: Not Headset Plugged [ Type:Any ]
Enter: Urgent SMS (27)
Task: Urgent SMS (27)
A1: Silent Mode [ Mode:eek:ff ]
A2: Notification Volume [ Level:7 Display:eek:ff Sound:eek:ff ]
A3: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A4: Play Ringtone [ Type:Notification Sound:24 Notification Stream:5 ]
That should get you started. Have fun with Tasker, it's my favorite app If you have any more questions, feel free to ask, but include as much information as possible.
I think you'll have better luck here.
EDIT: Never mind. I see Aerowinder is a Tasker guru.
With respect to the airplane mode problem, Secure Settings Helper is now incompatible with 4.4, and has been replaced by System+ Module. You can update it in settings.
Aerowinder said:
That should get you started. Have fun with Tasker, it's my favorite app If you have any more questions, feel free to ask, but include as much information as possible.
Click to expand...
Click to collapse
Thanks Aero!
I've happened to find this xposed module: http://repo.xposed.info/module/lv.id.dm.airplanemhx and its working perfectly, so that's that done
Thanks for the GPS task, i had it set up a year and a half ago, but lost my backup whilst switching phones and flashing etc and couldn't remember how i did it
I read Gravity Box recently added a few tasker shortcuts, seems really powerful, i'll see what i can use it for..maybe when i get my Pressy button i'll use tasker + GB to toggle immersive mode...the possibilities!
Will share my profiles here when i get them done, in-case someone finds some use, thanks mate :good:
Edit:
is the battery usage whilst data on and sync off comparable to data off (on 2g)?
Edit2:
Got the following working:
keyguard disabled when wifi connected
airplane overnight
toggle display rotation lock by shaking device
Using 'smart radio' feature of GBox, and turn on sync every half hour when not on wifi.
SMS ring when misplaced phone
SMS Gps when lost /stolen
Now just need to find my nfc tags lol
Nbsss said:
Thanks Aero!
I've happened to find this xposed module: http://repo.xposed.info/module/lv.id.dm.airplanemhx and its working perfectly, so that's that done
Thanks for the GPS task, i had it set up a year and a half ago, but lost my backup whilst switching phones and flashing etc and couldn't remember how i did it
I read Gravity Box recently added a few tasker shortcuts, seems really powerful, i'll see what i can use it for..maybe when i get my Pressy button i'll use tasker + GB to toggle immersive mode...the possibilities!
Will share my profiles here when i get them done, in-case someone finds some use, thanks mate :good:
Edit:
is the battery usage whilst data on and sync off comparable to data off (on 2g)?
Edit2:
Got the following working:
keyguard disabled when wifi connected
airplane overnight
toggle display rotation lock by shaking device
Using 'smart radio' feature of GBox, and turn on sync every half hour when not on wifi.
SMS ring when misplaced phone
SMS Gps when lost /stolen
Now just need to find my nfc tags lol
Click to expand...
Click to collapse
The SMS GPS coordinates to my contacts (C:ANY) is mostly for work and family. It really has no purpose for lost/stolen applications. For that application, something like Cerberus seems the better option because it can silently track the phone. Also lock, remote wipe, etc. Yes, you could do it with Tasker. But you would have to test it!
You mentioned battery usage with syncing. I will say that the only reason I disable sync when I'm on 2G is because TMo's 2G is unusable. I can sometimes get 5-10kb/s, but most of the time (>90%), there is no data transfer. Just timeouts as far as the eye can see. This causes issues when Google apps trying to sync, because the programmers didn't have the foresight to add timeouts to their sync attempts. Brilliant. I'm an amateur programmer, and that seems like a no-brainer to me. If a condition is likely to happen, you account for it.
I am generally against conditional syncing (what you are after). Syncing with online services (gmail, hangouts, etc). is a fundamental feature of our devices. Disabling it, except under very specific criteria, is pointless. Why even have a smartphone? If you have control over your applications, there is no noticeable battery impact. Some of the bad applications, like Facebook, need to be controlled. Sometimes the app settings are enough, other times, you need Greenify.
All of that said, I do disable sync for things that I don't want syncing. Like Google Photos and People details. I don't want them to sync, ever, for any reason. For a time I also had Keep sync disabled because it was constantly keeping my device awake. That seems to be fixed now, but I still keep an eye on it because I don't trust Google to get it right.
Aerowinder said:
The SMS GPS coordinates to my contacts (C:ANY) is mostly for work and family. It really has no purpose for lost/stolen applications. For that application, something like Cerberus seems the better option because it can silently track the phone. Also lock, remote wipe, etc. Yes, you could do it with Tasker. But you would have to test it!
You mentioned battery usage with syncing. I will say that the only reason I disable sync when I'm on 2G is because TMo's 2G is unusable. I can sometimes get 5-10kb/s, but most of the time (>90%), there is no data transfer. Just timeouts as far as the eye can see. This causes issues when Google apps trying to sync, because the programmers didn't have the foresight to add timeouts to their sync attempts. Brilliant. I'm an amateur programmer, and that seems like a no-brainer to me. If a condition is likely to happen, you account for it.
I am generally against conditional syncing (what you are after). Syncing with online services (gmail, hangouts, etc). is a fundamental feature of our devices. Disabling it, except under very specific criteria, is pointless. Why even have a smartphone? If you have control over your applications, there is no noticeable battery impact. Some of the bad applications, like Facebook, need to be controlled. Sometimes the app settings are enough, other times, you need Greenify.
All of that said, I do disable sync for things that I don't want syncing. Like Google Photos and People details. I don't want them to sync, ever, for any reason. For a time I also had Keep sync disabled because it was constantly keeping my device awake. That seems to be fixed now, but I still keep an eye on it because I don't trust Google to get it right.
Click to expand...
Click to collapse
Good advice.
I already have Cerberus installed in system partition, but I prefer tasker for locating.
A year ago I lost my phone and just my luck Gps and data were off unfortunately, making Cerberus quite useless as it can't switch those on.
My tasker profile was set to turn on both and add an additional lockscreen pin, so worked out in the end.
I think it pays to not put all your eggs in one basket
Nbsss said:
Good advice.
I already have Cerberus installed in system partition, but I prefer tasker for locating.
A year ago I lost my phone and just my luck Gps and data were off unfortunately, making Cerberus quite useless as it can't switch those on.
My tasker profile was set to turn on both and add an additional lockscreen pin, so worked out in the end.
I think it pays to not put all your eggs in one basket
Click to expand...
Click to collapse
You need Secure Settings to enable GPS in KitKat. The Tasker toggle doesn't work. Just a tip, not sure if you were aware.
Aerowinder said:
You need Secure Settings to enable GPS in KitKat. The Tasker toggle doesn't work. Just a tip, not sure if you were aware.
Click to expand...
Click to collapse
Yep, Airplane mode also, but you need system+ module. Also removed the xposed module I mentioned earlier, as secure settings is working now.
Gonna test my profiles for a bit longer then post them here soon. Thanks mate

[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²

Tasker and Touchwiz

I came from an LG G3 with CM12 and then 13 so I have never had problems with tasker just working. When I tried to set up some of the most basic tasker profiles I ran into problems on the Note 5. I'm sure this post is similar to many before it but I figured it might just help out someone that was in my situation.
The first profile I just had to have:
When phone connects to my car BT head unit it will start wifi hotspot. I tried every setting I could and even tried using Fox Fi to get it to work with just tasker...then I stumbled upon AutoInput. Its great, you can do things that I previously assumed you needed root for.
I was able to set up my phone to do just what I wanted using a combination of the AutoInput apps built in task creator and inputing manual coordinates for touches. I got tasker to do just what I wanted it to do, albeit in a much more round about way than usual.
The most simplified version of the task I could put together was:
1. AutoInput Unlock screen
2. AutoInput global action: quick settings
3. Task wait 370ms (can vary but I found you had to have a least some wait time or it would not consistently register the next touch)
4. AutoInput Action: Point value 154,676 (Use dev settings and turn on show pointer to see what the x,y coordinates of your hotspot switch is)
5. Task wait 470ms (again same as #3)
6. AutoInput Action: point value 1212,1544
7. Task Wait 5 sec (I need to play around with this a little more, I'm sure it could be less)
8. Display: System Lock
I would like to here from others on how they have implemented tasker in touchwiz. And please let me know if I was just an amature and didnt know how to do this with tasker alone.

Question How to prevent apps from auto starting at boot

Hello,
All is in the topic, I've got an app that starts automatically when my phone is powered on.
It is Aircall, an app I use for passing and receiving calls at work.
I would like this app not to start automatically each time I power on the phone.
Is there a setting for disabling some apps to autostart ? Or an app you can advise ?
Thanks for your help.
Check the app's preferences to see if there are options.
In the Android settings, go to Apps > See All > (your app. eg Air Call) > App battery usage and set it to 'restricted.' This will greatly restrict an app's ability to do many things in the background.
Other than that, you'd have to root your device to get any more control over the app using something like Servicely (Google Play Store), My Android Tools (apkmirror.com), Permission Manager X (fdroid), AppOppsX (fdroid), or Blocker (fdroid) to control the app's broadcast receivers. Apps can choose to respond to various phone states such as when a boot is completed, when network connectivity changes, power is connected/disconnected, etc. It can take some aggressive action to fully prevent an app from always running.
If you're just annoyed by a notification icon in your notification area you can always disable that app's notification so it doesn't appear.
I have tried all of these things to control apps but if apps use a lot of various broadcast receivers they will find ways to keep running. You may find stopping it to have unintended consequences. It being a work app, I'd consider simply disabling the app's notificaiton if it has a persistent notifcation or something. The next step would be to restrict the app as in 2. The most aggressive thing is to root and tinker with its broadcast receivers.
Hello jawz101,
Thank you very much for this very complete answer.
All your precise instructions are very interesting.
I'll have a look at all these solutions.
Thanks again.
I am not sure about straight forward solution. But I would like to use Greenify app. Add apps to it once and run it once everytime you restart your phone.

Categories

Resources