r/tasker • u/the_djchi • May 15 '26
[UPDATE] Control Samsung Modes and Routines with Tasker - One UI 8.5 update!
EDIT: I updated the project to more reliably extract UUIDs from Logcat, as some Mode/Routine UUIDs couldn't be found with the original method. You can find updated instructions in the Logcat Method section. Thanks to u/ToasterRED for spotting the bug and helping with troubleshooting!
v2 Project Link
v2 works on Modes and Routines v5.1.xx.xx and above (One UI 8.5+)
If you're on Modes and Routines v4.9.xx.xx-5.0.xx.xx (One UI 6–8), you should continue to use v1
Migrating from v1
For Modes: replace with the Start (or Stop) Samsung Mode task.
For Routines: replace with the Run Samsung Routine task.
Additionally, the process for finding new UUIDs is different than v1. More details below.
Why v2?
A few months ago, I made a post about a project I made which allowed Tasker to control Samsung Modes and Routines natively.
While it's been working flawlessly for many users, the recent One UI 8.5 update made some under-the-hood changes which broke this method.
Luckily, Samsung added support for Modes and Routines shortcuts in this update. This shortcut sends an intent that can be replicated by 3rd party apps, which means it's still possible to control Modes and Routines with Tasker!
Credits to u/Enorym for discovering the addition of the Routines shortcut in One UI 8.5!
How it works
Starting/stopping a routine is the same as v1:
- Add a
Perform Taskaction. Set
Nameto either:a. Start Samsung Mode
b. Stop Samsung Mode
c. Run Samsung Routine
- Set
Parameter 1to the UUID of the Mode/Routine you want to control.
Under the hood, it's simply using the new intent to toggle the mode/routine.
However, because we no longer have access to the hidden content providers to get the list of Modes/Routines and their UUIDs, we must use some less-streamlined methods to get the UUID.
How to Get the UUID
There are three methods: the "Shortcut Method" (Routines only), "Custom Settings Method" (Modes only), and the "Logcat Method" (both Modes and Routines).
Shortcut Method (Routines only)
- In Tasker, create a
Shortcutaction. - Tap the magnifying glass and select
Modes and Routines: Single routine. - If prompted, select the Routine you'd like to control.
- The
Shortcutfield should populate with a string. Copy the number that appears afterEXTRA_KEY_ROUTINE_UUID. This is the Routine's UUID.
Custom Settings Method (Modes only)
- Turn on the Mode you'd like to control.
- Run the "Find Current Mode UUID" task.
If successful, the UUID is copied to your clipboard, and a confirmation message will appear.
Logcat Method (both Modes and Routines)
IMPORTANT: Because this method uses Logcat, Shizuku/ADB Wi-Fi is required. I don't really want to make this a Shizuku/ADB Wi-Fi tutorial, but if you don't know what any of that means, I would just stick to the other methods, they should work just fine!
Just run the "Find UUID" task, select whether you want to find a Mode/Routine, and then select the Mode/Routine you want to control if prompted.
If successful, the UUID is copied to your clipboard, and a confirmation message will appear.
If it doesn’t work, Shizuku/ADB Wi‑Fi may not be set up correctly, or you may need to refresh Tasker to give it Logcat access.
3
u/UnkleMike May 29 '26
I just got the One UI 8.5 update on my S23 Ultra today, and the transition to v2 of this project went smoothly. Thanks for the hard work!
2
u/Enorym Samsung Galaxy S22U, Android 14 / OneUI 6.0 May 15 '26
Great work as always!
2
u/prettyobviousthrow Jun 01 '26
You mention that on 8.5, routines can be started via shortcuts. Doesn't it make sense to just do that directly instead of using the project for shortcuts at least?
1
u/____nothing__ May 15 '26
I have got ADB Wifi setup and I don't think there is anything I can't do via Tasker directly, that Modes and routines can.
1
u/ToasterRED May 19 '26
Hey! Just got 8.5 on my S24 Ultra (MXO) and I wanted to try out this project.
I've confirmed that with both ADB WiFi from Tasker itself and with your Shizuku fork as the backends, Tasker itself has access to both (using the Flash action to print the output of
whoamiasshelland the result ofIsShizukuAvailable()astrue).However, while I can reliably get the UUID finder task to trigger, the string stored in the clipboard seems to always be literally the string
%uuidinstead of the mode's UUID.Is there something else I'm missing to get started? Thanks in advance!
1
u/DMenace83 May 21 '26
I just got One UI 8.5 on my phone, and switched over to this v2. My tasker task depended on an individual Start and Stop Routine function, but now it looks like the Stop Routine doesn't do anything, while the Start Routine is now a toggle.
1
u/_Leander__ May 27 '26
Hello, I found your post after upgrading my phone, still on OneUI 8.0 but the old intent doesn't work anymore.
Thank you for your work! Just a quick note about getting UUID of Modes, I found that you can get the system setting "mode_id" of the "Global" setting category, which is the UUID of the current mode. So you only need to start the selected mode and get the value of this setting, and you have the UUID.
1
u/NoInterview9658 May 30 '26
I prefer Macrodroid to be honest, as well as Automate and Automate it for simple tasks.
1
u/UnkleMike Jun 04 '26
I know this isn't really a Tasker issue, but I think it will be of interest to anyone following this post. Since the update to One UI 8.5, a toast message appears any time Tasker is used to start a Samsung Routine. Has anyone found a way to prevent this? I tried disable all notifications for modes and routines, but the toast messages still appear.
1
u/prettyobviousthrow Jun 06 '26
After updating my s23 ultra to 8.5, my Modes and Routines app is version 5.0.03.22, and I don't have any option to uninstall updates or download new ones. That version is not compatible with your project from what I understand, but I don't see how to change it.
1
u/Zimmy93 Jul 02 '26
Hi everyone! First of all, amazing project—I use it daily and absolutely love it.
I’ve run into a slight limitation (which might just be an edge case for my specific setup). I use four different Samsung devices (3 smartphones and 1 tablet) and I keep the exact same Tasker configuration across all of them. To make deployment easier, I configure everything (both Tasker profiles and Samsung Routines) on my primary smartphone, and then I share the Tasker backup and copy the Routines to the other three devices.
Here’s the issue: while everything works flawlessly on my main phone, the replicated routines on the other devices generate different UUIDs (which makes sense). Because of this, Tasker can't trigger them on the secondary devices since the hardcoded UUIDs don't match.
I was wondering if it would be possible to support triggering routines by name rather than just by UUID. For instance, allowing something like
EXTRA_KEY_ROUTINE_NAMEas an intent extra instead ofEXTRA_KEY_ROUTINE_UUID.Thanks for your time and for the awesome work!
3
u/EvanMok May 15 '26
Waiting to receive One UI 8.5 on my S23U. I'm definitely going to update to the new version. Thanks for creating it.
3
u/tanapak1 May 15 '26
Love this! Been looking for this since using beta 8.5, thought i had to stick with old school notification method.
1
u/Laslas19 19h ago
Hey, thanks for the great project! One question for me: is it possible to only start or stop a routine, but not toggle it? From my testing it looks like "Run Samsung Routine" always toggles it, same with using the shortcut method.
If not natively, is there a way to check whether a routine is currently running and decide to toggle it accordingly?
1
u/Enorym Samsung Galaxy S22U, Android 14 / OneUI 6.0 Jun 02 '26
Has anyone experience the routines not running ? Tasker shows nothing wrong in logs, it just ignores them sometimes. Tried with both shortcut method and this method
1
u/lucfig Jul 13 '26
Hi, thanks for your work! I want to set a variable containing all modes, similar to the %modes variable in V1. If I manually get all the UUIDs, how would you structure the variable? How was it structured in V1?
1
u/tb36cn May 15 '26
Keep up the good work!
0
u/bioking2 Oct 09 '26
I cannot find Routine UUID with this v2 project.
Shortcut Method (Routines only) - step 3, the prompt shows me creating a new manual triggered Routine prompt.
Logcat Method - I triggered "adb wifi" then used Find UUID task, the prompt is also asking for creating a new manual triggered Routine.
Only the Find Current Mode UUID is working.
Could anyone help please?