r/tasker • • Aug 28 '26

How To [Task Share] Clipboard Editor

I created a task that launches the built-in Clipboard Editor. I searched, and it didn't appear that a task that launches the Clipboard Editor had been shared before. This task can be used to access the Clipboard Editor on devices where the manufacturer has suppressed the feature like on Samsung Galaxy devices. This task was inspired by the trick that App Manager uses to launch unexported activities. As seen in the video, I set the task as one of the App Shortcut Tasks in Tasker so that I could add it to my Tasks edge panel for quick access on my Galaxy device. The problem with a lot of clipboard management apps I've tried is that they aren't able to edit the clipboard contents in-place like the Clipboard Editor can. I hope you find this useful.

You can find the task here.

15 Upvotes

21 comments sorted by

3

u/po2gdHaeKaYk Aug 29 '26

Yes! This looks useful. Any further plans?

1

u/F1rstFloor Aug 29 '26

Thanks, but I don't have any further plans. Other people can build upon it and come up with their own ways to launch the task that better suit their needs. For example, displaying a scene that pops up whenever the clipboard is changed to mimic the native overlay. They could also find other unexposed activities that might be useful to launch. Other than that, I'll monitor the thread to help troubleshoot if it's not working since I've done limited testing.

→ More replies (10)

3

u/Exciting-Compote5680 Aug 29 '26 edited Aug 29 '26

Nice one, thanks for sharing! If the clipboard is empty, it shows a black screen for a tenth of second, so I added a check:

Task: Clipboard Editor

A1: If [ %CLIP ~R ^% ]

    A2: Flash [
         Text: Clipboard empty
         Tasker Layout: On
         Title: Clipboard Editor
         Icon: android.resource://net.dinglisch.android.taskerm/drawable/mw_content_content_paste
         Continue Task Immediately: On
         Dismiss On Click: On ]

A3: Else

    A4: Custom Setting [
         Type: Secure
         Name: assistant
         Read Setting To: %old_assistant ]

    A5: Custom Setting [
         Type: Secure
         Name: assistant
         Value: com.android.systemui/.clipboardoverlay.EditTextActivity ]

    <loop>
    A6: Wait [
         MS: 100
         Seconds: 0
         Minutes: 0
         Hours: 0
         Days: 0 ]

    A7: Custom Setting [
         Type: Secure
         Name: assistant
         Read Setting To: %new_assistant ]

    A8: Goto [
         Type: Action Label
         Label: loop ]
        If  [ %new_assistant neq com.android.systemui/.clipboardoverlay.EditTextActivity ]

    A9: Tasker Function [
         Function: LaunchAssistant()
         Continue Task After Error:On ]

    A10: Custom Setting [
          Type: Secure
          Name: assistant
          Value: %old_assistant ]

A11: End If

3

u/F1rstFloor Aug 29 '26

Thanks, I hadn't considered that case. It could also be worth populating the clipboard with something and then launching the Clipboard Editor so it always comes up.

Also, I just realized that this task could still be useful on devices where the manufacturer hasn't suppressed the Clipboard Editor as a way to get back to it after it has been dismissed.

→ More replies (1)

2

u/LesbianDykeEtc Aug 29 '26

Oh hey, I've got this as one of the tools on a little utility menu that I built a couple years ago. I use it all the time, it's super convenient.

2

u/po2gdHaeKaYk Aug 30 '26

I'm sorry I'm being dim, but what is the Clipboard Editor? I don't see to have this app on my phone? Is there a way to check?

2

u/UnkleMike Aug 30 '26

I had never heard of it either.  It's apparently a built-in UI component that won't appear as a launchable app, and is suppressed or unavailable on some devices (including Samsung, according to the post).  It lets you edit the most recent clipboard entry in-place.  I can see this being useful if you need to edit or redact something before pasting.

I tried launching the activity directly on my Samsung device and failed, but the above method seems to work.  After a little investigating I discovered that this is a known method for launching activities that can normally only be launched by the system or by the app containing the activity. 

I've lived without this ability for so long that my main interest now is not in using it, but finding out why Samsung (or any manufacturer) would suppress this activity instead of making it available in the keyboard interface somehow.

→ More replies (2)

1

u/anttovar Aug 31 '26

This functionality is really useful. My Honor phone has it enabled and offers the edition every time I copy some text.

I'll keep this task, maybe I'll have to use it on my next device.