OK Google - Tasker Tips & Tricks

Hello,
Grateful if someone advises on:
I'm trying to automate airplane mode 00:00 - 07:00 in a non-rooted S8 using tasker / sec setting / autoinput. The problem is to unlock phone to come out of the airplane mode in mornings. For this I want to get played a pre-recorded OK Google audio. Which function, in turn, as I recently learned, is only operative during 4 hours since the last usage of the phone.
Question: by which non-sound tasker operation can I simulate "usage" of the phone at, say 3:30 am?
Alert popup and Wake CPU did not help.
Also asking this from Google support is useless I think because the above 4-hour rule is security driven.
Thank you.

Why not just launch an app? Maybe then have AutoInput back out of that app. I would think anything that makes the device behoove it's had screen interaction will achieve your goal.

ktmom said:
Why not just launch an app? Maybe then have AutoInput back out of that app. I would think anything that makes the device behoove it's had screen interaction will achieve your goal.
Click to expand...
Click to collapse
Checked that - not that easy unfortunately. How launching an app can produce screen interaction while the phone is locked at night? Or maybe I miss something and there really is such an app / activity / whatever?

Related

Looking for an app to filter calls.

Hi:
I am looking for an app to filter calls. I would like to allow only certain numbers, and block or silence the rest. All the apps I have found do the opposite, they block only the numbers you ask them to, and it would be very impractical to have to add all numbers except for the 2 I want to allow.
The latest one I tried was call filter, which was great, and easy to use, but the same as the others, you could only block individual numbers, rather than allow only specific numbers.
Thanks!
You can use Tasker to do that. I had a Tasker profile that ran at night when my phone was on silent. It would ring only if calls came in from my children or my parents. You could use the same type of profile but have it active all the time.
Tasker is more complicated than your typical android app. But there are example profiles that you can download and modify.
Sent from my Captivate
Hi Redger:
Thanks so much for your reply. I downloaded and installed tasker. You are right, it is complicated. I installed the sample profiles for Auto Sleep Mode with Exceptions (sounds like what you mentioned).
I made it as far as adding the numbers I do want to ring. I am wondering is there any way to activate it manually (maybe a one click home screen type thing), rather than right now it is set to start automatically at a certain time?
Basically what I would like to do, is have only 2 phone numbers able to reach me (for both voice and sms calls) while I am sleeping, and all other numbers to be completely silenced.. I don't really want it to start and stop at a certain time, because my bedtime varies greatly from one day to the next.
Any help would be appreciated.
Thanks again!
cincy1020 said:
Hi Redger:
Thanks so much for your reply. I downloaded and installed tasker. You are right, it is complicated. I installed the sample profiles for Auto Sleep Mode with Exceptions (sounds like what you mentioned).
I made it as far as adding the numbers I do want to ring. I am wondering is there any way to activate it manually (maybe a one click home screen type thing), rather than right now it is set to start automatically at a certain time?
Basically what I would like to do, is have only 2 phone numbers able to reach me (for both voice and sms calls) while I am sleeping, and all other numbers to be completely silenced.. I don't really want it to start and stop at a certain time, because my bedtime varies greatly from one day to the next.
Any help would be appreciated.
Thanks again!
Click to expand...
Click to collapse
You can put a shortcut on the screen to tasker, and it will open to the tasks. Click on the real to turn off. 2 clicks I know.
I think the tasker forums can tell you how to make the task into a "program" like you want.
Edit. Try long pressing on the screen and go to task. It might be there.
Download the generic toggle widget. You can put the widget on your home screen and program it to toggle your sleep mode profile. Remove the time constraints from the sleep profile and set it up to work with the toggle widget.
Sent from my Captivate

[TASKER] Looking for some tasker profile ideas. Post your tasker profiles here!

So I just discovered the magical world of tasker, and am loving it! Totally worth the money, and one of the best apps to have (the best if you know how to maximise its use)! I have been experimenting a bit with it, so I don't have many profiles. I'm sure many folks here will be using tasker and would be having some great profiles, so I'm looking forward to hearing some suggestions! The profiles I use are:
1. WiFi off at night, from 00:45 to 08:00, except WhatsApp, Play Store, Quora
2. Airplane mode at night, from 00:30 to 07:00
3. Use of interactive CPU governor when using Real Racing 3, and revert to lionfish governor after exiting app(Kernel adiutor profiles do this for me). I also added a condition to use auto-rotate when playing the game, and revert to portrait orientation after closing the app.
4. Auto-sync every two hours, from 08:00 to 20:00 (I would like to improve this to auto-sync only Gmail, would welcome suggestions on how to do this from any tasker experts out here )
I would love to implement more profiles and automate my phone, so looking for ideas.
Need a tasker profile which can disable my mobile data only for some specific apps.it means If I start those apps then my mobile data would automatically disabled and when I close them Data service should be enbled.If u can help on this then That wud be very helpfull
Nothing very fancy for me - right now just have it turning on my wifi hotspot when it detects my car's bluetooth connection so my stereo can use the internet.
It sounds like you are taking it pretty far, @varunadi. You should check out https://www.reddit.com/r/tasker for more cool ideas.
koimr said:
Nothing very fancy for me - right now just have it turning on my wifi hotspot when it detects my car's bluetooth connection so my stereo can use the internet.
It sounds like you are taking it pretty far, @varunadi. You should check out https://www.reddit.com/r/tasker for more cool ideas.
Click to expand...
Click to collapse
Yep, I am looking to maximise the use of this app, so thanks for that link, will check it out!
anks095 said:
Need a tasker profile which can disable my mobile data only for some specific apps.it means If I start those apps then my mobile data would automatically disabled and when I close them Data service should be enbled.If u can help on this then That wud be very helpfull
Click to expand...
Click to collapse
I'm still finding my way around tasker, reading a lot of tutorials so once I figure it out I'll let you know.
anks095 said:
Need a tasker profile which can disable my mobile data only for some specific apps.it means If I start those apps then my mobile data would automatically disabled and when I close them Data service should be enbled.If u can help on this then That wud be very helpfull
Click to expand...
Click to collapse
I don't know if you can disable mobile data entirely (not just background which Android can do already) for just certain apps.
Perhaps it would be easier to use something like Netguard.
I've never used it but the description says "Applications can individually be allowed or denied access to your Wi-Fi and/or mobile connection."
koimr said:
I don't know if you can disable mobile data entirely (not just background which Android can do already) for just certain apps.
Perhaps it would be easier to use something like Netguard.
I've never used it but the description says "Applications can individually be allowed or denied access to your Wi-Fi and/or mobile connection."
Click to expand...
Click to collapse
Can't the secure settings plugin be used for that purpose? Toggle data on/off I mean.
varunadi said:
Can't the secure settings plugin be used for that purpose? Toggle data on/off I mean.
Click to expand...
Click to collapse
I was actually going to suggest that as I have it installed already but when I tried it didn't work.
The "Mobile data" toggle was unavailable because it claims I don't have root. However, I'm definitely rooted and there's no listing (saying denied or otherwise) in SuperSU for Secure Settings so it didn't even ask for root. I'm not too surprised as SS hasn't been updated in over a year and a lot of the Play Store comments mention mobile data toggle specifically not working either (among other things). Too bad as it was pretty powerful and of course I think I paid for it right after its last update.
Not getting SS working for me might just be my problem and perhaps someone else can get it going.
I was also going to suggest [APP][2.2+][ROOT] Toggle Data 5.0 (xda-exclusive free version) but then I read more about what @anks095 said which was "can disable my mobile data only for some specific apps" so I'm guessing he just wants certain apps restricted and not all (although the next sentence seems to say otherwise but I might be reading it incorrectly). I'm not too sure that can be done via Tasker/SS - my guess is that it's an "all-or-nothing" kinda thing for mobile data so the VPN thing might be the only way.
I use a similiar app called automagic but some of the things that I got my tasker like program to do are: lockscreen enable/disable through wi-fi at trusted places (don't like geofencing due to battery), when connected to the bluetooth of my car. Auto silent 5 min before a meeting, but if not connected to my smartwatch then vibrate. And lastly sms emergency location request where my family can send a keyword and my phone will automatically send location.
joeanca said:
I use a similiar app called automagic but some of the things that I got my tasker like program to do are: lockscreen enable/disable through wi-fi at trusted places (don't like geofencing due to battery), when connected to the bluetooth of my car. Auto silent 5 min before a meeting, but if not connected to my smartwatch then vibrate. And lastly sms emergency location request where my family can send a keyword and my phone will automatically send location.
Click to expand...
Click to collapse
How is the lockscreen one working for you? I find the built-in SmartLock to be really unreliable but when I tried to do lockscreen stuff before (last year) there was some bug in either Tasker or Secure Settings that would sometimes keep your screen black with just the nav buttons visible present. I'll have to re-try now.
That sms emergency request thing sounds cool! Can the recipient open the location in Maps to see exactly where you are?
Without issues I set it so that it clears the password. Makes it so that I have to swipe to unlock. As for the location, yes it sends coordinates and the user in the other end taps it to bring up Google maps.
Sent from my XT1563 using Tapatalk
joeanca said:
Without issues I set it so that it clears the password. Makes it so that I have to swipe to unlock. As for the location, yes it sends coordinates and the user in the other end taps it to bring up Google maps.
Sent from my XT1563 using Tapatalk
Click to expand...
Click to collapse
Thank you very much - clearing the password was the key! I had been trying before to disable the keyguard entirely so I wouldn't even have to swipe but that's where the problem/bug came in. Thinking about it that makes more sense to have at least a swipe because I'd end up calling people from my pocket by mistake. So thanks again!
Tasker...hmmm. Bought it, but much to complicated for me. Macrodroid is much easier to understand and can also do complicated automation with a normal user friendly interface. I tried to like Tasker, but the more and more I tried the more stupid I felt.

Do Not Disturb functionality removed

I'm on 9.1.0.124 and find the Do Not Disturb functionality is reduced from my P20Pro. There (and I think this available on stock Android?), I could automatically activate DND via calendar events, which is really useful for automatically silencing phone in meetings etc. This isn't there on my P30Pro, only a time schedule (ie. overnight).
Don't understand why they'd remove such a useful functionality (unless I'm being really thick, and there's something I need to activate elsewhere to enable this?). Is there any any good apps out there which can replace this functionality?
Paul.
Hi Paul
I am having same issue. Glad it's not just me. Cannot belive this is missing. I like setting DND when I go to bed and on my last phone had it set to switch off DND when my alarm went off. Can anyone suggest a work around or solution please!
Yeah , exceptions are missing on the p30 pro which usually comes in handy for me. Anyway , you can try
Do Not Disturb - Call Blocker , remember to remove automatic management from App Launch and also remove from battery optimization settings.
pmburton said:
I'm on 9.1.0.124 and find the Do Not Disturb functionality is reduced from my P20Pro. There (and I think this available on stock Android?), I could automatically activate DND via calendar events, which is really useful for automatically silencing phone in meetings etc. This isn't there on my P30Pro, only a time schedule (ie. overnight).
Don't understand why they'd remove such a useful functionality (unless I'm being really thick, and there's something I need to activate elsewhere to enable this?). Is there any any good apps out there which can replace this functionality?
Paul.
Click to expand...
Click to collapse
this has just happened on the Huawei Mate20 with EMUI 9.1. I am a school teacher so have been using calendar events to silence my phone when i'm on class, but be on volume when i'm not on class. this is impossible to remember to do manually - i end up just putting my phone on silent and forgetting to unsilent later. Are there any other apps (than the one mentioned previous post) for DND calendar events?

Tasker - SecureTask is not starting

Hello,
I'm going crazy here.... I've installed Tasker on my new Lenovo Tab M7 TB-7305F (7 Inch with Android 9.0 GO - NOT rooted). Tasker works fine. Since I want to kill apps I installed the plugin "SecureTask". And: I succeeded to get it working. Everyting is working fine. Until I reboot. After a reboot: When I try Tasker to execute the plugin-command SecureTask - Tasker waits long and can't execute the plugin. It seems Tasker can't call the plugin SecureTask / can't connect to it. When I manually load SecureTask (Icon on the desktop - only a config-screen comes up - I leave the config-screen with the back-button): After that everything works again. It seems: After SecureTask was loaded once everything is OK. But Tasker can't start the plugin.
Humpf? After a lot of hours of investigating..... I'm out of ideas. Any help?
That sounds like there's a problem getting a background process running after boot for SecureTask. Assuming that all of the permissions for SecureTask have been granted through ADB, I would contact the developer and see what he says.
A work around might be to use Tasker to launch SecureTask after boot. You could then use it to close itself
Thanks... exactly the opinion I have at the moment. In the meantime I found a contact address in SecureTask itself - so I will contact the developer.
Enabling SecureTask after boot by Tasker.... good idea That will be a screen-flickering... but that's at 5 am - so nobody will care about that. I will test this... :good:
Just to report my efforts.... I contacted the support of SecureTask - and got an email-chat within minutes. Incredible support - thank's a lot, John Doe (support of SecureTask)!!!
He told me how to get a logcat. Reason, why it's not working:
BroadcastQueue: TabletMaster Service: not allowed to launch app com.balda.securetask/10110 for broadcast Intent { act=com.twofortyfouram.locale.intent.action.FIRE_SETTING flg=0x14 cmp=com.balda.securetask/.receivers.FireReceiver (has extras) }
=> The OS is blocking the broadcast. No clue why. So it seems my Lenovo Tab M7 TB-7305F has a strange behaviour... no chance to get it working.
Btw: Killing SecureTask with it's own didn't work. So I had to choose now a complete different approach without SecureTask.
airplane mode
Hi, bit off topic maybe, but I saw that this is a quite recent threat and it is involved with SecureTask plugin, so I decided to hook up instead of creating new one
This week I bought Samsung Galaxy Tab S5e. It's operating on Android Pie and UI One interface. I'm reluctant to root it yet (all the more the procedure is not obvious), but I want to recreate as much functionality as possible from my old rooted Samsung tablet So SecureTask plugin is the obvious choice.
I'm trying to find a way to automate turning the airplane mode on/off. On my old tablet I created a profile that triggered airplane mode according the time schedule as soon as Tasker detects that the device is plugged in to a power source. I've tried to recreate this profile with the help of SecureTask. Of course in advance I granted to the plugin all possible permissions using adb and even successfully set it as the device owner. Then I found a secure setting responsible for turning the airplane mode on/off and set appropriate values. And when I test the created tasks, the green circle appears and the quick toggle in the notification drawer turns on, but it seems that the system doesn't listen to the call - the airplane mode actually doesn't turn on. The system seems to listen only when I turn the quick toggle on manually. So I wonder if there is something I'm missing or maybe it is not achievable at all without root on this firmware?
Would be grateful for any insight, maybe from you @ktmom, boss Thanks in advance.
@Lord Sithek, AFAIK, the only way you can toggle mobile data or WiFi radios is after a reboot and that may not work on all devices. Google "long ago" removed the ability to directly control those radios, even with root. Bluetooth does tend to toggle though.
So if it's going to work at all, you would have to toggle off and then reboot.
My opinion is its best to use touch emulations to activate the quick setting tile.
ktmom said:
@Lord Sithek, AFAIK, the only way you can toggle mobile data or WiFi radios is after a reboot and that may not work on all devices. Google "long ago" removed the ability to directly control those radios, even with root. Bluetooth does tend to toggle though.
So if it's going to work at all, you would have to toggle off and then reboot.
My opinion is its best to use touch emulations to activate the quick setting tile.
Click to expand...
Click to collapse
Ok, thanks for the response. I have Auto Input plug installed as well, so I'll give it a shot
ktmom said:
My opinion is its best to use touch emulations to activate the quick setting tile.
Click to expand...
Click to collapse
The problem is that it needs to turn the screen on. I keep my device in book cover so... pain in the arse :cyclops: I think I'll probably switch to "do not disturb" mode, at least it works right away
Sent from my mido using XDA Labs
Marienkaefer said:
Hello,
I'm going crazy here.... I've installed Tasker on my new Lenovo Tab M7 TB-7305F (7 Inch with Android 9.0 GO - NOT rooted).
Click to expand...
Click to collapse
I too just purchased a lenovo Tab M7 TB-7305F (7 Inch with Android 9.0 GO - also NOT rooted).
Sorry for intruding.
Have you found a forum for this tablet?
One specific question I have is with screen rotation. In android pie you get rotation control by turning off auto-rotation in settings. That way when you rotate the tablet a small icon appears briefly in a corner. When that icon is tapped the display rotates. If not tapped on the display does not rotate.
That is what happens in my other android pie devices. But for some reason this icon does not appear on this tab. So I'm looking for a forum for help. Have you found one?
Lord Sithek said:
Hi, bit off topic maybe, but I saw that this is a quite recent threat and it is involved with SecureTask plugin, so I decided to hook up instead of creating new one
This week I bought Samsung Galaxy Tab S5e. It's operating on Android Pie and UI One interface. I'm reluctant to root it yet (all the more the procedure is not obvious), but I want to recreate as much functionality as possible from my old rooted Samsung tablet So SecureTask plugin is the obvious choice.
I'm trying to find a way to automate turning the airplane mode on/off. On my old tablet I created a profile that triggered airplane mode according the time schedule as soon as Tasker detects that the device is plugged in to a power source. I've tried to recreate this profile with the help of SecureTask. Of course in advance I granted to the plugin all possible permissions using adb and even successfully set it as the device owner. Then I found a secure setting responsible for turning the airplane mode on/off and set appropriate values. And when I test the created tasks, the green circle appears and the quick toggle in the notification drawer turns on, but it seems that the system doesn't listen to the call - the airplane mode actually doesn't turn on. The system seems to listen only when I turn the quick toggle on manually. So I wonder if there is something I'm missing or maybe it is not achievable at all without root on this firmware?
Would be grateful for any insight, maybe from you @ktmom, boss Thanks in advance.
Click to expand...
Click to collapse
I don't know if it needs root (I am always rooted), but there is an Airplane Mode On and Off in Tasker, under Net category.
I have a task that checks if %AIR is on or off, and turn on and off accordingly.
---------- Post added at 04:33 PM ---------- Previous post was at 04:29 PM ----------
ktmom said:
@Lord Sithek, AFAIK, the only way you can toggle mobile data or WiFi radios is after a reboot and that may not work on all devices. Google "long ago" removed the ability to directly control those radios, even with root. Bluetooth does tend to toggle though.
So if it's going to work at all, you would have to toggle off and then reboot.
My opinion is its best to use touch emulations to activate the quick setting tile.
Click to expand...
Click to collapse
It still is fine to toggle mobile data on and off (in my case, either Mobile Data 1 or 2 due to having dual sims), as well as wifi, without rebooting. Even works in Macrodroid (the mini Tasker-like app)
Android app Tasker

Question Do not disturb TO NOT activate when set to silence

Hi to all,
I've always used a great app to manage different sound profiles but with OnePlus 10 Pro (Android 13) I've encountered a big issue.
I need to set notifications to off during the night but rings and alarms have to be set to high.
This is because I need to be contactable for work but I do not want to hear notifications from other apps (mails, whatsapp, ...).
That app is Volume Butler.
In the past, it was simply possible to set the volume for notifications to 0 but now if I set this to 0, automatically the phone set the "do not disturb" mode that prevents calls and alarms, so I have to manually disable it and the automatic process is not working...
I was thinking to use an automated process to change the ringtone for notification using a null-sound but I have not found anything...
Any suggestions?
Thanks,
Alex
Tasker can do this. It may be overkill for what you need though, and it's not free.
It's like a way to create profiles that get triggered on a massive number of different things.
A couple I have for example, I turn off AOD on my phone when I'm sleeping, so it doesn't light up the room. I turn off wifi leaving the house, and turn it back on when I get to work, or back home. I mute my phone when I'm at work, and there's an appointment in my work calendar...that sort of stuff.
Tasker is my most used app, as it can do SO many things.
Tasker Tips & Tricks
Tasker is one of the most powerful apps available for Android. Discuss all of its amazing uses here!
forum.xda-developers.com
r/tasker
r/tasker:
www.reddit.com
But someone else may have a simpler option for you.
the_scotsman said:
Tasker can do this. It may be overkill for what you need though, and it's not free.
It's like a way to create profiles that get triggered on a massive number of different things.
A couple I have for example, I turn off AOD on my phone when I'm sleeping, so it doesn't light up the room. I turn off wifi leaving the house, and turn it back on when I get to work, or back home. I mute my phone when I'm at work, and there's an appointment in my work calendar...that sort of stuff.
Tasker is my most used app, as it can do SO many things.
Tasker Tips & Tricks
Tasker is one of the most powerful apps available for Android. Discuss all of its amazing uses here!
forum.xda-developers.com
r/tasker
r/tasker:
www.reddit.com
But someone else may have a simpler option for you.
Click to expand...
Click to collapse
Thank you! I've found MacroDroid that can automatically change the notification sound and for me is enough!

Categories

Resources