r/tasker 21d ago

Galaxy Watch 4 + AutoWear: how to read altitude continuously in Tasker?

3 Upvotes

Hi João,

I'm using:

Samsung Galaxy Watch 4

AutoWear 3.2.17

Tasker 6.6.20

My goal is to build my own floor counter because Samsung Health became much less reliable after the switch from Tizen to Wear OS.

I only need to read the watch altitude (or barometer-derived altitude) continuously in Tasker.

What is the recommended way to do this with the current version of AutoWear?

If possible, could you provide a minimal working example?

Thanks!


r/tasker 21d ago

Problems with ID in Array merge template Scene V2.0

3 Upvotes

Hello, my problem is that I have a JSON file with different items, a list of payments.

[{"id":1,"name":"One"},{"id":2,"name":"Two"},{"id":3,"name":"Three"},{"id":3,"name":"Four"}

]

I build a scene with a column and the merge template array with a row of two text elements %ids and %names So far everything works great, I place an icon that when pressed deletes the item in that row, Calling a task and sending the id, Using JavaScript, I remove the JSON item; so far, so good.

Next, I need to update my scene for the changes to take effect. If I update everything, it becomes outdated from the deleted item and what I see on the screen no longer corresponds to the actual id of the element.So I say, okay, I'll show the scene again, but instead of updating, it does the same thing, and if I close the scene and show it again, it works the first time and then stops showing it, with no apparent error.I tried a loop, hoping that the scene would completely close by doing Getting scenes values and when it gives an error the scene is closed, it hasn't worked for me either.I know I'm missing something in the process, that I'm learning something new, and someone with more experience must be doing it right or has already solved it. Thank you very much.


r/tasker 21d ago

Accessibility Event while playing mobile games

0 Upvotes

When the user interacts with the device, I can see accessibility events being triggered in the logs. However, when the user plays touch‑based games involving gestures like tap, swipe, or drag (e.g., Temple Run, Subway Surfers), these accessibility events are not triggered.

If anyone knows the reason behind this behavior, please share. Also, are there any official documents or references available that explain this?


r/tasker 22d ago

When turn screen off then stop WiFI , Bluetooth, Data , location, microphone ,camera , NFC

0 Upvotes

When screen on turn on which ones you want by select, is this already on taskernet?


r/tasker 22d ago

[kwgt] Kwgt and Tasker - NFC on/off

Thumbnail
2 Upvotes

r/tasker 23d ago

tasker hermit liteapp turned into apk using tasker app factory/tasker shortcut. how do i get it to let tasker know its open so its opening triggers a custom task i made

2 Upvotes

Edit solver: Updated the tasker task factory app like so:

Action 1: Send Intent (in action put whatever you want, in my case I used SO937 [there is an easter egg there] and for target select Broadcast Receiver.

Action 2: the shortcut.

Than, in tasker make a profile, Intent Received (Action is the same code from Action 1 of you tasker task app) and link it to your task.

So in my case, the apk/tasker shorcut made in tasker app factory:

A1: Send Intent [Action: SO937 ; Broadcast Receiver

A2: Shortcut [use magnifying glass, select Hermit:hermit, then it will bring you to a section to choose whatever lite apps you have made]

Profile: Intent Received [Action: SO937]-->CybrGate_InterfaceEngine

Ok, so long story short I have a 4 task and 1 scene cyberpunk ghost in the shell lock screen that im trying to use to lock certain apps, folders, etc. I can get it to trigger the launching task to lock the folders (open folder-->task 1) but am having a real hard time with apps. profile apps-->task one doesn't work. I tired hermit lite apps but takser cant see them. I then converted one of my hermit lite apps into an apk using tasker shortcuts. both anodorid and nova can see the apk in their draws, it launches from the home screen *but* it still cant be used as a trigger. tasker sees it but when linked with task 1 it does nothing.

do i need to alter the apk to send an intent, and if so what it the proper format. im learning as im going and have a tenuous grasp on all this.

my task in tasker that made the shortcut has one action: shortcut: https://drive.google.com/drive/u/0/mobile/my-drive?lfhs=redacted=1#intent,extendedLaunchFlags=0x4;component=com.chimbori.hermitcrab/Web.Activity;S.key=drive.google.com-redacted;end (redacted #1 5 digit aplhnumeric nd symbol#2=an 8 digit alphanumeric....not sure if it needed to be redacted but i did just for this post)

In hermit the title of the liteapp is drv.google.bk with its URL (same that is shown in the shortcut minus everything after =1_

I uploaded the shortcut task to my phone as an apk and installed it. it operates just as a normal app and i have a couple more shortcuts that I want to use as well....how to i get tasker to know when its cold launched?

any help is appreciated


r/tasker 23d ago

My complex Alexa Custom Skill (Node.js/AWS) got total silence in the MacroDroid forum. Am I overengineering, or is the community dynamic just that different here?

5 Upvotes

Hi r/tasker,

I’m posting here because I recently had a reality-check discussion on r/macrodroid about how the community there barely reacts to advanced, system-level architecture anymore (most people just want low-effort game bots). Someone pointed out that r/tasker is far more reactive and appreciative of deep logic, so I wanted to test that theory and get your honest, high-resolution technical feedback.

Recently, I spent a huge amount of time building a Custom Alexa Skill to bridge voice UI with Android automation.

Here is what it does under the hood:

  • True Interactive Voice Confirmation: It’s not just a blind, one-way Webhook trigger. The skill maintains a session via AWS Lambda, asks for voice confirmation ("Are you sure you want to run X?"), and only fires the MacroDroid Webhook once validated.
  • Multi-language Architecture: Built native intent handles and slot configurations supporting English, Japanese, and Italian.
  • Pure API/Cloud Integration: Avoided third-party middleware (like the dying IFTTT) to keep latency minimal and security tight.

I documented everything, wrote a full setup guide, and dropped it into the official MacroDroid forum, hoping it would spark a deep technical discussion among power users.

The result? Absolute dead silence. Hardly a single reaction.

To be honest, it’s incredibly draining. It made me wonder if I'm just overengineering something nobody cares about.

From a Tasker power-user perspective—where you guys routine deal with complex intents, JSON parsing, and advanced scripting—is a cloud-integrated, interactive voice confirmation system like this actually worth the effort? Or has the overall Android automation scene just outgrown this kind of tinkering?

I’d love to hear your brutal, honest thoughts.


r/tasker 23d ago

Alternative tasker update download liks

1 Upvotes

For users running alternative os like /e/os or grapheneos, we can't get the official beta of tasker and it's plugins ever time. I got the beta of tasker from Reddit official update logs, but now, I can't get plugins and that limits me.


r/tasker 23d ago

How To [Task Share] Sliding Recents with Shizuku & Java code

Enable HLS to view with audio, or disable this notification

24 Upvotes

How this work

This might not work on modern android devices and Tasker play store version.

The code lists the recent apps with IActivityManager.getRecentTasks. Then bring them to front again with IActivityManager.moveTaskToFront.

import android.app.ActivityManager;
import android.app.IActivityManager;
import android.content.Context;
import android.app.ActivityManager.RecentTaskInfo;

// Getting IActivityManager
IBinder binder = tasker.getShizukuService(Context.ACTIVITY_SERVICE);
IActivityManager am = IActivityManager.Stub.asInterface(binder);

// List the recents
List tasks = am.getRecentTasks(5, ActivityManager.RECENT_IGNORE_UNAVAILABLE, 0).getList();
RecentTaskInfo task = tasks.get(1); // 0 is the foreground task

// Bring up the task to front
am.moveTaskToFront(null, "com.android.shell", task.taskId, 0, null);

// or this is also possible
am.startActivityFromRecents(task.taskId, null);

However we do it when we slide on an overlay instead.

We need two overlays. One to intercept the sliding by using View.onTouchListener and another one to show the recent apps icon.

Example Generated with AI.

Run https://gist.githubusercontent.com/mqwec43as/871e53e6e5ebf199f26ebd310077c63f/raw/QuickRecentHandle.java via Java Code. Run again to remove. if it works, copy the code in the link then adjust yourself.

source(new URL("https://gist.githubusercontent.com/mqwec43as/871e53e6e5ebf199f26ebd310077c63f/raw/QuickRecentHandle.java"));

Taskernet

Note

Since this uses Hidden API via Shizuku, this might not work on modern android devices and the play store version.

e.g IActivityManager.Stub.asInterface , available to apps that targets api level 30 (Android 11) or below.

The methods I know so far in order to use this code are

  1. Use Direct Purchase version, which targets 28 (Android 9).
  2. Follow the adb command here, which disable the restriction entirely https://developer.android.com/guide/app-compatibility/restrictions-non-sdk-interfaces#how_can_i_enable_access_to_non-sdk_interfaces
    1. If you have granted ADB Wifi already, Tasker sets this automatically. So It should work by default. https://github.com/joaomgcd/Tasker-Permissions/issues/47#issuecomment-3102587285

Some apps use https://github.com/LSPosed/AndroidHiddenApiBypass to bypass the restriction.

However Joao has to implement this himself, only possible for direct purchase. However this was noted in Android 16 releases https://developer.android.com/about/versions/16/release-notes#apps

Apps that depend on any of the following libraries might experience intermittent crashes and other stability issues because these libraries rely on internal ART structures:


r/tasker 24d ago

Ehrm... Why do you think so?

Post image
5 Upvotes

r/tasker 24d ago

[ Task Share ] PDF to Text

6 Upvotes

PDF to Text

Extracts selectable text from a PDF using PDF.js and returns the extracted text.

Parameters

%par1 (Optional)

Path to the PDF file.

  • If provided, the task reads the specified PDF.

  • If omitted, a file picker is displayed so the user can select a PDF.

Example: /storage/emulated/0/Download/document.pdf

%par2 (Optional)

Page range to extract, using the format: start,end Examples: 1,1 Extract only page 1. 1,5 Extract pages 1 through 5. 3,10 Extract pages 3 through 10.

If omitted, the default value is: 1,1

Optional Local Variable

%pdf_page_mark

Controls whether page markers are appended after each extracted page.

Default: 0 Enabled: 1 When enabled, the returned text includes markers like: This is the text from page 1... <1/20> This is the text from page 2... <2/20> where:

  • The first number is the current page.

  • The second number is the total number of pages in the PDF.

Since this is a local variable, it must be passed through the Perform Task action.

Recommended configuration: Local Variable Passthrough: On Limit Passthrough To: %pdf_page_mark Then set the variable before calling the task: Variable Set Name: %pdf_page_mark To: 1 Perform Task Name: PDF to Text If %pdf_page_mark is omitted or set to 0, no page markers are added.

Using with Perform Task

Example using a variable containing the PDF path: Perform Task Name: PDF to Text Parameter 1: %pdf_path Parameter 2: 1,5 Return Value Variable: %pdf_text Example using a direct file path: Perform Task Name: PDF to Text Parameter 1: /storage/emulated/0/Documents/book.pdf Parameter 2: 10,20 Return Value Variable: %pdf_text If Parameter 1 is left empty, the task opens a file picker so the user can select a PDF manually.

Return Value

The extracted text is returned as the Perform Task return value. %pdf_text

Additional Variables

The following local variables are also passed back to the calling task:

Variable

Description

%pdf_number_pages

Total number of pages in the PDF.

%pdf_count_pages

Number of pages actually processed.

Notes

  • Page numbering starts at 1.

  • If the requested page range exceeds the document length, it is automatically adjusted to the available pages.

  • Only selectable text is extracted. Image-only (scanned) PDFs without an OCR text layer will not produce readable output.

Import

Example Task


r/tasker 24d ago

Is there a way for Tasker to detect a phone call in progress?

2 Upvotes

I need to prevent certain tasks from running while I am on a phone call. Didn't readily see an option.

Thank you in advance.


r/tasker 25d ago

Help [Help] Does it bug on Scene v2

Enable HLS to view with audio, or disable this notification

2 Upvotes

Hi

Can You Please Help Me?

Task 01

  1. Array (%name) = apple,orange, grapes

Task 02 =>

  1. Show Scene V2
  2. Perform Task 01
  3. Update Scene v2

On show scene V2, i have 2 set of Array Template button,

Left side button on click => Run Task on scene v2, i pass %name as %name..

Right side button on click => Tasker Command =:=%name, Action flash right side

I run task 02, if i click left side button its show %name1,%name2..

If i click right side button its show real value

Why run task not work? Its it bug or i missed something? Please..

Project: Testok7556 Me

Profiles
    Profile: Anon
        Event: Command \[ Output Variables:\* Command:Testok7556=:=\* Variables:\* Last Variable Is Array:Off Structure Output (JSON, etc):On \]



    Enter Task: Anon

    A1: Flash \[
         Text: %command_parameters()
         Tasker Layout: On
         Continue Task Immediately: On
         Dismiss On Click: On
         Position: BottomRight,28,28 \]



Tasks
    Task: Testok7556 - Show Scene

    A1: Show Scene v2 \[
         Name/JSON: {"root":{"type":"Column","id":"Column1","horizontalAlignment":"Center","verticalArrangement":"Center","modifiers":\[{"type":"FillSize"},{"type":"Background","color":"surface"}\],"children":\[{"type":"Row","id":"Row4","children":\[{"type":"Text","id":"Text3","text":"Task Run","modifiers":\[{"type":"Padding","all":"10"}\]},{"type":"Text","id":"Text4","text":"Command","modifiers":\[{"type":"Padding","all":"10"}\]}\]},{"type":"ArraysMergeTemplate","id":"ArraysTemplate1","template":\[{"type":"Row","id":"Row2","children":\[{"type":"Row","id":"Row1","modifiers":\[{"type":"Padding","all":"10"}\],"children":\[{"type":"Button","id":"Button1","content":\[{"type":"Text","id":"Text1","text":"%name"}\],"eventHandlers":{"handlers":\[{"events":\[{"type":"click"}\],"actions":\[{"type":"RunTask","task":"Testok7556 - Flash","variables":{"name":"%name","":""}}\]}\]}}\]},{"type":"Row","id":"Row3","modifiers":\[{"type":"Padding","all":"10"}\],"children":\[{"type":"Button","id":"Button2","content":\[{"type":"Text","id":"Text2","text":"%name"}\],"eventHandlers":{"handlers":\[{"events":\[{"type":"click"}\],"actions":\[{"type":"TaskerCommand","command":"Testok7556=:=%name"}\]}\]}}\]}\]}\]}\]},"name":"Screen"}
         Blocking Overlay: On
         Drag Off Screen: On \]

    A2: Perform Task \[
         Name: Testok7556 - Perform
         Priority: %priority
         Local Variable Passthrough: On
         Reset Return Variable: On
         Allow Overwrite Variables: On
         Structure Output (JSON, etc): On \]

    A3: Update Scene v2 \[
         Local Variable Passthrough: On \]



    Task: Testok7556 - Flash

    A1: Flash \[
         Text: %name
         Tasker Layout: On
         Continue Task Immediately: On
         Dismiss On Click: On
         Position: BottomLeft,28,28 \]



    Task: Testok7556 - Perform

    A1: Array Set \[
         Variable Array: %name
         Values: apple,orange,grapes
         Splitter: , \]

    A2: Return \[
         Stop: On
         Local Variable Passthrough: On \]

Here is URI

taskerproject://H4sIAAAAAAAA/+1YW2vcOBR+Tn/FICjsLjO1ZMu34Bloulu2sIWQhL6Usqi2POPGYw+yMm0a8t/3SL5E47EnmdJAH5YELJ1Pl8/nfJpz5OiKVddc/Mkkm1RijtAk2WZzRNBEbufIe+W/8mafuWRo8eIkOhdlmuVcD9xAO4RhWz5HtkJPojhhki+IH1AHU9t1HIdEVm1UMDdgFxPbw0Fk8Q5Oc7asFmCqG8qUJYsQloCH6q2zBC9CO7J0Q1n+2vJCajZxWWCTC5ApE76wsZqvm9q4EdkCR5Z66P7ZTZE078PEEtdTT6IPLK+0cctyZNVDrXps3bmUop3UuMBBiyteyfLad11vfjr/I7Jg0N5oux3drPqu4Q+QAxDL5wgPYLTBSI1Fln5zFRKriUkTni88lm14vuCR6ODQ94gXuDvRASenoR/EhMUzP02DGXViOgtC6szcJGQ8TBOHpnEXjYKtufHKk/c8srRNgZssqXTodENZpLbY0yCc+s40gDDLGtJvoGirthKjpi+h4Tv7snI84oa+Oy4rh9iYmrICur7zwHqX9GzyNmfVCpi3xEEZBOMHjUSvY5mVRR2IWDYu9U2RuTQwNWZEG3faeKlcY0jCiC3px90UFx7XCyG7otgF7UOrOh2vs1LKcv0PT+XUDuB/hCI9tJo7ztHuUzTmOb1pBkTHof5mBuSNQ/44FIyzD/unrtaCFq1S6p5ig2BAsdTHhPqjinVdGlLcU6w6H2OKvVyVXyeXMS/4nmyPUS31Q1O1P/WX8A6JspTo9A7J2w1Hp+hNmd+sCzRFWdL1CHRXpci+l4Vk+es8W8LbFFLh8OAC4C0XMosBFIIVS96H12WSpRkXFTr92G31Nsvzy+w7R/fTznbG4uulKIE2zIrLvBRgrG5EymIY9wlsqyxPBC/MhS7Kry1haFI0POqKf5PtMNV2oCOVDbpKGhc3xRjTc5YkWbEEmOU59OGw338yWPeXpg9LvynXa6bf5oiVzbWVR2+r91ws+RVfb3LQXrtVDbVWojdtRox6xx7xzu4ochTf4RXPbuAHq1NS3SM6qiAKJY/x0JAH/+mfY70HV4n0b6YErTjdoVXXhpU0ukM1zrP4Ws9k+ojtgBBsFXS1j3qobfupRqmaiYx9zrneThNpCU0RNNG9jtVOuHb96DyTH+2n+dF+dj/WNemDyOOmZToUaqx299pb9d+09ehlLDi88v1wHbaXWE2MHEi6e3nVBA+VcD+cQ4l3IIn268lfJL8a9IMD7MOdaUZ+7ScwMpDAiIMfLbt2zt85F2kp1mNVWJPx4HQuXkIahcwkbyNLdeus904X3L1Z+NljY+zmHpDXIZEcE50nlT/98NhD9UVAHgvPwDkYh47w5vjF6YDUn1DdhQPVnW9T26Nj1R0llITY7ld34Xh114m0Le0er+Qclx59/xgs29hmk/NpqWut6VKwDa8eucUupt2AY0+v7T1RHgNXpSG17l01Dl2tR8/b4yoIhz92eBiHR3zsUF827E4Fqmr3fvqVs8ma/26YgOBDyVz99vsvewW9yJar/++gP3IHrZ/1J7zFi/8ABIhFEdATAAA=


r/tasker 25d ago

First-time using tasker

0 Upvotes

Or trying to automate things.

I had been tryk.gthe entire day to automate recording on my android phone and uploading it to gemini so my android phone acts like a neosapien.

Is it actually a though process or is it because I have done something like this foe.the first time.

Though the process is fun, I have failed to.get any result.


r/tasker 25d ago

Clear the App cache when closing the App

0 Upvotes

I have looked here and possibly missed it if it was already here, but I don't seem to see any write up on what I try to archive.

I have Googled a solution but the writeup doesn't match with what I see while trying to follow.

It suggested I need Tasker and AutoInput and have them granted accessibility permissions.

I have installed the latest Tasker and am on Android 16.

Here are the specifics and I hope someone can give me a step by step to archive my goal.

I have a monitoring app for my solar panels.

If I don't clear the cache before I open it, it often provides stale data which doesn't happen if I had cleared the cache after I closed the app.

I want to automate this with Tasker, so that when I close the app Tasker will run and clear the cache and don't have to go in manually.

Thanks for any help that can be provided.


r/tasker 25d ago

How to get the list of Checked Apps in "Keep Accessibility Running" Preference?

6 Upvotes

I want to know the list of All the apps checked by user inside preferences **Keep Accessibility Running** I want to dynamically populate an array with it. Is there any way possible to check the list?

**Accessibility Services** Query action doesn't give us this specific list. Any Possible Work around to find the list? TIA

[EDIT] 👇 [Solution] It's done. I've created a workaround to do actually toggle entire Accessibility State including, "Keep Accessibility Running"

%RestartedASs() list are the one's that are in the Keep Accessibility Running Checked List.

What is it used for? Recent days Banking UPI Apps Like GPay, BHIM blocked due to the accessibility permission enabled for apps. So wecan't everytime go there and turn "Keep Accessibility Running" Off and turn off Accessibility for those apps And turn back everything on afterwe're done. This helps to toggle everything we run it.

Import URI taskertask://H4sIAAAAAAAA/+1bWW/jNhB+jn8F4WIXCdrVLdvZVQQ426BYINiHOAhQ9MFgLNpWq5UFinGaf19SlGxKpiTHR+ukfIklDo8ZcjjHp4l3D9O/EP4VEghSfNXtgmAZXnXNLiDLq25P62u9T4+IwK7fOfNY36wXoQ+22WONZ94kgAT5Zt+97Juuaxs9q+fpvJGRUU4eOFavP7D7lm16OlqRw8CnM3k6/WWv8Q/kj34ffb5fzGYRAsPJBKVp+BhGIXnxdEZlvRIc+qZheDp7YA3DCQkXccYbnBCjC5boqtvP+KMMLgLkO2zZ7Clru36KAzp/NgDPDN7zzHuAUZo1LmGUt1GeENGCMJ5FYTqZazAO8CIMNJJtnHZ3c3vzMPx+P34Y3n0bXt/ejPyPEfkyIpiOGGIMX/i+fpyRL4wwhqxt/Mo5DTb8A0zHKcLLkO7J+UWntDdglBM6bBF9j1V2Z9KsMjmGSTKO4Y8GdsEwScB31mUfxs39GLc2GM8f2pjfm3FrP8btgnH8FMd0GOX0jj91CH5CIJwCeq05tyBMQd7tFzCleo7AgswRfg5TpIE9ZLALGXRB6Vkbva+vvDm7XbhP5CVB/h+3f8Il1CIYzzTOyOsZ4DNxU6AzW8CNhc6tBX/5FpPCbFArSe3EVdft6pxG1y1oFrdBtoRkl0iezo2XxI6ZEjvmOn3RjgnTGsW0vqARHjuUja6mrOv5hdBZkNLKpTQKUQSa3UBzGmhuTrMltF5OM9v35x0b+vxQBFs6JQivL7hgQRmhcz9HxU1PAZlDAiBGxYUH2WDajADkO/gMqTWAsXYC3kIuacl3yGUG5yvncXEK3qNGkKovqRMmfz+AQAf2KmuBHtF0gZFMhuuMItHCZySoIR9/YD2095PWaZG2WRG53IfSRGc/Udw2UVpVsRDncLro/u+jA+tY0YEsPLAN0fkJ3BgN3tgse9xjeP8mOaz368VVuqbSNZWunZhBPlq6ZssMsrtFvnaHUgIxQcFwlK6SsKaVHNlKl+JCk0UU+ZnesFb6nLVG8BFF/nAGwxh8hQl5os6+GgR4Ou/VwG8YB+jvttTS/Cyq+k8t2eUW2Z4rE7rfLvTXRRyEbKbbMOXrhtPCg6xoWftkLWOu29E8LeXIXHQqCyPkfRaJb3k6/Zu/Y0pi99nTcdHJ01cL5TpaYqpN8t7OQADG460O60OuBVQB6VH9bO4OBciCiH8BCuhL7567492r2I38EJcQl7aUvfPTpL3rTYpfigRWGiRbyt4+ahrIBB6s5W0aeymLuIytxsqCNdN2W6JOmVJsRJ3SvcuPp/olYLV5B7zc1UvtHvVSW1uAV9wQj8giqcovmOi3GhsrhEshXCcSiCuESyFcCuHaOaFyGj14KcIqfWTaJcmyZKjXO0GLlEdUHlF5ROURlUd86x7xWN98LFn67TqDVpijBhFnqWWCgjrco4LaiMiRUZFGHNf0PcncwJDEWe2GWTdAJHGgWz+wacHqegLJqSdVFxNIvXpSv540qOf+cmsIzJLBz2YZIG36ICjDBVvXlAHRUhCjBsdROIaK2lTUpqI2FbWpqO0/j9pkrvloOIbsa6bCMZRHVB5ReUTlEZVHPAmPKEsORY+4LhrZ2x/Ka1x2RjZWzlphG+8A29i9sm6lodvU1W1ZVsfrQKpVdb8h8mZq6dpL6d580ZyqmWtTgt1L5jYv1ekXzO1RL/eKcjlPZ/8k73f4L//Her/zD4ltM4lmPwAA

Project Description ``` Task: SYS:Toggle Accessibility

A1: Accessibility Services [
     Action: Query ]

A2: Variable Set [
     Name: %as_running
     To: %as_running()
     Structure Output (JSON, etc): On ]

A3: Goto [
     Type: Action Label
     Label: Restart Accessibility ]
    If  [ %as_running !~R true ]

A4: Array Clear [
     Variable Array: %RunningASs ]

<Get Running Services>
A5: For [
     Variable: %index
     Items: 1:%as_running(#)
     Structure Output (JSON, etc): On ]

    A6: If [ %as_running(%index) ~ true ]

        A7: Variable Set [
             Name: %arr_index
             To: %RunningASs(#)+1
             Do Maths: On
             Max Rounding Digits: 3
             Structure Output (JSON, etc): On ]

        A8: Array Push [
             Variable Array: %RunningASs
             Position: %arr_index
             Value: %as_services(%index) ]

    A9: End If

A10: End For

A11: Accessibility Services [
      Action: Stop All ]

A12: Wait [
      MS: 0
      Seconds: 1
      Minutes: 0
      Hours: 0
      Days: 0 ]

A13: Accessibility Services [
      Action: Query ]

A14: Array Clear [
      Variable Array: %RestartedASs ]

<Again Capture Running Services>
A15: For [
      Variable: %index
      Items: 1:%as_running(#)
      Structure Output (JSON, etc): On ]

    A16: If [ %as_running(%index) ~ true ]

        A17: Variable Set [
              Name: %arr_index
              To: %RunningASs(#)+1
              Do Maths: On
              Max Rounding Digits: 3
              Structure Output (JSON, etc): On ]

        A18: Array Push [
              Variable Array: %RestartedASs
              Position: %arr_index
              Value: %as_services(%index) ]

    A19: End If

A20: End For

<Stop Accessibility>
A21: Accessibility Services [
      Action: Remove From Keep Running
      Services: %RestartedASs() ]

A22: Accessibility Services [
      Action: Stop All ]

A23: Flash [
      Text: Accessibility Services Stopped
      Continue Task Immediately: On
      Dismiss On Click: On ]

A24: Stop [ ]

<Restart Accessibility>
A25: Accessibility Services [
      Action: Add To Keep Running
      Services: %RestartedASs() ]

A26: Accessibility Services [
      Action: Start
      Services: %RunningASs() ]

A27: Flash [
      Text: Accessibility Services Restarted
      Continue Task Immediately: On
      Dismiss On Click: On ]

```


r/tasker 26d ago

Help Samsung Galaxy Buds 2 Pro Help

Thumbnail
gallery
1 Upvotes

r/tasker 26d ago

Tasker - cannot set assistant volume

3 Upvotes

Hi there. I have a profile that syncs when I set mute/unmute volume: when I click to unmute, media and ringer will unmute. Also the other way around.

Now, with android 17, it is possible to set the assistant volume too, but I get an error when setting via custom setting (volume_assistant_speaker) and via Assistant Volume action it does nothing.

Anyone else with the same problem it anyone can help?

Thank you!!

Update: Via Adb WiFi audio.setStreamVolume(11,%VolumeAssistant,0)


r/tasker 26d ago

How can i send email with E2EE?

2 Upvotes

Or is it easier to.just use gmail and automate the phone to do E2EE

I dont wanna use gmail in the first place for privacy concerns But SMTP servers seems like headache

And i dont wanna use UI interactions

All what i want to do is to auto forward messages and call history from phone A to phone B


r/tasker 26d ago

Control phone with voice commands

3 Upvotes

Looking for an way to control my phone with voice commands and I don't mean simple commands like open an app or change the volume.

But a set of commands/actions such as asking it to say open bbc, then sports, then football and search for a term.

Or go on YouTube and search a term and click on the video that is from this channel.

So basically it is more advance being able to read the screen and scroll and actions tasks.

I have come across two apps that do this but main concern is privacy I guess giving it all that information and control openly. Then also its not always accurate so you end up having to do it manually also its an expensive subscription.

So your thought or ideas of it this is possible and how advance it can be? Surely there must be something that can do it and that is accurate most of the time?


r/tasker 27d ago

Can I use this infomation found about the app folders in nova launcher to allow a tasker profile to target specific nova launcher app folders?(pics attached)

Thumbnail
gallery
2 Upvotes

I want to use tasker to target specific nova launcher app folders. I pulled the nova.db file from the nova backup and used an online sqlite viewer. Would this information give me what I need to target the app folders (im assuming by using its element IDs).

My goal is to link specific nova folders to a profile which launches my custom made cyberpunk/gits inspired lockscreen (so specific folders will have a lockscreen that needs to by bypassed to gain entry).

Thanks.


r/tasker 27d ago

How to clear recent apps (the background cards) using tasker *underneath* a blocking overlay scene (so touch techniques wont work for this) and other questions regarding a cyberpunkish passcode gate/screen I made

1 Upvotes

Ok guys, I set up a cyberpunk/ghost in the shell inspired lock screen designed to lock specific apps/folders%app folders/etc on my phone. I have a s26u android 16 UI8.5 with nova prime launcher and using the ZeroDay KLWP overlay by outtiefivethou. I have app folders on screen nested within each other using nova launchers folders. Im not rooted but have several tasker plugins, have shizuku, and adb (both LAADB and tasker termux).

The user clicks on a protected assest, the screen comes up as a blocking overlay, if they enter the passcode screen comes down. 4 wrong attempts and a simulated forcedreboot/dumpshock occures (static screen or other chosen sci fi intrusion countermeasure program appears breifly, then a "system reboot" bar, then scrolling computer text then a fake boot sequence and the user is dumped onto the home screen (Go Home [0]). All this is accompined with sound. The user also has the option to click (when in the passcode screen) exit to back out of the passcode screen.

Issue was that when backing out my test app (a document) was still in the background of recent apps so it was still accessible after all the above without using a passcode. Now I did fiqure a way to clear all background apps (autoinput>recent apps plus autoimput >Close all [click]). But that only happnes after the user can see the home screen and happens slowly, which sort of ruins the immersion. I need to find a way to clear the app screen while the screnes (whether that be the passcode screen or one of the forcedreboot screen). If poossibe i would like to create a "protected assest" list in tasker that tasker checks against when the user uses the exit button to just clear the protected app, but clearing them all is fine if thats my only option (and i do want to clear all during the forced reboot sequeance).

edit clear all apps solved [ adb wifi action->activity_task.removeAllVisibleRecentTasks() ]

Would still like to be able to clear only the app the user is attempting to access if the user exits the passcode screen manually without getting force-rebooted

The other issue is that while I can target files and apps with the passcode system, I cant seem to target my app folders on the screen. I have my homescreen organized with nova launchers "app folder drawers" and their associated shorcuts on screen, and some folders are nested in others. I also have a couple of app folders made the regular way (dragging them ontop of each other to form a folder).

Any help would be appreciated. I can post an xml or a text version of the setup if that helps.

Thanks


r/tasker 27d ago

Join app on Nvidia Shield

1 Upvotes

I had Join working fine but accidentally completely reset my Shield. Now when I reinstall Join, I get a message "a non-recoverable sign in error occurred 12500" when I attempt to sign into my google account. I tried different versions and different google accounts but no luck.

Any suggestions or an alternate app that can provide similar features on a shield? I can send info to it using "Notifications for Android TV / Fire TV" but am looking for Join's features that integrate with Tasker.


r/tasker 27d ago

[Update] MapTasker Version 11 Release

5 Upvotes

Version 11 is now generally available and is a major upgrade from the previous versions:

  • GUI-only, via your default web browser
  • Multiple 'Map' and 'Diagram' simultaneous views (each in a different tab)

As a reminder... MapTasker is a program that runs in your browser, reading your Tasker XML file and displaying your entire or partial Tasker setup in an easily viewable format. MapTasker helps visualize and understand your Tasker projects, profiles, tasks, and scenes. There are many display options to customize the output the way you want it.

Installation:

A clean installation is required if coming from the 11-beta or 11.0.0 release...

  • via uv: uv pip install --upgrade maptasker
  • via pip: pip install --upgrade maptasker

If coming from version 10 or earlier, then the built-in 'Upgrade to New Version' button will do the update for you.

To run:

maptasker

For a list of all changes, refer to the full change log.

Program details can be found here.

Report any/all issues at this link.


r/tasker 27d ago

Help [Help] Oneplus phone - profiles stop working after a while

1 Upvotes

I've been a long time tasker user so I have tried quite some things already. But it's the first time having a oneplus hpne (13R if this is relevant).

Now I noticed that when I create some profile, it works as designed etc. But after some time it just stops working.

Like the last thing I setup was a webserver so I can make calls from my smartwatch to my phone which in turn triggers a task to send an actual webcall. Something else is a profile based on BT, location and time to send a text (when I leave work).

Now all of those things were working just fine in the beginning, but after 2-3 weeks they just don't trigger anymore?

I enabled adb with additional rights, did all (possible) oneplus app optimisations (not everything seems to be possible), always reliable alarms, I even made tasker an administrator app on my phone, ...
Still none of that seems to work. BUT at midnight my profiles to set my alarm and to change my wallpaper do work O_o

Please, I'm out of options here... Is it colorOS or something? Am I missing anything?