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

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²

Related

Noob Tasker Problem

Trying Tasker out and did as instructed, but no dice:
1) Profile: Context: Hardware:Headphones In | Action: App: Player Pro
The Notification menu notes Tasker and Profile, but nothing happens.
(Notes: Initially, I had the Player Pro widget enabled. I disabled it, but no dice. I had enabled a Kill App Task: PowerAMP & Set Music Volume to 15, but no dice. Deleted features...still no dice.)
2) Profile: Wifi Analysis | Context: Application: Wifi Analyzer | Action: Net: Wifi: Set On| Exit Task: Wifi: Set Off
Nothing.
(Note: I removed the Exit task, but no dice. [The idea's to enable wifi when I launch Wifi Analyzer, and have it turn off when I exit])
3)MPlayer Autotoggle | Context: Application: PlayerPro or PowerAmp | Action: Kill App ....and this is where this one goes awry. The idea's to avoid having both PlayerPro and PowerAmp on at the same time. So if one's on, the other's off.
I killed this profile (3) and tried again with the previous two, but still...nothing.
What am I doing wrong?
==
Note: I also had Fast Reboot Enabled, but thought that it might be getting in the way, so I uninstalled. Still nothing.
The only other application that might be getting in the way is Watchdog lite, but I really doubt it....
1) I've had issues on one of my devices where the Load App feature wouldn't work if I was in the launcher. Try to add a second task like Alert-Vibrate to see if that triggers. If so you're narrowed it down to it being the action.
If that's the case, try downloading QuickShortcutMaker and AutoShortcut. Instead of using LoadApp, select AutoShortcut under plugins and then QuickShortCutMaker's entry under that again. Try to find the intent that loads the app, try it out before you exit the config screen. Maybe that works where load app doesnt.
2) Try to run the task manually, e.g just a task with wifi on. See if Tasker is at all able to toggle your WiFi on.
3) What do you mean this is where it gets awry? You mean it doesnt work or you don't know how to set it up? Easiest thing to do would be to have two profiles, one for each app running which will try to kill the other

Tasker - Galaxy S4 Edition

I've recently discovered Tasker** and i really loved it so i though that i'd better creat a thread so other people could do the same and by the same way this is an S4 Special Edition so we can share our profiles to optimise our phones.
*For thoese who doesn't know it : Tasker is an app that let you automate your phone and it's a very powerful tool.
**For further informations check this guide : [TUT] The Ultimate Noob/Beginners Guide to Tasker
*** Download Here : Tasker (3,98$) or ...
#############
Please share your profiles according to this form :
- Profile name : Profile description
How-To:
-Steps ..
-------------------
And if you have a request please don't be shy and post it, we will help each other :highfive:
#############
" * " Mean : press the back button
So here we go with my profiles :
- Screen brightness :I want that my screen brightness is at it's highest when i'm outside and at it's lowest when i'm home.
How-To :
0. Disable Auto-Brightness
1. Creat a new "State" (+)
2a. Select "Sensor"
2b. Select "Light level"
2c. FROM xx TO xx (here it depends on you NOTE : FROM value must be less the TO )
2d. Personally : From 90 to 100 *
3. It will propose you to creat a new task : Name it Outdoor light and click on the check icon
4a. Add a new action (+) -> Display -> Display Brightness -> Go Max (255) and let the "Immediate Effect" Checked *
4b. Now go back the profiles menu and keep holding on "Outdoor light" so you can add an exit task
5. Add an exit task : Name it Indoor Light and click on the check icon
6. + -> Display -> Display Brightness -> 45 (Here put the value that fit you)
///////////////////////////////////////////////////////////////////
- Wifi-Auto On : I want that my phone connect to my WIFI automaticly when i get home.
How-To :
1. + -> State -> Phone -> Cell Near
2. Click on Scan and start walking around your house (Just walk don't run ) and when you finish click on Stop *
3. New Task -> Name it : Wifi On -> + -> Net -> WiFi -> Set "On" *
4. Add Exit Task -> Name it : Wifi Off -> + -> Net -> WiFi -> Set "Off" * -> so when you're now longer wifi will be disabled
//////////////////////////////////////////////////////////////////
Extra :
Moto X Camera : If you want to have that cool Moto X Camera Gesture
(It work with every camera app so maybe you want to try it with Focal, 4.3 Camera .. Have tested only stock 4.2.2 Camera)
How-To :
0.Download the Moto X Camera from here : X Camera(!Optional!)
1. + -> Event -> Sensor -> Shake -> Left-Right
2. Task -> Plug in -> Secure Settings -> Wake Device -> Screen & Keyboard Lights On
3. Task -> App -> Camera
/////////////////////////////////////////////////////////////////
Is there a way to make 3g turn of when the screen is off and on when the screen is on again?
Sent from my GT-I9505 using xda premium
Sammath said:
Is there a way to make 3g turn of when the screen is off and on when the screen is on again?
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
I guess that this would work :
1. + -> State -> Display -> Display State -> Set to Off
2. New task : Name it 3G-Off -> + -> Mobile Data -> Set to Off
3. Add Exit task -> Name it 3G-On -> + -> Mobile Data -> Set to On
If this didn't worked then you should maybe try this :
Profile 1: Display off
How-To
Event -> Display -> Display off
Tasks
Variable -> Variable Set
Name: LCD%
To: 0
Tasker -> IF% ~ 1 PSAFE
Net -> Car Rental
Set: Off
Net -> Mobile Data
Set: Off
+++++++++++++++
Profile 2: On Display
How-To
1. Event -> Display -> Screen unlocked
#Tasks : name it what ever you want :
Variable -> Variable Set
Name: LCD%
To 1
Tasker -> IF% ~ 1 PSAFE
Net -> Mobile Data
Set: On
Net -> Car Rental
Set: On
Click to expand...
Click to collapse
-----------------------------------------------------
Please, for everyone next time if you have a request quote me (so i can have an instant notification every time someone post a request).
karimdag said:
I guess that this would work :
1. + -> State -> Display -> Display State -> Set to Off
2. New task : Name it 3G-Off -> + -> Mobile Data -> Set to Off
3. Add Exit task -> Name it 3G-On -> + -> Mobile Data -> Set to On
If this didn't worked then you should maybe try this :
-----------------------------------------------------
Please, for everyone next time if you have a request quote me (so i can have an instant notification every time someone post a request).
Click to expand...
Click to collapse
Can you upload the project for the first one on brighten
If I actually did help, how bout a Thanks for 'ol times sake
ktetreault14 said:
Can you upload the project for the first one on brighten
If I actually did help, how bout a Thanks for 'ol times sake
Click to expand...
Click to collapse
Here you go, it have another profile for 3G/Wifi Enabling but i'm too lazy to delete it
Sammath said:
Is there a way to make 3g turn of when the screen is off and on when the screen is on again?
Click to expand...
Click to collapse
I Thnik that you will also like thoese one
Any requests ?
Sent from my GT-I9505 using xda app-developers app
karimdag said:
Any requests ?
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Thank you to the OP for letting me discover this incredible app.
Now it's time to make some profiles by using scripts and cpu governor
EDIT: Do you guys know what kind of task could be useful to block/unblock notifications?
invano said:
Thank you to the OP for letting me discover this incredible app.
Now it's time to make some profiles by using scripts and cpu governor
EDIT: Do you guys know what kind of task could be useful to block/unblock notifications?
Click to expand...
Click to collapse
Could you please explain a little bit more for what you want ?
karimdag said:
Could you please explain a little bit more for what you want ?
Click to expand...
Click to collapse
I mean something like the touchwiz blocking mode for notification or like iOS. When there is a new notification/call/SMS no sound is played and the screen stays off.
The problem with the touchwiz toggle is that it only works with call and SMS so I'd like to replicate a complete behavior with tasker
invano said:
I mean something like the touchwiz blocking mode for notification or like iOS. When there is a new notification/call/SMS no sound is played and the screen stays off.
The problem with the touchwiz toggle is that it only works with call and SMS so I'd like to replicate a complete behavior with tasker
Click to expand...
Click to collapse
Try :
+ -> state -> display -> display state -> Set on Off
Add a new task :
+ -> Audio -> Slient Mode -> set on On
Sent from my GT-I9505 using xda app-developers app
regarding the wifi-auto-on feature using cell near, its not that accurate, actually its the least accurate location profile context but also the least battery draining. so let me share what i've done with that.
Profile -wifi home:
screen on
+
cell near(walked around my house)
+
wifi near(selected my ssid)(make sure you have wifi toggle selected)
the point of this is that it wont scan for wifi while screen off and it will first try to match all the context in an order. so first the screen has to be on, then the cell towers must be near and lastly the wifi AP must be close, for the wifi to turn on. This eliminates the possible battery drain if you try using only wifi near and poor accuracy by the only cell near context. in my town, there is a shopping center quite near and when i walk past it, my goddamn cell near context was switching wifi AP's all the time, which made me loose my nerves. so i added the wifi-near context and voila!. the wifi turns on when im a few meters from my house.
Galaxy S4 has an Accessibility Setting bug which makes it turn on Talkback and you cant turn it off. It also trigger many other bugs.
I knew about Tasker but it doesn't work right on S4. In fact any app that requires Accessibility enabled doesn't work.
SilentRazor said:
Galaxy S4 has an Accessibility Setting bug which makes it turn on Talkback and you cant turn it off. It also trigger many other bugs.
I knew about Tasker but it doesn't work right on S4. In fact any app that requires Accessibility enabled doesn't work.
Click to expand...
Click to collapse
Don't know about that accessibility bug you're talking about, but I'm a longtime Tasker user and I can tell you that it works flawlessly on my S4.
karimdag said:
Here you go, it have another profile for 3G/Wifi Enabling but i'm too lazy to delete it
I Thnik that you will also like thoese one
Click to expand...
Click to collapse
Thanks bro
If I actually did help, how bout a Thanks
pitastrudl said:
regarding the wifi-auto-on feature using cell near, its not that accurate, actually its the least accurate location profile context but also the least battery draining. so let me share what i've done with that.
Profile -wifi home:
screen on
+
cell near(walked around my house)
+
wifi near(selected my ssid)(make sure you have wifi toggle selected)
the point of this is that it wont scan for wifi while screen off and it will first try to match all the context in an order. so first the screen has to be on, then the cell towers must be near and lastly the wifi AP must be close, for the wifi to turn on. This eliminates the possible battery drain if you try using only wifi near and poor accuracy by the only cell near context. in my town, there is a shopping center quite near and when i walk past it, my goddamn cell near context was switching wifi AP's all the time, which made me loose my nerves. so i added the wifi-near context and voila!. the wifi turns on when im a few meters from my house.
Click to expand...
Click to collapse
Am I wrong or if you use wifi near you must create a task for every ssid that you need?
Instead by using cell near it is possible to set more cells with the same task.
invano said:
Am I wrong or if you use wifi near you must create a task for every ssid that you need?
Instead by using cell near it is possible to set more cells with the same task.
Click to expand...
Click to collapse
Yes for your both questions
Hi all.
Does anyone know if it is possible that when the phone is on silent and gets a missed call / text message an email can be sent to a specific address?
Thanks for your help.
Sent from my GT-I9505 using xda premium
invano said:
Am I wrong or if you use wifi near you must create a task for every ssid that you need?
Instead by using cell near it is possible to set more cells with the same task.
Click to expand...
Click to collapse
karimdag said:
Yes for your both questions
Click to expand...
Click to collapse
what? . you just select the wifi ssid in the context. there are three contexts, one entering(wifi on) and one exiting task(wifi off). thats it.
RustyWrightOne said:
Hi all.
Does anyone know if it is possible that when the phone is on silent and gets a missed call / text message an email can be sent to a specific address?
Thanks for your help.
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
You can't do that on silent mode only but maybe you can set a timer : so you can put silent hours and creat a task that contain : 1. Slient mode on and 2. Send to .. - there's also another methode and it doesn't require any timer.
pitastrudl said:
what? . you just select the wifi ssid in the context. there are three contexts, one entering(wifi on) and one exiting task(wifi off). thats it.
Click to expand...
Click to collapse
You will have to creat a new context so you can choose your home ssid it means that you will have 2 profiles : one for the specific ssid and the other for the location-connect
Sent from my GT-I9505 using xda app-developers app
Sammath said:
Is there a way to make 3g turn of when the screen is off and on when the screen is on again?
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
Juice Defender can help you with that

[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 (how to disable maps & location provider)

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.

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

Categories

Resources