Clipboard stopped working

776 views
Skip to first unread message

Markus Bauer

unread,
May 4, 2021, 9:17:53 PM5/4/21
to Tasker
There just was an update to a new Tasker version 5.12.18 and now all my Tasks that monitor the clipboard (via Variable set %CLIP) do not work anymore.
I tried to give Tasker all permissions again that I could find, including the WRITE_SECURE_SETTINGS via ADB, but the Task still does not get triggered.
How do I restore the clipboard access that worked in the previous version?

Markus Bauer

unread,
May 5, 2021, 4:38:40 AM5/5/21
to Tasker
Update: I now manually downgraded to a previous version 5.11.14 and there clipboard access works without problems

João Dias

unread,
May 5, 2021, 4:44:44 AM5/5/21
to tas...@googlegroups.com
Hi. I have not had other reports of this... Does it still not work if you upgrade to the newer version again?

Thank you for your contact.

Ā  Ā Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
Ā  Ā Tasker: customize/automate anything on your phone!
Ā  Ā AutoApps: add advanced functionality to Tasker via plugins

Ā  Ā Ā Ā 

João Dias


Markus Bauer

unread,
May 5, 2021, 5:45:42 AM5/5/21
to Tasker
Thank you for your response.
I tried upgrading to the current version. I was using just the most simple profile with only Variable set %CLIP and then Flash a message. Also I gave Tasker all permissions I could find, including the ADB permissions which seem to be the most relevant here. But I was not able to get it to work.
Now I downgraded again, gave it the ADB permission and it immediately started to work.
Is there any other setting I should try?

Manuel Holz

unread,
May 6, 2021, 3:33:04 AM5/6/21
to Tasker
Markus,

do you mean this? (see screenshot, variable set)
use instead the "set clipboard" option. this works.

BR Manuel
Screenshot_20210506_092807_net.dinglisch.android.taskerm.jpg
Screenshot_20210506_092902_net.dinglisch.android.taskerm.jpg

Markus Bauer

unread,
May 6, 2021, 3:51:44 AM5/6/21
to Tasker
My problem is not setting the clipboard, but reacting when the content of the clipboard is set by other applications.
So I have a Profile that listens to the "Variable Set" Event with the variable "%CLIP" and then executes a Task (like simply flashing a message).
This used to work, but in the new version the event is no longer triggered.

Manuel Holz

unread,
May 6, 2021, 5:38:56 AM5/6/21
to Tasker
ok, now I know what you mean. I have tired it with a variable %Test, this works. With %CLIP it does not work.
Maybe Joao could investigate.

Tasker v5.12.18

João Dias

unread,
May 6, 2021, 6:05:14 AM5/6/21
to tas...@googlegroups.com
Hi again. I just tried it and it still works for me.

What Android version are you using and what device are you using?Ā Can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description

Also,Ā can you please use the Report Issue To Developer option and send me a report showing that happening? Start the report, change the clipboard value and then stop the report. Thanks in advance

Markus Bauer

unread,
May 18, 2021, 9:31:12 PM5/18/21
to Tasker
OK, I had some time to do some more testing. Here my results:

Android Version: 10
Device: Huawei P30 Pro

Profile description (only one profile active for testing):
========================================
Ā Ā Ā  Profile: Test (2)
Ā Ā Ā Ā  Restore: no
Ā Ā  Ā  Event: Variable Set [ Variable:%CLIP Value:* User Variables Only:Off ]
Ā Ā Ā  Enter: Clip Set (3)
Ā Ā Ā Ā  A1: Flash [ Text:Clip Set Long:On ]

========================================


Report Logs:
(The reporting function keeps on overwriting the same log file, so I paste everything here)
========================================
net.dinglisch.android.taskerm version 5.12.21; flavor: market; Source "com.android.vending"; BuildTime 2021-05-12 13:52


OS Buid VOG-L29 10.1.0.150(C431E19R2P5)
OS Code 29
OS Target 29
Device VOG-L29
Manufacturer HUAWEI
Product VOG-L29EEA

User report: Clipboard not working

Files:
https://drive.google.com/file/d/1AUVug8SvzudQYsvMlvTjnIYIOCc2F9su/view

========================================
19-05-2021 T: 03.09.54#m#T: onpause
19-05-2021 T: 03.09.54#m#T: onpausedone
19-05-2021 ClipboardGetter: 03.09.57#m#ClipboardGetter: Ignored clipboard service:Ā Ā Ā Ā Ā Ā Ā Ā Ā  1621386597.679Ā  1598Ā  5334 I ClipboardService: callingPackage:com.huawei.gameassistant, uid =10133, isFocusedWindow =false
19-05-2021 T: 03.09.59#m#T: setInstanceFlag: was truenow: true
19-05-2021 T: 03.09.59#m#T: onStart
19-05-2021 T: 03.09.59#m#T: onStart done
19-05-2021 T: 03.09.59#m#T: onresume done
19-05-2021 T: 03.10.01#m#T: userLeaveHint
19-05-2021 T: 03.10.01#m#T: onpause
19-05-2021 T: 03.10.01#m#T: onpausedone
19-05-2021 TD: 03.10.01#b#TD: added project: Basis
19-05-2021 TD: 03.10.01#b#TD: fpo: found 1 projects
19-05-2021 T: 03.10.01#m#T: onresume done
19-05-2021 T: 03.10.10#m#T: onpause
19-05-2021 T: 03.10.10#m#T: onpausedone
19-05-2021 ClipboardGetter: 03.10.13#m#ClipboardGetter: Ignored clipboard service:Ā Ā Ā Ā Ā Ā Ā Ā Ā  1621386613.460Ā  1598Ā  2075 I ClipboardService: callingPackage:com.huawei.gameassistant, uid =10133, isFocusedWindow =false

========================================


The exact same procedure with the old version 5.11.14 where it is working:
========================================
net.dinglisch.android.taskerm version 5.11.14; flavor: market; Source "com.google.android.packageinstaller"; BuildTime 2021-01-25 17:11


OS Buid VOG-L29 10.1.0.150(C431E19R2P5)
OS Code 29
OS Target 29
Device VOG-L29
Manufacturer HUAWEI
Product VOG-L29EEA

User report: Clipboard with 5.11.14

Files:
https://drive.google.com/file/d/1AUVug8SvzudQYsvMlvTjnIYIOCc2F9su/viewĀ 
========================================
19-05-2021 T: 03.01.28#m#T: onpause
19-05-2021 T: 03.01.28#m#T: onpausedone
19-05-2021 ClipboardGetter: 03.01.32#m#ClipboardGetter: Detected clipboard change
19-05-2021 MyClip: 03.01.32#m#MyClip: getClipText: trying with rx from thread: main
19-05-2021 MyClip: 03.01.32#m#MyClip: getClipText: gotten with rx: android.content.ClipboardManager@61d0efd
19-05-2021 ClipboardGetter: 03.01.32#m#ClipboardGetter: mon: true - Got clipboard after overlay: version
19-05-2021 ClipboardGetter: 03.01.32#m#ClipboardGetter: mon: true - Is monitoring so caching gotten clipboard
19-05-2021 T: 03.01.33#m#T: setInstanceFlag: was truenow: true
19-05-2021 T: 03.01.33#m#T: onStart
19-05-2021 T: 03.01.33#m#T: onStart done
19-05-2021 T: 03.01.33#m#T: onresume done
19-05-2021 T: 03.01.36#m#T: userLeaveHint
19-05-2021 T: 03.01.36#m#T: onpause
19-05-2021 T: 03.01.36#m#T: onpausedone
19-05-2021 TD: 03.01.36#b#TD: added project: Basis
19-05-2021 TD: 03.01.36#b#TD: fpo: found 1 projects
19-05-2021 T: 03.01.36#m#T: onresume done
19-05-2021 T: 03.01.47#m#T: onpause

========================================

A little side note: The "Report Issue To Developer" function always fails the first time with the error message "Couldn't find log file!". Seems like another little bug.

I hope this will help to track down the problem. Please let me know if you need any more information.

Thank you,
Markus

João Dias

unread,
May 19, 2021, 4:53:15 AM5/19/21
to tas...@googlegroups.com
Thank you very much, that helped a lot!

I think I fixed it :) Can you please try this version? https://drive.google.com/file/d/1SvQFvAxFwCk-hArfO_6wOH0UlvvMGi0z/view?usp=sharing

If you want you can also check any previous releases here: https://drive.google.com/drive/folders/1GW55YKFiuOZhJVswnt_BQUCJoGm36ugF?usp=sharing

Markus Bauer

unread,
May 19, 2021, 8:54:01 AM5/19/21
to Tasker
Thank you for your update. I tried the version you provided but unfortunately it still does not work.
Here the result of the reporting function:
========================================
net.dinglisch.android.taskerm version 5.12.21; flavor: market; Source "com.google.android.packageinstaller"; BuildTime 2021-05-19 12:09



OS Buid VOG-L29 10.1.0.150(C431E19R2P5)
OS Code 29
OS Target 29
Device VOG-L29
Manufacturer HUAWEI
Product VOG-L29EEA

User report: Clipboard not working

Files:
https://drive.google.com/file/d/1AUVug8SvzudQYsvMlvTjnIYIOCc2F9su/view

========================================
19-05-2021 T: 14.46.25#m#T: onpause
19-05-2021 T: 14.46.25#m#T: onpausedone
19-05-2021 ClipboardGetter: 14.46.27#b#ClipboardGetter: Started monitoring clipboard on Android 10.
19-05-2021 ClipboardGetter: 14.46.29#m#ClipboardGetter: Ignored clipboard service:Ā Ā Ā Ā Ā Ā Ā Ā Ā  1621428389.671Ā  1598Ā  2075 I ClipboardService: callingPackage:com.google.android.gms, uid =10113, isFocusedWindow =false
19-05-2021 T: 14.46.31#m#T: setInstanceFlag: was truenow: true
19-05-2021 T: 14.46.31#m#T: onStart
19-05-2021 T: 14.46.31#m#T: onStart done
19-05-2021 T: 14.46.31#m#T: onresume done
19-05-2021 T: 14.46.33#m#T: userLeaveHint
19-05-2021 T: 14.46.33#m#T: onpause
19-05-2021 T: 14.46.33#m#T: onpausedone
19-05-2021 TD: 14.46.33#b#TD: added project: Basis
19-05-2021 TD: 14.46.33#b#TD: fpo: found 1 projects
19-05-2021 T: 14.46.33#m#T: onresume done
19-05-2021 T: 14.46.39#m#T: onpause
19-05-2021 T: 14.46.39#m#T: onpausedone
19-05-2021 ClipboardGetter: 14.46.42#m#ClipboardGetter: Ignored clipboard service:Ā Ā Ā Ā Ā Ā Ā Ā Ā  1621428402.375Ā  1598Ā  2075 I ClipboardService: callingPackage:com.google.android.gms, uid =10113, isFocusedWindow =false

========================================

João Dias

unread,
May 21, 2021, 5:28:02 AM5/21/21
to tas...@googlegroups.com
Ok, tried fixing again! Can you please try this version? https://drive.google.com/file/d/1SvQFvAxFwCk-hArfO_6wOH0UlvvMGi0z/view?usp=sharing

Markus Bauer

unread,
May 23, 2021, 8:19:21 PM5/23/21
to Tasker
Nope, does not work:
========================================
net.dinglisch.android.taskerm version 5.12.21; flavor: market; Source "com.google.android.packageinstaller"; BuildTime 2021-05-21 11:15



OS Buid VOG-L29 10.1.0.150(C431E19R2P5)
OS Code 29
OS Target 29
Device VOG-L29
Manufacturer HUAWEI
Product VOG-L29EEA

User report: Clipboard not working

Files:
https://drive.google.com/file/d/1AUVug8SvzudQYsvMlvTjnIYIOCc2F9su/view

========================================
24-05-2021 T: 02.00.16#m#T: onpause
24-05-2021 T: 02.00.16#m#T: onpausedone
24-05-2021 ClipboardGetter: 02.00.17#b#ClipboardGetter: Started monitoring clipboard on Android 10.
24-05-2021 ClipboardGetter: 02.00.21#m#ClipboardGetter: Ignored clipboard service:Ā Ā Ā Ā Ā Ā Ā Ā Ā  1621814421.068Ā  1598Ā  2075 I ClipboardService: callingPackage:net.dinglisch.android.taskerm, uid =10364, isFocusedWindow =false
24-05-2021 T: 02.00.23#m#T: setInstanceFlag: was truenow: true
24-05-2021 T: 02.00.23#m#T: onStart
24-05-2021 T: 02.00.23#m#T: onStart done
24-05-2021 T: 02.00.23#m#T: onresume done
24-05-2021 T: 02.00.25#m#T: userLeaveHint
24-05-2021 T: 02.00.25#m#T: onpause
24-05-2021 T: 02.00.25#m#T: onpausedone
24-05-2021 TD: 02.00.25#b#TD: added project: Basis
24-05-2021 TD: 02.00.25#b#TD: fpo: found 1 projects
24-05-2021 T: 02.00.25#m#T: onresume done
24-05-2021 T: 02.00.32#m#T: onpause
24-05-2021 T: 02.00.32#m#T: onpausedone
24-05-2021 ClipboardGetter: 02.00.36#m#ClipboardGetter: Ignored clipboard service:Ā Ā Ā Ā Ā Ā Ā Ā Ā  1621814436.783Ā  1598Ā  2075 I ClipboardService: callingPackage:net.dinglisch.android.taskerm, uid =10364, isFocusedWindow =false

========================================

João Dias

unread,
May 24, 2021, 4:21:44 AM5/24/21
to tas...@googlegroups.com
Thanks! Ok, another try:Ā  Can you please try this version? https://drive.google.com/file/d/1SvQFvAxFwCk-hArfO_6wOH0UlvvMGi0z/view?usp=sharing

Markus Bauer

unread,
May 25, 2021, 1:46:23 AM5/25/21
to Tasker
Thank you for your update. This one looks like a winner!
From my first tests everything works again šŸ‘

João Dias

unread,
May 25, 2021, 3:53:22 AM5/25/21
to tas...@googlegroups.com
Great! :) Glad it's working again, thanks for testing!

Markus

unread,
Aug 5, 2021, 10:16:22 PM8/5/21
to Tasker
Hi, I have to bring this topic up again because in the new version (5.13.5) it again stopped working.
The usual report:
========================================
net.dinglisch.android.taskerm version 5.13.5; flavor: market; Source "com.android.vending"; BuildTime 2021-08-04 11:41



OS Buid VOG-L29 10.1.0.150(C431E19R2P5)
OS Code 29
OS Target 29
Device VOG-L29
Manufacturer HUAWEI
Product VOG-L29EEA

User report: Clipboard failed

Files:
https://drive.google.com/file/d/1AUVug8SvzudQYsvMlvTjnIYIOCc2F9su/view
========================================
06-08-2021 T: 03.51.43#m#T: onStart
06-08-2021 T: 03.51.43#m#T: onStart done
06-08-2021 T: 03.51.43#m#T: onresume done
06-08-2021 T: 03.51.46#m#T: userLeaveHint
06-08-2021 T: 03.51.46#m#T: onpause
06-08-2021 T: 03.51.46#m#T: onpausedone
06-08-2021 TD: 03.51.46#b#TD: added project: Basis
06-08-2021 TD: 03.51.46#b#TD: fpo: found 1 projects
06-08-2021 T: 03.51.46#m#T: onresume done
06-08-2021 T: 03.52.49.884#m#T: Memory Native: 57.478416;Ā  JVM: 65.75;
06-08-2021 T: 03.52.49#m#T: onpause
06-08-2021 T: 03.52.49#m#T: onpausedone
06-08-2021 ClipboardGetter: 03.52.53#m#ClipboardGetter: Ignored clipboard service:Ā Ā Ā Ā Ā Ā Ā Ā Ā  1628214773.516Ā  1624Ā  2084 I ClipboardService: callingPackage:com.huawei.gameassistant, uid =10133, isFocusedWindow =false
06-08-2021 T: 03.52.55#m#T: setInstanceFlag: was truenow: true
06-08-2021 T: 03.52.55#m#T: onStart
06-08-2021 T: 03.52.55#m#T: onStart done
06-08-2021 T: 03.52.55#m#T: onresume done
06-08-2021 T: 03.52.56#m#T: userLeaveHint
06-08-2021 T: 03.52.56#m#T: onpause
06-08-2021 T: 03.52.56#m#T: onpausedone
========================================


I reverted to a previous version (5.12.22) and there it works.
Thanks for looking into this,
Markus

João Dias

unread,
Aug 6, 2021, 7:33:57 AM8/6/21
to tas...@googlegroups.com
Yeah, sorry about that. Unfortunately I had to revert that change becauseĀ it was breaking stuff for other people :( Seems like I'll maybe have to add this as an option so it works for everyone...

Markus (magicmarkus)

unread,
Jan 26, 2023, 9:45:49 PM1/26/23
to Tasker
After over a year of carefully avoiding any tasker update I gave the current version another try, but I could not get it to work. I also tried the new "Clipboard Changed" event, but nothing would trigger a clip event in tasker.
The log looks different but I guess it is still the same error.
========================================
net.dinglisch.android.taskerm version 6.0.10; flavor: market; Source "com.android.vending"; BuildTime 2022-07-12 15:56



OS Buid VOG-L29 10.1.0.150(C431E19R2P5)
OS Code 29
OS Target 30

Device VOG-L29
Manufacturer HUAWEI
Product VOG-L29EEA

User report: Clipboard failed

Files:
https://drive.google.com/file/d/1hDSYgakdCYBK1bpb4mWmhJoU9VVzfD-Q/view
========================================
The only line with "Clip" in it:
27-01-2023 ClipboardGetter: 02.52.13#m#ClipboardGetter: Ignored clipboard service: 1674784333.393 1514 1991 I ClipboardService: callingPackage:com.example.android.notepad, uid =10033, isFocusedWindow =true

Again I reverted to version 5.12.22 where it is still working.
Is there any other option I can try with the current version?

Thank you for your help,
Markus

João Dias

unread,
Jan 27, 2023, 4:29:40 AM1/27/23
to tas...@googlegroups.com
Did you give Tasker the permission to read Logs on your device? Unfortunately that is needed now to read the clipboard...

Markus (magicmarkus)

unread,
Mar 9, 2023, 3:26:08 AM3/9/23
to Tasker
Ok, so here is my full test workflow:

Preparation:
  • Backup my tasks
  • Delete Tasker app
  • Restart phone

In the following I will use Tasker with only one simple testing profile:
  • File test.xml attached
  • Basically it is one profile with "Variable Set %CLIP" and a task that then flashes a message


Test current app:
  • Install latest version of Tasker from Google Play Store (Version 6.0.10)
  • Open app
  • Accept terms
  • Enable "Draw over other apps"
  • Disable battery optimization
  • Disable vendor specific battery optimization in [Settings]->[Akku]->[App-Start]->[Tasker]->[all manuel]
  • Disable helper notifications
  • Import test profile
  • Connect phone to PC with USB-Debugging
  • Run the following commands:
    adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
    adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS
    adb -d shell am force-stop net.dinglisch.android.taskerm
  • Go to memo app
  • Copy some text
=> Nothing happens


Test version 5.12.22
  • Delete Tasker app
  • Install Tasker.5.12.22.apk
  • Open app
  • Accept disclaimer
  • Import test profile
  • Enable "Draw over other apps"
  • Disable battery optimization
  • Disable vendor specific battery optimization in [Settings]->[Akku]->[App-Start]->[Tasker]->[all manuel]
  • Connect phone to PC with USB-Debugging
  • Run the following commands:
    adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
    adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS
    adb -d shell am force-stop net.dinglisch.android.taskerm
  • Go to memo app
  • Copy some text
=> "Clip set" message appears

Anything I missed?
test.xml
Reply all
Reply to author
Forward
0 new messages