New to Tasker: toggle Mobile Data + GPS on non-rooted device - Tasker Tips & Tricks

Hi,
New to Tasker and am absolutely amazed by it's capabilities!
Got a new Galaxy S7, which I am unable to root at this point in time.
I really need a way to toggle Mobile Data and GPS on/off.
Did quite a bit of reading and searching and only found info for rooted devices. Even tried Secure Settings, which of course needs root to toggle them.
Is there ANY way I can toggle mobile data on/off without root???
GPS will be nice as well but less critical.
Will appreciate any help.
Y.

It can be done by using AutoInput but it would require the screen to be on.

I would also appreciate some help on this too, especially the autoinput method. I got parts of it to work, like opening location settings and clicking location on if off. But I'm having trouble creating the task if location is already on. Also, the exit task is giving me fits too because every time the task runs when I open maps, it exits the app to location settings to click the on location, thus activating the exit task before I even get to use the maps haha. It basically goes on a loop for me and can't figure it out. Any help on how to configure this would be appreciated.

svampsson said:
It can be done by using AutoInput but it would require the screen to be on.
Click to expand...
Click to collapse
Thank you!
Is there a way to turn the screen on with Tasker?
If so, perhaps I can use the combination of Tasker and AutoInput to achieve toggling mobile data on off?
(I found Turn On under Display in Tasker but it has a cross on it so I don't think I can select it. Is there another plugin that will turn the screen on?... that is without root)

yud said:
Thank you!
Is there a way to turn the screen on with Tasker?
If so, perhaps I can use the combination of Tasker and AutoInput to achieve toggling mobile data on off?
(I found Turn On under Display in Tasker but it has a cross on it so I don't think I can select it. Is there another plugin that will turn the screen on?... that is without root)
Click to expand...
Click to collapse
AutoInput has that feature built in
Task => Plugins => AutoInput => Unlock Screen
Sent from my HTC One using Tapatalk

svampsson said:
AutoInput has that feature built in
Task => Plugins => AutoInput => Unlock Screen
Sent from my HTC One using Tapatalk
Click to expand...
Click to collapse
Thanks heaps!
This means I can achieve what I want to do. Right?

yud said:
Thanks heaps!
This means I can achieve what I want to do. Right?
Click to expand...
Click to collapse
It should yes.
Sent from my HTC One using Tapatalk
---------- Post added at 08:56 AM ---------- Previous post was at 08:55 AM ----------
Faint Paradox said:
I would also appreciate some help on this too, especially the autoinput method. I got parts of it to work, like opening location settings and clicking location on if off. But I'm having trouble creating the task if location is already on. Also, the exit task is giving me fits too because every time the task runs when I open maps, it exits the app to location settings to click the on location, thus activating the exit task before I even get to use the maps haha. It basically goes on a loop for me and can't figure it out. Any help on how to configure this would be appreciated.
Click to expand...
Click to collapse
This should help

svampsson said:
AutoInput has that feature built in
Task => Plugins => AutoInput => Unlock Screen
Sent from my HTC One using Tapatalk
Click to expand...
Click to collapse
Only works if screen lock security is set to none or swipe.
I have fingerprint unlock setup.
Back to square one.

svampsson... That XML file is only for screen Brightness. I did try tinkering with it to have it work for location Toggle instead but it still gave me trouble. The global action on it would not go back to the app after toggling location on. Any ideas? Thanks for the help tho.

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

Sent from my iPhone using Tapatalk

rxk said:
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
Click to expand...
Click to collapse
Do you have root? It is very easy to turn high accuracy GPS ON/OFF with Secure settings-plugin. If no root you can do it with Autoinput.

Related

Tasker Profiles Stopped Working After Update

Hi, i am sorry if i am posting into wrong forum
but i have issue with tasker i have couple program in there very simple ones based on location and simple switch for example to silent and back to sound when i am and exit certain location and so on. and after i think last update the profiles does not activate any more. i havent done anything in tasker did not added the profiles are on and the location services are on. i have version 4.8u1m. do you know what could have happened? thanks
In your settings in accessibility do you have tasker turned on. Also in tasker itself go to preferences monitor and make sure use new cell Api is checked .
Maybe you switched off tasker? Long press the Tasker icon in the app in the upper left corner. If it's not colored it's switched off
Follow_and_Feel said:
Maybe you switched off tasker? Long press the Tasker icon in the app in the upper left corner. If it's not colored it's switched off
Click to expand...
Click to collapse
That was it for me! Thanks!!

disable the disable!

Is there a workaround yet to stop Android Auto from disabling the phone.? Once I'm connected to the car I can't see any email notifications (sound/vibrate/LED). It's really irritating and means I have to disconnect my phone every 15 minutes to check email!
Thanks.
Isn't the whole point of AA not to look at your phone every 15 mins while driving ?
Envoyé de mon SM-G800F en utilisant Tapatalk
Tell Apple that. Anyone actually have an answer? Thanks.
jamesbond_28_007 said:
Tell Apple that. Anyone actually have an answer? Thanks.
Click to expand...
Click to collapse
You can hit the multi task button and open a recent app. Keep your email client open in recents and check it at stoplights.
Sent from my Nexus 6P using Tapatalk
ireknole said:
You can hit the multi task button and open a recent app. Keep your email client open in recents and check it at stoplights.
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
That's it! Brilliant thank you. So simple but hadn't tried that. I've now installed the caffeine app which also keeps the screen on permanently when connected to a USB. That way the email notification LED light now works when in Android Auto mode.
Thanks again
jamesbond_28_007 said:
That's it! Brilliant thank you. So simple but hadn't tried that. I've now installed the caffeine app which also keeps the screen on permanently when connected to a USB. That way the email notification LED light now works when in Android Auto mode.
Thanks again
Click to expand...
Click to collapse
You're welcome!
Sent from my Nexus 6P using Tapatalk
jamesbond_28_007 said:
Is there a workaround yet to stop Android Auto from disabling the phone.? Once I'm connected to the car I can't see any email notifications (sound/vibrate/LED). It's really irritating and means I have to disconnect my phone every 15 minutes to check email!
Thanks.
Click to expand...
Click to collapse
Or not. That's kind of the point of Android Auto in the first place is to get people off of messing with their phones while they're driving.
The only solution that I am aware I was to buy an Android Wear watch. All notifications still come through on the watch even when connected to Android Auto.
Press multi task button then press home, quickly select app or open app drawer.
I use this method with Note 4
Sent from my SM-N910V using Tapatalk
jamesbond_28_007 said:
That's it! Brilliant thank you. So simple but hadn't tried that. I've now installed the caffeine app which also keeps the screen on permanently when connected to a USB. That way the email notification LED light now works when in Android Auto mode.
Thanks again
Click to expand...
Click to collapse
After reading this I also installed Caffeine, it was the perfect app I was looking for to prevent my screen from turning off.
I enabled my email on Android auto unit, and I receive email notification on that..
Sent from my SM-G935F using Tapatalk
Hello and sorry for reviving such an old thread.
I have used for some time the trick suggested by @ireknole with a phone having hard buttons. My new phone, however, has soft buttons and Android Auto disables on purpose the multi-task button. (Mate 10 Pro, Android 8.0).
I have no other option left now to check my phone while AA is connected to the car and running. I need to check the phone for searching for a song or my wife needs to change the song while i'm driving - plus search the internet or whatever else she feels like on long roadtrips.
However, I can still access the notifications drawer and all the shortcut buttons found there (i did not give AA permission to draw over other applications).
Does anybody know:
1) How to place a custom button in the notifications drawer which specifically does that: activate multi-task function or any other function to just put AA in background and allow me to access other apps?
2) How to forbid AA to disable my multi-task button in the first place?
Thank you!
catalin.marin said:
Hello and sorry for reviving such an old thread.
I have used for some time the trick suggested by @ireknole with a phone having hard buttons. My new phone, however, has soft buttons and Android Auto disables on purpose the multi-task button. (Mate 10 Pro, Android 8.0).
I have no other option left now to check my phone while AA is connected to the car and running. I need to check the phone for searching for a song or my wife needs to change the song while i'm driving - plus search the internet or whatever else she feels like on long roadtrips.
However, I can still access the notifications drawer and all the shortcut buttons found there (i did not give AA permission to draw over other applications).
Does anybody know:
1) How to place a custom button in the notifications drawer which specifically does that: activate multi-task function or any other function to just put AA in background and allow me to access other apps?
2) How to forbid AA to disable my multi-task button in the first place?
Thank you!
Click to expand...
Click to collapse
I haven't found a way to get the multitask button to reshow, but I have a built in app on my Samsung S8 that allows me to swipe from the edge of the phone and select the "shortcut" "recent apps" that acts like the multitask button. There may be an app that's similar in the play store that lets you open it with a swipe and map a "recent apps" shortcut as an option.
Sent from my SM-G950U using Tapatalk
another way is to install AAWidget. it display a widget on your Android auto screen.
but this only work for AA2.9 since google disable third party apk in AA3.0
AA widget will list down mails, whatapps messages etc as long as theres widget for those apk.
make a clone and aawidget and you can havemultiple widget to read your email/whatsapp etc
but you cant read full email or messages if the email or messages too long. just good enough to check what are the incoming email/messages
Thank you for your answers!
I did not try your solutions because in the meanwhile I found a way to gain complete control over my phone using Tasker.
For anyone interested, create a new profile in Tasker, set the trigger to Apps->Android Auto and the task to "Go home".
What this setup achieves is showing the home screen whenever AA tries to pop up on screen, which solves all the problems
I can use my phone as if AA was not running at all, while AA is completely functional on the car's screen.
I use AA 2.9.57xxxx.
If you are on Nougat you can add a custom tile using the regular android api to launche the home launcher activity. But please don't post any source code or ready to use apk somewhere. This should be something for the "pros" if its too easy to use they come up with a way to block the notification drawer
ktwo said:
If you are on Nougat you can add a custom tile using the regular android api to launche the home launcher activity. But please don't post any source code or ready to use apk somewhere. This should be something for the "pros" if its too easy to use they come up with a way to block the notification drawer
Click to expand...
Click to collapse
Thank you! I will also try this approach when I'll have a few hours, as I have some Android development background
catalin.marin said:
Hello and sorry for reviving such an old thread.
I have used for some time the trick suggested by @ireknole with a phone having hard buttons. My new phone, however, has soft buttons and Android Auto disables on purpose the multi-task button. (Mate 10 Pro, Android 8.0).
I have no other option left now to check my phone while AA is connected to the car and running. I need to check the phone for searching for a song or my wife needs to change the song while i'm driving - plus search the internet or whatever else she feels like on long roadtrips.
However, I can still access the notifications drawer and all the shortcut buttons found there (i did not give AA permission to draw over other applications).
Does anybody know:
1) How to place a custom button in the notifications drawer which specifically does that: activate multi-task function or any other function to just put AA in background and allow me to access other apps?
2) How to forbid AA to disable my multi-task button in the first place?
Thank you!
Click to expand...
Click to collapse
I just started using AA on my Nexus 5X running 8.1. AA hides the multi-task button, but if you swipe up from the bottom of the screen; the buttons re-appear for a few seconds and you can select it again.
My problem is that AA sets the screen timeout to 15 sec. So when I pull over to check/write an email; the screen constantly shuts off. The Nexus 5X is no longer a "fast" phone, so starting OWA (outlook) takes more than 15 sec. I've gone into the phone settings after connecting the phone and changing it back to 2 min., but this setting will re-set the next time I plug the phone in again.
Latest version and the version before it (3.1 is latest, can't remember exactly what the previous version is) has changed this.. you can now just swipe up on the phone and access it normally when it's connected to Android auto.

Help with screen timeout when using Tunein radio app

The TuneIn app overrides the Android system screen timeout. If I don't manually turn the screen off, it will stay on indefinitely. Not good.
First, I made a task in Tasker that sets the screen timeout to 1 minute. Next, I made a profile in Tasker that runs this task when the TuneIn app is running. However, it still doesn't work. The screen still stays on.
Could anyone give me a hand with this?
Thanks
The app is probably forcing its own screen timeout.
Check its settings. You might be able to disable that.
Or, have Tasker actively turn off the screen.
Yes, TuneIn is definitely overriding the system screen timeout and there are no settings to disable this.
I have tried to have Tasker turn off the screen when TuneIn is running, but it isn't working which is why I asked for help here.
Any suggestions?
Rootabaga said:
The TuneIn app overrides the Android system screen timeout. If I don't manually turn the screen off, it will stay on indefinitely. Not good.
First, I made a task in Tasker that sets the screen timeout to 1 minute. Next, I made a profile in Tasker that runs this task when the TuneIn app is running. However, it still doesn't work. The screen still stays on.
Could anyone give me a hand with this?
Thanks
Click to expand...
Click to collapse
If manually turning it off works, so should turning off using tasker.
Rootabaga said:
Yes, TuneIn is definitely overriding the system screen timeout and there are no settings to disable this.
I have tried to have Tasker turn off the screen when TuneIn is running, but it isn't working which is why I asked for help here.
Any suggestions?
Click to expand...
Click to collapse
Perhaps, have Tasker send a "Power button press" event, to turn off the screen?
Vagelis1608 said:
Perhaps, have Tasker send a "Power button press" event, to turn off the screen?
Click to expand...
Click to collapse
That's a great idea. It appears that I have to be rooted to access power button input. I plan to root so maybe this will be my best option.
Thanks for replying

[HELP] Launch app on security lock screen

How launch app when screen is off and security lock? (I want the radio to wake me up) I try: 1. Secure settings --> Configuration:Screen & Keyboard Light On (10sek) 2. Wait 1sek 3. Show Scene --> Name: Popup ,Display As: Activity 4. launch App: "(in my case is "eskaGO" This task try launch this app but can't launch to the end. When Task is end nothing happened. But when I manually unlock screen and see what app work in background I see this app. It's look like this task try launche app but can't launch it to the end.
I try too with AutoLunch but is this same.
Can anybody help??
Can you use Smartlock to prevent your device from locking at home?
lauralbaby said:
Can you use Smartlock to prevent your device from locking at home?
Click to expand...
Click to collapse
This not solves the problem. I don't need this only in home. I a lot travelling.
I try with secureTask plugin with off and on keyguard but this disable all securelock.
Well it sounds like the app just can't launch over the keyguard, so the task can't complete till the phone is unlocked. If you're comfortable with it, you can change the timeout (time it takes for the lock to be activated) to a really high number before you go to sleep, then after the app wakes you up, have it changed back to normal.
Thanks for solution but this not solve the problem. In Your idea every day before I go to sleep (when I activate alarm) I should count how many time screen should be unlock. I not everyday wake on this same time or it's time when I stay 1-2 weeks in this same place and wake up every day in this same time.
Every time when I set alarm I must count and set unlock screen Is not good idea.
Maybe somone else have Idea how to launch it?
gonzolex said:
Thanks for solution but this not solve the problem. In Your idea every day before I go to sleep (when I activate alarm) I should count how many time screen should be unlock. I not everyday wake on this same time or it's time when I stay 1-2 weeks in this same place and wake up every day in this same time.
Every time when I set alarm I must count and set unlock screen Is not good idea.
Maybe somone else have Idea how to launch it?
Click to expand...
Click to collapse
which counting are you talking about? I think he meant setting the grace time of lock screen to something like 7*24 hours, that way even if screen is off, you don't really engage the lock.
This could be a security drawback and might affect your Moto display/Samsung Always screen on function if you have them.
OK maybe I something wrong understand.
Maybe You can write how I should configure this task? It will be very helpful to me
Now in task profile I set time to start and end my alarm task.
alienyd said:
which counting are you talking about? I think he meant setting the grace time of lock screen to something like 7*24 hours, that way even if screen is off, you don't really engage the lock.
This could be a security drawback and might affect your Moto display/Samsung Always screen on function if you have them.
Click to expand...
Click to collapse
lauralbaby said:
Well it sounds like the app just can't launch over the keyguard, so the task can't complete till the phone is unlocked. If you're comfortable with it, you can change the timeout (time it takes for the lock to be activated) to a really high number before you go to sleep, then after the app wakes you up, have it changed back to normal.
Click to expand...
Click to collapse
Can You help me understand this and write how should look like this task?
gonzolex said:
OK maybe I something wrong understand.
Maybe You can write how I should configure this task? It will be very helpful to me
Now in task profile I set time to start and end my alarm task.
Click to expand...
Click to collapse
When the screen is turned off, it takes time to activate the keyguard/lock. Usually it's set to 1 second or less, so as soon as the display is off, the lockscreen is on. This can be changed (and in fact this is what Smart Lock does) so it won't activate as fast. Smart lock won't work in your conditions, so we can use Tasker plugins.
You need to get the plugin Secure Task if you are not rooted, Secure Settings if you are. Secure Task needs permissions granted in ADB, but the Help will explain the process.
Once you have it working, you can add the "secure settings" action for lockscreen timeout (see screenshots, it may be called something different on your device.)
There's a read action as well as write, you should read the initial value before changing it, save it, and restore it after the alarm goes off.
(In the Secure Settings plugin it's called Device Settings but other than that similar.)
Thanks for this
Now I undarstand that:
I have other profile where is task what will launch my app and where I set time to start this profile.
If I want that profile work - app launch correctly - I must before I go sleep launch other task (this what You wrote) what don't secure lock my screen.
Right? Did I understood correctly?
Yes, if you have a sleep profile, or if not, set it to activate at 2230 or whenever your bedtime is. The task will simply be Secure Task - secure settings - Read secure lockscreen_timeout (or whatever your device shows), so you can have a global variable of the typical timeout. Then Write secure lockscreen_timeout 99999999, as I posted in the screen shots.
And then have your wake up task activate at 7 or whenever, and then redo the lock timeout to the saved variable.
Ok,
But for example:
1. If I set this task to start 23:30 but since 23:10 i will not touch my phone this not work because screen still wil be secure lock ?
2. If I set this task to start earlier for ex. 21:00. On this time my phone is not protect if some one stole it and any one who get my phone will be have full access. Not always in this same time I will in the home.
Idea to solve my problem is good maybe someone else will need it.
For me is not good
It's not solve my problem
Maybe somone else have any idea how I can launch app when screen is secure lock
+ wifi condition
+ cell location
alienyd said:
+ wifi condition
+ cell location
Click to expand...
Click to collapse
yes, yes
+ anti theft application
I don't know what happened because to March everything working in my phone. In March I musted do factory reset and launch app in secure screen stoped working ;/
Earlier I use to tasker autoinput plugin and was working , now it write that autoinput can't unlock screen :|
So maybe something was changed/app had update and to launch app in secure screen now is other plugin
hmm that's weird. You must have done/changed something. I don't think any app, especially Tasker has changed anything since then.
alienyd said:
hmm that's weird. You must have done/changed something. I don't think any app, especially Tasker has changed anything since then.
Click to expand...
Click to collapse
I know that that is weird. But I don't know what happened because I done nothing special. Just made a task and profile and that was working. Earlier when I changed Rom and restore task everthing work good. Now stop working and I dont know why :|
Better... When this stop working I had try allone and try searching solution.
I made task like this:
1. Secure Settings - Configuration: Screen & Keyboard Light 10sek
2. Status Bar Set Expanded
3. Launch App: eskaGO
4. Wait 10 sek
5. Autoinput Action - Configuration Type: Text Value: Tasker
6. Autoinput Global Action - Configuration Action: Home
And this WORKED! it worked but every second time. Exactly the second time.
Because I thinked that is problem with my phone I made factory reset one more time and this it stopped working completely.
So I don't want belive that so powerful app like Tasker where is so much plugin and a lot of people who very good know this aplication that no one find solution for this.
Sorry I still don't understand your explanation...
If I have it right, you are trying to make an alarm clock out of the radio app.
Here is what I did to implement this idea:
trigger:
- display off
task:
launch app: notepad
alert: beep
result:
as soon as the screen turns off, I heard the beep. When I turned on the screen, I saw notepad app in the foreground.
requirement:
you will need to add something to trigger this during screen off. That extra condition should not turn on the screen. If it does, you should re-consider this whole condition.
The fact that notepad is running in foreground after unlocking means that the task was carried out as intended. If you can run the radio app, the playing should be turned on automatically the moment the app starts, or error you will have radio app running without actually doing anything.
if all these fail, please post a screenshot of your profile, task and log.
good luck!
How about using Appcloner for this? You clone the app and give it the capability to run on to of the lock screen. That's it. Good luck.
jdelcaribe said:
How about using Appcloner for this? You clone the app and give it the capability to run on to of the lock screen. That's it. Good luck.
Click to expand...
Click to collapse
I will try It
Can You tell me where in this app is this setting?
gonzolex said:
I will try It
Can You tell me where in this app is this setting?
Click to expand...
Click to collapse
Sure. Under display options, then choose " show app on lock screen".

Solved - tasker not starting when phone is switched on

Hi,
I have a profile that switches my phone to do not disturb when I get to work but for some reason the application doesn't start when I switch on my OnePlus 3t in the morning (stock OS 9.0.4). Profile kicks in if I start the app. Any ideas what is going on? Tried to switch off battery optimisation bit that hasn't helped.
Eggstones said:
Hi,
I have a profile that switches my phone to do not disturb when I get to work but for some reason the application doesn't start when I switch on my OnePlus 3t in the morning (stock OS 9.0.4). Profile kicks in if I start the app. Any ideas what is going on? Tried to switch off battery optimisation bit that hasn't helped.
Click to expand...
Click to collapse
Take a look at (all of) these settings
Don't kill my app - OnePlus
Why doesn't Tasker work in the background on my device?
ktmom said:
Take a look at (all of) these settings
Don't kill my app - OnePlus
Why doesn't Tasker work in the background on my device?
Click to expand...
Click to collapse
Thanks. Will test tomorrow. Been away traveling.
ktmom said:
Take a look at (all of) these settings
Don't kill my app - OnePlus
Why doesn't Tasker work in the background on my device?
Click to expand...
Click to collapse
Have looked at those links again and will try to see if the locking thing sorts it. If not I'll try to toggle off the advanced battery settings to see what it does.
Just noticed that both tasker, the auto apps and lastpass has the option to manage battery usage in the background greyed out. Could this have something to do with it. Can't figure out how to change this. Have checked 5-6 other apps and they allow me to change this setting.
I think I have solved this now. Tasker seems to be running happily in the background after I locked it using the padlock icon you get when you click on the three dots you see when you switch between apps or want to close it. It is even playing nicely with battery optimisation turned on.
Since locking tasker with the padlock it works fine both with battery optimisation on and deep cleaning.

Categories

Resources