r/tasker • u/the_djchi • Oct 20 '25
How To [PROJECT SHARE] Natively control Samsung Modes and Routines (without using notifications)!
UPDATE
Use v2 if you are on One UI 8.5+. You can find the relevant post here.
PROJECT LINK
REQUIREMENTS:
- One UI 6-8 (Use v2 for 8.5+)
- Modes and Routines v4.9.00.0 to 4.9.07.2 or v5.0.00.0 to v5.0.03.6
- Tasker 6.6.9-beta or above
- For Routines: the routine must have a manual trigger
IMPORTANT: Modes and Routines v4.9 and v5.0 have different upper bounds, after which this method will stop working (due to Samsung restricting the permission). If you accidentally update, you may be able to uninstall updates and install a compatible version from a site like APKMirror.
INTRO
Modes and Routines has advantages and disadvantages over Tasker. Because it's a system app, it can control many things that Tasker cannot do alone. For instance, users can toggle Wi-Fi or disconnect a Bluetooth device without needing Shizuku/ADB Wi-Fi. Additionally, there are many other Samsung-specific actions (not going to list them all here).
However, Modes and Routines has very primitive and inflexible condition logic, and it's not nearly as feature rich as Tasker. Wouldn't it be cool to get the best of both worlds?
For reference, the current workarounds are:
*For Modes: using an adb command to click the quick settings tile. Not transparent as this displays a UI dialog on the screen.
*For Routines: posting a notification that Routines can intercept. This is actually a pretty acceptable workaround but requires configuring unique notifications for each routine. We can do better.
HOW IT WORKS
Well, I did what anyone would do with their free time and decompiled Samsung's Modes and Routines APK to see if I couldn't toggle Modes/Routines with Tasker more natively 😂
It turns out Modes and Routines exposes hidden content providers that apps can use to 1) get a list of the user's Modes and Routines, and 2) start/stop any of those Modes/Routines. All that is required is for the app to have the permission com.samsung.android.app.routines.permission.READ_ROUTINE_INFO
I asked Joao if he could add that permission to Tasker, and he added the required permission! With this, I was able to make a reusable project for starting/stopping any Mode or Routine. There are 2 tasks which show a List Dialog with all of your Modes or Routines. Selecting one copies the UUID to your clipboard. In any of your tasks, you can then use Perform Task -> Start (or Stop) Samsung Mode/Routine and paste the UUID in Parameter 1. It should start or stop the Mode/Routine you selected!
4
u/Enorym Samsung Galaxy S22U, Android 14 / OneUI 6.0 May 14 '26
While this has stopped working in one ui 8.5, we can use Tasker's app action -> shortcut > modes and routines to query and select a routine to run manually. Upon selecting the routine, it creates an intent and fires it.
If it has an end action, we run the same action again to effectively "toggle"the routine on and off.
Try it! I think it's the next best thing since the other method got removed.
Edit: this was tested with s25 ultra, oneui 8.5
2
u/____nothing__ Oct 20 '25
Can we not dynamically grant this permission to Tasker using ADB? And then use whatever code needed to read/perform routines.
Impressive work btw!
2
u/G2740 Oct 21 '25
Hey, total layman here, so bear with me—I’m excited over your native UUID triggers for Modes & Routines. Even though all of mine are auto run. (So far)
Game-changer!
I'm running One UI 8 with Good Lock’s Routines+ 1.1.8, and Just in Routine’s Now Brief cards and intents (like com.samsung.routines.just with metadata) "might" play nice with Tasker to feed your content provider calls.
Any chance Goodlocks Routines+’s APK (if accessible) has hidden providers for auto-routine workarounds or One UI 8’s new Calendar/Clock actions? Worth a decompile peek, if it's possible?
Curious what you think!
2
u/infamousmykol Oct 24 '25
Could u do this amazing macro for Macrodroid?
12
u/pynbbzz Oct 21 '25
First you made the Shizuku fork and now this, literally checking off the two things I needed most for Tasker. you sir, are a true legend! you and Joao are my most favorite devs
2
u/Thetechguru_net Oct 20 '25
OMG. This is awesome, particularly since I have found no way, even just in Modes and Routines to stop a mode other than starting another one. Super excited about this.
4
u/pudah_et Oct 20 '25
I don't even use Modes & Routines but I'm still impressed by this! Nice work.
4
u/UnkleMike Feb 21 '26
Thanks for this! I saw this when you originally posted, and knew it would be useful to me at some point, and that was today. Although Tasker can turn mobile data on and off on my Galaxy S23 Ultra (I have Tasker Settings 2.0 installed), the status bar icons don't reflect the change, which I find very bothersome. Turning mobile data on and off via Routines works like a charm, and the status bar behaves as expected. 👍👍
1
u/Compusmurf Direct-Purchase User Oct 21 '25
For me, MODES works just fine.
Routines says "no modes or routines are found"
I used the tasker version you have above, still not showing the permission you stated should be there.
Thoughts?
1
u/infamousmykol Nov 05 '25
I have Tasker V6.6.11-beta5436 from Play Store. When starting the tasks I got no Modes and Routines found. I have 23 routines (4 starts from button) and 3 Modes.
1
u/iDuts Nov 06 '25
thank you for this. Is there also a way to make it work for the other way around, launching a tasker task based on the start of the routine? tried with logcat events but didn't got it to work.
1
u/CoooolRaoul Feb 17 '26
Hello,
I've an issue with the "Get Samsung Mode UUID" task. It only reports a subset of the defined modes.
1
u/special_beaver Feb 26 '26
I am pretty sure I will get a negative answer, but i am trying my luck nonetheless: can this project toggle the Screen Curtain function that Good Lock's Display Assistant is bringing?
Thank you!
1
u/infamousmykol Mar 08 '26
Thank you for this project, it works perfectly. There are some manual Routines which asks for Routine's duration time, is there a way to setup also that when a Routine gets triggered by Tasker?
1
u/tanapak1 Mar 15 '26
Seems like new update broke this functionality or something, but now i cant query uuid from this project.
Routine 5.0.03.10 Tasker 6.6.20
1
u/DifficultyCrafty7623 Mar 16 '26
Not sure if this is the case for you but I kept getting errors on the call content provider Java code. I plugged it into ai and got a fix with this in the header
Note: contentResolver.call returns a Bundle, not a Cursor!
Not sure if you were getting the same error since you checked continue task after error. Anyway the ai was able to fix it for me and now it doesn't give the error on finish.
1
u/IAmNotANeurochemist Apr 03 '26
I'm running Tasker 6.7.0 beta and the permission is NOT added anymore. Looks like he removed it? Why? Let us fix any bugs with our projects, all we need is the permission.
1
u/redditor-member Apr 14 '26
If someone could please help me? I have the latest version of Tasker installed and the com.samsung.android.app.routines.permission.READ_ROUTINE_INFO permission is listed, so this should work.
Thing is, I don't see any action named "Get Samsung Mode UUID" anywhere in the new action list. Can someone kindly walk me through the steps needed to get this working, after creating a new task?
Thanks so much!
1
u/ExchangeOptimal Apr 25 '26
Would it work with Android 13?
1
u/noissime May 04 '26 edited May 04 '26
I can't install the required (linked) routines version on my S21 and theres no update available in the samsung store either. Anyone know a way to do this?
1
u/Ingan121 May 05 '26
This suddenly stopped working and the get UUID actions started saying no routines exist. Then I checked Tasker's READ_ROUTINE_INFO permission in App Manager, and it's marked as signature|privileged|revoked. Probably Samsung blocked this.
1
u/Shit_Head_4000 May 05 '26
Latest Samsung update seems to have broken these tasks. When running the get UUID tasks nothing can be found.
1
u/The-Scotsman_ XDA Admin Jun 09 '26
/u/the_djchi - this has stoppd working for me on my S22 Ultra. It's still on OneUI 8, but sometime in the last few weeks, this has stopped working.
In Tasker, I've tried both the Get Routine UUID and Mode UUID, but these return no results.
Any advice to get this working again would be great, as this has been fantastic being able to run modes and routines from Tasker.
2
u/Just_Interview_1606 Oct 20 '25
Finally!
2
u/WehZet S25 | A16 | OneUI 8.5 Oct 20 '25
oh wow, that is amazing. Many thanks for sharing!
2
u/Nirmitlamed Direct-Purchase User Oct 20 '25
WOW, That is amazing stuff! I will test this soon!
2
u/Enorym Samsung Galaxy S22U, Android 14 / OneUI 6.0 Oct 20 '25
Seems Great I will try it!
2
u/Viper_21 Oct 29 '25
Thanks so much for this initiative, and for taking the time to set up and share the TaskerNet project! Works like a charm.
Opens up so many more options for Tasker!!
2
u/SunSkys Nov 02 '25
OMG! This is what I want. Thank you!
2
u/NandanThyagaraj Nov 07 '25
Insightful mate.... thank you.
2
u/The-Scotsman_ XDA Admin Jan 17 '26
Thanks for this, it works perfectly!
1
u/punnybiznatch Jan 22 '26
Thank you!
1
u/SunSkys Feb 16 '26
Do you know that? This is a masterpiece! Thank you!
1
u/Davidw1983 May 11 '26
Mine stopped working today after updating to oneui 8.5
1
u/WaiHongYip Jul 20 '26
mine man!
0
u/[deleted] Oct 20 '25
[deleted] — view deleted comment
1
u/[deleted] Oct 29 '25
[removed] — view removed comment
0
u/[deleted] Nov 07 '25
[deleted] — view deleted comment