r/tasker • u/joaomgcd π Tasker Owner / Developer • Nov 19 '25
Developer [DEV] Tasker 6.6.12 Release Candidate - Full Accessibility (text expander, doom scroll preventer and much more!) and Notification (full access to all notification details as they come in) Monitoring!
Note: Google Play might take a while to update. If you donβt want to wait for the Google Play update, get it right awayΒ here. (Direct-Purchase VersionΒ here)
Accessibility and Notification Monitoring in Java Code!
- Demo Video
- Demo Accessibility project from the video
- Demo Notification Listening project from the video
You can now basically monitor everything that happens on your phone's screen and react to it however you like!
For example, you can very easily monitor the text you enter in any app with code like this:
import android.view.accessibility.AccessibilityEvent;
import io.reactivex.functions.Consumer;
import io.reactivex.functions.Predicate;
import java.util.List;
import com.joaomgcd.taskerm.action.java.JavaCodeException;
tasker.getAccessibilityEvents().filter(new Predicate() {
boolean test(Object event) {
if (event.getEventType() != AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED) return false;
if (event.getClassName() == null) return false;
if (!"android.widget.EditText".contentEquals(event.getClassName())) return false;
return true;
}
}).subscribe(new Consumer() {
accept(Object event) {
List textList = event.getText();
if (textList == null) return;
if (textList.isEmpty()) return;
tasker.showToast("Input: " + textList.get(0));
}
});You get the accessibility events, setup a listener and do what you want with them.
In this example, it filters the events so they are of the type AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED and then if there's some text associated with the event, shows it in a toast.
Important Note: this code will leak listeners and has no way to stop them. It's just a minimal example. For full code, refer to the documentation.
With this, you can setup super complex setups like the one I showed in the demo video above, where you can create text replacers to handle expression shortcuts, Tasker command calling, monitoring app access (like doom scrolling) and anything else you'd want!
Similarly, you can also listen in on notifications by using getNotificationUpdates(). The setup for that is super similar to the one for Accessibility monitoring, but you get notification updates, instead of Accessibility updates.
I realize this is for more advanced users, but if you know what you're doing the sky is the limit! You can also ask an AI for help, which is normally pretty good with Java code.
As always, full documentation available here. Let me know if you'd like me to add more details there for anything.
Turn Off DND and Wifi Tether with Tasker Settings
Because of changes when targeting API 36, Tasker can no longer disable Do Not Disturb in some situations, so I had to move that feature to Tasker Settings.
Release Candidate
I want to release the new Tasker features for everyone soon, so I won't be adding any new features or potentially breaking code before releasing it publicly.
Let me know if there are any issues in this version that didn't exist in the public version so I can fix them ASAP before release. Thank you very much!
Full Changelog
- Fixed turning off DND on Android 16+ using the Tasker Settings app
- Added getJavaVariable, sendCommand, getAccessibilityEvents, getNotificationUpdates, showToast and logAndToast functions to tasker object in Java Code action
- Changed Java Code logs tag to JavaCodeLogs so you can more easily differentiate it from other logs
- Fixed Kill App action in some situations
- Added warning that Java Code actions can run arbitrary code when importing from Taskernet
- Made automatic notification group created with Notify action have the status bar icon of the first notification in that group
- Correctly handle Java Code action crashes to not make Tasker crash and notify user about it.
- Fixed setting null Java Variable in Java Code action
- Fixed some issues with Logcat Monitoring in some situations
- Fixed Logcat Monitoring on a rooted device
- Fixed displaying some Scenes in some situations
9
u/Nirmitlamed Direct-Purchase User Nov 19 '25
The flexibility of what people can do now with this new feature is unbelievable. Thank you so much!
Small question from a non programmer user, Have you instructed the AI to always make sure to build the code with thinking about leak memory possibility or any other safe mechanism?
As a non coder user my only problem is not having a way to know if my (AI) code can break stuff. For example how can i check after i run the code if i have a memory leak.
6
u/rodrigoswz Nov 19 '25
The power of it is incredible, but I confess it is very difficult to understand how it works.
Sorry for the questions. Watching the video, it's amazing how fast it works, but it still looks very "invisible" things π
5
u/ThaNeeksta Nov 19 '25
You work so hard!! Amazing stuff.
3
u/sid32 Direct-Purchase User Nov 19 '25
Nice! Any work on having Scenes show the full app icon?
3
u/jorgejams88 Nov 21 '25
If anyone plays PokΓ©mon go, this is a nice replacer that I started using today:
With that, I can write @#trash. (with the dot) and it will expand to
age0&0*&!shiny&!legendary&!mythical&!background&!@special, it also supports things like @#trash[2] to search for trash from the last couple of days.I hope this helps someone :)
3
u/andyooo Nov 23 '25
u/joaomgcd I got 6.6.14 RC from the Play Store, and it seems like the Bluetooth Connect action is broken. I'm getting the following error, both on a Pixel 10 Pro XL and Pixel Tablet on the stable November Android 16 build:
I tried adding a wait action, not sure what "add wait task" means.
Using AutoTools 2.3.19 still works.
2
u/anuraag488 Nov 19 '25 edited Nov 20 '25
I was going to ask for notification updates. But you gave it already.
AI keep using non existent getJavaVariable function. Now it can be used.
Can you include logToFile(filePath, message) function? Tasker's log sometimes huge and not relevant. Maybe also logToFileAndToast
2
u/PresetDirty Patreon Supporter && Tasker Fanatic π Nov 20 '25
This beta has killed my ability to export apks using (the final version?) of App Factory. It gives me the version incompatibility error when I try.
2
u/CennoxX Nov 21 '25
The on the fly text replacement / starting of tasks reminds me of Autohotkey, this is a game changer! This should be "native" integrated into Tasker (without the need of Java code)...
2
u/iDuts Nov 21 '25
nice update thank you. i'm trying to make an A-B looper for Spotify but getting following error. where do i enable that? not finding it in thee dots > preferences.
Notification Listener Service is not running. Please enable it in Tasker's preferences.
2
u/tb36cn Nov 22 '25
Was able to toggle on and off the do not disturb mode before upgrading. After upgrading to the latest version via playstore, tasker can no longer turn off dnd. Is there something I am missing out?
2
u/cormanthor642 Nov 23 '25
Thanks for fixing the DnD issue I reported via the Play Store. DnD -> Allow All is working again!
1
u/ZellZoy Nov 19 '25
Hmm is it possible to react to a sent text message now? I've been using an external plugin for that would be nice to not need it
1
u/Bitter-Smell9544 Nov 19 '25
All my logcats events with grep filters stopped working. Tasker 6.6.12
Android 11 Root No Shizuku
Example:Β Component: MediaSessionService Filter:-F 'DE_VOLUME_'Β Grep filter: on
It works with Grep filter=off and Filter=DE_VOLUME_
Last working version 6.6.7
1
u/Mundane-Income-565 Nov 20 '25
Hi. I am a novice user, so maybe it is something that I am doing wrong, but after installing this RC, the close button of scenes does not appear anymore, even though I have checked the "Show Exit Button" option in the Show Scene action. This happens with "Activity" and "Dialog" options of "Display AS". On the Playstore app I had a small "x" on the bottom right corner that has now disappeared.
Thanks
1
u/ActivateGuacamole Nov 20 '25
Is it possible to use the Java tool to listen for when my youtube app is playing a video and when it isn't?
1
u/88mph_pfr Nov 21 '25
When I attempt to install the Tasker Settings app, I get no response and it doesn't update from 1.8 using the imported task. If I try to install otherwise, I get a pop-up that tells me it is incompatible with my device. So right now I cannot turn off Do Not Disturb with Tasker.
Neither version works. I have a OnePlus 13.
1
u/RepresentativeNo8816 Direct-Purchase User Nov 21 '25
This is absolutely amazing Joao, can't wait to start playing with it!
What are your thoughts about using Gemini 3 Pro for the code generation? Which model is the feature using by default? Can we change it to a custom one?
Thanks a ton!
1
u/poedelpcs Nov 21 '25
Additional features? As we have to update tasker settings now wouldn't it be possible to give the user an update available message inside of the app? When I close the app it always checks if every permission is granted, why not if settings has an update? Maybe .. Shizuku my friend: As I told you, you can now shutdown, reboot (recovery|bootloader) now. Give those command a use Shizuku tick. Maybe even more is possible with Suzuki like accept|reject|cancel a call, turn on|off headphones .. all the magic stuff they locked from the normal user over time .. π€
1
u/Scared-Scarcity-1294 Dec 04 '25
Any chance of getting the demo project for notification listening from the video on taskernet?
1
u/OneOfKHo Dec 25 '25
Long time paid user and first time poster.
I was curious about Tasker+Shizuku and thought I would try the Shizuku integrated APK installer task to install the latest Tasker Settings. My first challenge was not knowing I should set Shizuku in run shell by default. Once I figured that out it was a matter of paying attention to the prompts. Very cool. Now to play with disabling A2DP...
My feature requests
1
u/coffee-turtle May 15 '26
u/joaomgcd will this completely replace AutoNotification?
3
u/JD_Number_6 Nov 21 '25
Wow, the work you do never ceases to amaze!Β Thanks for all your efforts!
I was hoping to learn (okay, steal) some things from the "Skip Forbidden Songs" module, but it wasn't included in the Taskernet project.Β Would it be possible to get it?
2
u/Gianckarlo Nov 20 '25
Thanks, Joao, this a great update to Tasker capabilities (and more homework for my weekend finding new uses for it). By the way, MakeUseOf posted yesterday a nice article discussing Tasker, have you read it yet?
2
u/telrod11 Nov 21 '25
I'm struggling with the DND and Tasker settings 2.0.0 also.
Your task wouldn't work with my shikuzu, but I got it installed with ADB on my device
When I go to system - apps - permissions, i see in system (the dots) DND , but I can't get it turned on.
Pixel 8 pro Android 16 beta 3
Thanks
1
u/ale3smm Nov 19 '25
amazing update ,amazing dev thank you so much ! not a complaint ! I too noticed the small bug about scenes
1
u/Johansays000 Nov 22 '25
hi dev is the doom scroll possible on tiktok and instagram? (Newbie )
0
u/SiragElMansy Nov 20 '25
Any hope of adding the assistant channel among streams option in Play Music or Say Actions π’?
0
u/[deleted] Nov 20 '25
[deleted] β view deleted comment
0
u/[deleted] Nov 20 '25
[deleted] β view deleted comment
0
u/[deleted] Nov 19 '25
[deleted] β view deleted comment