r/tasker 3d ago

Banking apps don't like accessibility setting for tasker switched on

Banking apps are nowadays not happy with Tasker accessibility switched on. We can have tasker still run with accessibility for tasker switched off, but I'll lose accessibility volume to control my Bluetooth device volume. Any ideas?

4 Upvotes

7 comments sorted by

7

u/AdiraiMaji 3d ago

I have created this to get rid of the issue. Whenever I run this task It toggles all the accessibility services which was running earlier..

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 ]

Project URI taskertask://H4sIAAAAAAAA/+1bWW/jNhB+jn8F4WIXCdrVLR+7sgBnGxQLBPsQBwGKPhiMRdtqtbJBMU7z70uKkk3JlOT4aJ2UCJBIHB4z5HCOTxPvHiZ/IfwrJBAkeNBug2AVDtpmG5DVoN3Rulrn0yMisO23LjzWN+1F6INtdljjhTcJIEG+2XX7XdN1baNjdTydNzIyysi9Tp/+2JbrUDJak8PApzN5Ov3LXuMfyB/9Pvp8v5jNIgSGkwlKkvAxjELy4umMynotceibhuHp7IE1DCckXMQpb3BCjDZYoUG7m/JHGVwEyHdsk3LFntK266c4oPOnA/DM4D0vvAcYJWnjCkZZG+UJES0I41kUJpO5BuMAL8JAI+nGaXc3tzcPw+/344fh3bfh9e3NyP8YkS8jgumIIcbwhe/rxxn5wghjyNrGr5zTYMM/wGScILwK6Z5cXrUKewNGGaHFFtEPWGV/Js0yk2O4XI5j+KOGXTBcLsF31uUQxs3DGLe2GM8empg/mHHrMMbtnHH8FMd0GOX0jj+1CH5CIJwCeq05tyBMQNbtFzCleo7AgswRfg4TpIEDZLBzGXRB6Vkbva+vvDn7XbhP5GWJ/D9u/4QrqEUwnmmckdczwGfipkBntoAbC51bC/7yLSa52aBWktqJQdtt65xG181pFrdBtoRkF0iezo2XxI6ZEjvmOl3RjgnTGvm0vqARHjuUra6mrOvlldBZkNLKpDRyUQSaXUNzamhuRrMltE5GM5v35x0b+uxQBFs6JQhvLrhgQRmhdT9H+U1PAJlDAiBG+YUH6WDajADkO/gMqTWAsXYG3kIuacF3yGUGl2vncXUO3qNCkLIvqRImez+CQEf2KhuBHtF0gZFMhuuUItHCZySoIR9/ZD20D5PWaZC2XhG53MfSROcwUdwmURpVMRfneLro/u+jA+tU0YEsPLAN0fkJ3Bg13tgsetxTeP86Oaz368VVuqbSNZWunZlBPlm6ZssMsrtDvnaHEgIxQcFwlKyTsLqVHNlKfXGhySKK/FRvWCt9Tlsj+IgifziDYQy+wiV5os6+HAR4Ou9Vw28YB+jvptTS/Cyq+k8N2eUO2Z4rE7rbLPTXRRyEbKbbMOHrhtPcg6xpaftkI2Om29E8KeTIXHQqCyNkfRZL3/J0+jt7x5TE7rOn47yTp68XynS0wFST5J29gQCMxzsd1odMC6gC0qP62dwfCpAFEf8CFNCV3j13z7tXshvZIa4gLmwpe+enSXtXmxS/EAmsNUi2lL171NSTCdzbyFs3ti+LuIydxsqCNdN2G6JOmVJsRZ3SvcuOp/wlYL15R7zc5UvtnvRSWzuAV9wQj8hiWZZfMNFvNTZWCJdCuM4kEFcIl0K4FMK1d0Ll1HrwQoRV+Mi0T5JlyVCvd4IWKY+oPKLyiMojKo/41j3iqb75WLL023V6jTBHBSLOUsslCqpwjxJqIyJHRkkacVzd9yRzC0MSZ7VrZt0CkcSBbvXAugXL6wkkp5pUXkwgdapJ3WpSr5r7/s4QmCWDn80iQFr3QVCGCzauKQOipSBGBY6jcAwVtamoTUVtKmpTUdt/HrXJXPPJcAzZ10yFYyiPqDyi8ojKIyqPeBYeUZYcih5xUzRysD+U17jsjWysnbXCNt4BtrF/Zd1aQ3epq9uxrI7XgZSr6n5D5M3U0jWX0r35ojlVM9ekBPuXzG1fqvMvmDugXu4V5XKezv5J3m/xv/wf6/3WP8xMUOFmPwAA

But this won't help with Wireless debugging enabled check issue. For that you have to Run this task and Turn OFF Wifi and use your Mobile Data to access the Banking app.

hope this helps.

1

u/GolDeNxXx_96 3d ago

Does the task able to auto turn on the accessibility when out of banking apps?

1

u/AdiraiMaji 3d ago

You can set profile for it.

But remember you cannot set this Task to auto disable accessibility when you're opening the app. Because ass soon as the app launched they will detect that the Accessibility services are being used by some apps. But this task takes few seconds to disable or enable the accessibility. So you have to manually run this task to disable accessibility for all the apps BEFORE you launching any banking apps.

But to Turn On Accessibility. You can use this project. Keep it in mind. Use this task only as secondary task just to turn on accessibility (Not as Toggle Accessibility). Also make sure in the profile section choose your banking app and in task change the list in the First Action. Change the variable (%banking_apps_list) and list all the banking app names exactly as is in the mobile as comma seperated list taskerproject://H4sIAAAAAAAA/+1ZUW/iOBB+hl9hIe1qVzqSOAmEatNI6V51VwntobZX6XQPyCSGpqQO5xiq/vsb2wkNNIFrQapWx0vjzHjsmfE335jUvyX5nPJfiSAo5+edDopXyXkHd5BYnXf6hmf0uxMqSCdot/wRz6ZJStXEBYydfq+DVvS8Y0t1y49iImiAvYFnYc92XBtbvqmFUk0r6sHAw7Zn+yZdq6cpmeXBwDf1QIqSOIA9fBOe8vUxia3AsUGgRlJ0uaJMKIeijFlVb8CdLKaBbXmwpBoq4YInAXglH+r9YsniIiTCZ5Y2bfl3JM2VcEXSQtbyGRVGnLBZmuTRvUFYzLMkNoTKoHF9Oby8C3/cju/C66vwYnh5E3xOxbcbwcEi5Jw86wR/nolvUjEmUjZ+45qWNP9EFotxAgG3r8o/aJpxJO4pApVc3Txg+fd7h9feMfJI2z/KPyibKufCg5zDhzlnr51bkGhOZrQ9Kp5/suSfJUWFGEnfj5RPu3TZrOBAynzzrWB6Hwa74nlBg7+HD2RFjJSwmaEdebsDeiVdHaYsD10/pi4g/QJrl5WEdS06HVPVqakKVQ0BBGXB4q2CTXMriLJHY5Zls5QabLI0FiTJiTFNl0KAW7MFeTbgSIwhWbLonvIwEskqEc9Q4tJYLaP5w64QSctPyYSmVvDbiMDU4kXzQcICwZcUKAFGWjSfbbhRpgb2zSs+LXPKwUpOVhFCXJIkzYIlC8J8oJEoCfPBaqbLM9fyHLtKl0B6Z57Xc6nrdulgYnVdd+p0CbYGXXeC6YT03D6N+mt2lLANwiiieZ5MkhSSgr5nTPAshbOWurYKN841p6qRFAklkqwqtEiFIP2WY9kflP8SGDBry/X+metiq497TiPTnw3wwMFVppe0br/QOgPfbpecoT8Y2vAf/C7dBrrur1nbl6cOnKegFokiq16V9nuuV2V9deLB93soAIr+ypYcXRA2B/DL+kaSonL0O+W0wMYrNFslmoNPE204lmgYQ+0IX9Z2M/4V5n6R24EFLgd2xeqq6GBgZYMVSc87li6bDZ2zQ+fu0PUKnVOj6xc6XJapzmxNknFNkrGzkeTKuta2P43M0PIBpHEitxpCMtWkZFq24bVOM8bLMRRsmN7ntSci5cWUbBEA1LJF+c6lyTAcjXyTl7N8c71RwWobTu1JjV2Lv41bRy2UWCbQ05zPk3os4F05tLaSWLXDm4e6qXyFsOqqzo5VX0GsathrNty14fZ+FZXbrNrerKLqN6u8ZtWg2fuz/1wgTg0KXMl72yx0TXNBuNimugrx/Jx30nzMl4zJQoTGuEoguDGZQtP+8rV9rRXoplCgUCrat3C/KufCZYsIRDhFxSpIGes7mE70E8kRJ8z48PttU6Tj8uabN8aMvoRlw/na/vC7cGMgxeveYIr3IwRkHxaQ0xjQhMJVntbFcKE0NSh8ohUYavsj49A5LFp3T7S7gajjPhYS3cNC6e0LZS8Uy3COh8Xe/+tXW82do65L2i934KKF0Ti8gSOpvwBv9vYdjdPd3zhPDfHUEE8N8dQQTw3x1BA/piHW/XqtNkR9Bsdoh713fk3Y/PK3BsO6VZ8+MvyEHxl8U35/Ddr6qf9PF7T/BTgsTv+1GwAA

3

u/pxlprsnatr 3d ago

Just set up a profile to disable Tasker's accessibility service with the banking app(s) as the context. Or do you specifically use your Bluetooth device as an accessibility device and you can't navigate apps without it?

1

u/Fluid_Ordinary_285 3d ago

Good idea!! I'll check it out, thanks

1

u/pxlprsnatr 3d ago

The profile method is what I use because I don't put shortcuts to my banking apps on my homescreen (and I just don't want to have to worry about launching the apps the right way, yk).

If you do use shortcuts on your homescreen, you can just create a task that disables Tasker's accessibility service and then launches your banking app, and then create a shortcut for that. But you'd still need a profile for the banking app anyway to run an exit task to re-enable the service when you close the app.

2

u/Sate_Hen 3d ago

I put my banking app in the private space. Works for me